Hi, I'm trying to run the interrupts_subclassing example (with a small change: a bool flag instead of a print statement in the interrupt function) and I'm experiencing inconsistent behavior. When I upload the code to the board or push the button to restart the program, sometimes the interrupts will come in ("Got new data!" will be printed in my Serial monitor, as expected), sometimes they won't come in (nothing will be printed). I tried with a blinking led in the interrupt function, that results in the same observation (behavior is sometimes as I expect, sometimes nothing happens). I have tried on a different (brand new) board, the same happens.
I added my code below:
I'm using a Nano 33 BLE Sense Rev 2 obviously, should I change something in the ini file? I haven't found an option to select the sense rev 2 in platformIO.
Any clues on what might be going on are much appreciated !
Hi, I'm trying to run the interrupts_subclassing example (with a small change: a bool flag instead of a print statement in the interrupt function) and I'm experiencing inconsistent behavior. When I upload the code to the board or push the button to restart the program, sometimes the interrupts will come in ("Got new data!" will be printed in my Serial monitor, as expected), sometimes they won't come in (nothing will be printed). I tried with a blinking led in the interrupt function, that results in the same observation (behavior is sometimes as I expect, sometimes nothing happens). I have tried on a different (brand new) board, the same happens. I added my code below:
Is anyone experiencing something similar, could it be something in my setup? I'm using platformio in VSCode, the following is my ini file:
I'm using a Nano 33 BLE Sense Rev 2 obviously, should I change something in the ini file? I haven't found an option to select the sense rev 2 in platformIO.
Any clues on what might be going on are much appreciated !