1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-30 16:24:09 +03:00

Configurable I2C clock stretching limit

Use Wire.setClockStretchLimit(limit)
limit is in uSeconds
This commit is contained in:
mvdbro
2016-02-03 17:05:04 +01:00
parent aa0c14c2d0
commit 3f15903566
5 changed files with 22 additions and 8 deletions

View File

@ -29,6 +29,7 @@ extern "C" {
void twi_init(unsigned char sda, unsigned char scl);
void twi_stop(void);
void twi_setClock(unsigned int freq);
void twi_setClockStretchLimit(uint32_t limit);
uint8_t twi_writeTo(unsigned char address, unsigned char * buf, unsigned int len, unsigned char sendStop);
uint8_t twi_readFrom(unsigned char address, unsigned char * buf, unsigned int len, unsigned char sendStop);