Unfortunately, the PCB that I'm using doesn't have the INT pin connected to the MDBT42Q. That's why I'm trying to configure a software setWatch equivalent by watching the register or a variable. I hope that makes sense?
I'm trying to set up a setWatch equivalent for the ICM20948. Is there anyway I can use the function on a variable or a simple way I can set up an equivalent function to watch a variable?
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
I just set up a small function to read every 50ms and calculate the euclidian distance with the previous value and it works fine. Thanks!