The ISR routine “readvalue” seems to be breaking the rules of an ISR
- Keep it short
- Don't use delay ()
- Don't do serial prints Etc.
So it probably will not work.
The most that an interrupt (service) routine might do would be to remember that the button was pressed.
This fact would then be tested in the main program loop.
- Keep it short
- Don't use delay ()
- Don't do serial prints Etc.
So it probably will not work.
The most that an interrupt (service) routine might do would be to remember that the button was pressed.
This fact would then be tested in the main program loop.
Statistics: Posted by neilgl — Fri May 10, 2024 8:12 am