Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5362

General • Re: How to interrupt using RS485-TTL

$
0
0
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.

Statistics: Posted by neilgl — Fri May 10, 2024 8:12 am



Viewing all articles
Browse latest Browse all 5362

Trending Articles