Skip to content

Commit 5427abc

Browse files
committed
Merge pull request #553 from skandragon/esp8266
adjust clock stretch
2 parents e87c4ff + 4b8f534 commit 5427abc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cores/esp8266/core_esp8266_si2c.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ static unsigned char twi_sda, twi_scl;
3737
#endif
3838

3939
#if F_CPU == FCPU80
40-
#define TWI_CLOCK_STRETCH 200
40+
#define TWI_CLOCK_STRETCH 800
4141
#else
42-
#define TWI_CLOCK_STRETCH 400
42+
#define TWI_CLOCK_STRETCH 1600
4343
#endif
4444

4545
void twi_setClock(unsigned int freq){

0 commit comments

Comments
 (0)