Hi,
I want to send data over I2C as soon as an Interrupt fires, is this possible?
Actually, I already think this is not possible since it doesn't work :D. It completely freezes the CPU (Zero).
I just found this on Gammon's Forum
You cannot use delays in an interrupt.
•Don't attempt to delay, eg: delay (100);
•You can get the time from a call to millis, however it won't increment, so don't attempt to delay by waiting for it to increase.
•Don't do serial prints (eg. Serial.println ("ISR entered"); )
•Don't try to do serial reading.
So I think the "Do not use Serial.print" is also effective as "do not use I2C" since I2C uses interrupts as well (?)