I solved my problem with this by adding | WRITE_BIT to each of the write_byte calls. Not sure what it does exactly, I'm still quite new to C and I2C too :) I'll dig further to work out exactly what's happening, I'm not the type to just settle for 'it works' :)
void writeI2c(uint8_t regaddr, int ...
Search found 2 matches
- Sun Nov 29, 2020 7:30 pm
- Forum: ESP-IDF
- Topic: I2C Repeated start
- Replies: 5
- Views: 7305
- Sun Nov 29, 2020 2:11 pm
- Forum: ESP-IDF
- Topic: I2C Repeated start
- Replies: 5
- Views: 7305
Re: I2C Repeated start
I'm having similar issues, it's certainly a more complicated library than the Arduino 'Wire'.
The examples are actually difficult to follow, very complex scenarios and instead we'd benefit from a simple master write / slave read example.
Did you add any value to the timeout method call?
I've ...
The examples are actually difficult to follow, very complex scenarios and instead we'd benefit from a simple master write / slave read example.
Did you add any value to the timeout method call?
I've ...