Hello, I am using an Arduino M0 pro and have set up an interrupt timer so I can periodically read from some sensors via I2C inside of the interrupt handler. However, the I2C commands will not work inside the ISR I think the timer interrupts are working as they will blink LEDs with no problems. I had a similar issue a while back on an UNO but could fix it by briefly enabling interrupts inside the ISR using interrupts() while the sensors were read then disabling them again with noInterrupts(). This does not seem to work on the M0 pro for some reason. I would be very grateful if someone knows what is going on!
Thanks in advance,
sensors_v8.ino (6.21 KB)