The old implementation in the library:
// switch to 400KHz I2C
TWBR = ((F_CPU / 400000L) - 16) / 2; // see twi_init in Wire/utility/twi.c
Change it to:
Wire.setClock(400000L);
This should fix the error.
The old implementation in the library:
// switch to 400KHz I2C
TWBR = ((F_CPU / 400000L) - 16) / 2; // see twi_init in Wire/utility/twi.c
Change it to:
Wire.setClock(400000L);
This should fix the error.
by
Tags:
Thank you so much!
Leave a Reply