Hi I have a VERY simple question. I need to read the status of a digital pin which is connected to an interrupt.
Without the interrupt this is straightforward:
but as soon as the interrupt is attached it just will no longer read the pin correctly.
If I disable the interrupt it will read it correctly again.
So there is definitely an issue between interrupts and digitalRead. Looks like a bug to me? Any other way to read the pin? This happened with the Teensy 4.1 and 3.5 units I have here, possibly with other models as well.
Pls let me know
Thanks!
Without the interrupt this is straightforward:
Code:
status = digitalreadFast(pin);
but as soon as the interrupt is attached it just will no longer read the pin correctly.
If I disable the interrupt it will read it correctly again.
So there is definitely an issue between interrupts and digitalRead. Looks like a bug to me? Any other way to read the pin? This happened with the Teensy 4.1 and 3.5 units I have here, possibly with other models as well.
Pls let me know
Thanks!