Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
I'm trying to setup a simple interrupt handler for addressed data received on I2C.
If I use InterruptIn, it seems that it is interrupting on every falling edge of the pullup SDA signal. Is there a way to check if I2C is ready to be read? I'm thinking that way, I can just say in the ISR: if it's not ready to be read, ignore it for now, else call i2cslave.receive().
Is there a better way of handling this?