You are reading a single comment by @Robin and its replies. Click here to read the full conversation.
  • RDY Pin which is something set by the sensor and keeps changing by IQS263 sensor. So MCU can request a I2C communication window when this pin goes down. That is the reason why while loop will not be an infinite.

    What my goal is to perform i2c read/write only when this PIN goes gown, that means I have to put some wait and poll the pin until it goes LOW.

    I see lots of implementation for this sensor in C/C++ where people set the falling interrupt on RDY pin and perform read/write.

    Since Espruino does not support interrupt directly [ here ]and setWatch callback only executes in main loop [ here ], I only see only option to setup the IRQ optionin setWatch and provide native calls to perform communication to sensor.

    Am I making things complicated here? Is there a simple approach available?

About

Avatar for Robin @Robin started