New answers tagged c++
3
votes
Alternative to polling interrupt flag from main loop?
Since you tagged it Teensy: You could also reduce the priority of the interrupt, so that it can be interrupted by higher priority interrupts. Thus you can implement interrupts with longer durations ...
9
votes
Accepted
Alternative to polling interrupt flag from main loop?
If the task is pretty short and time sensitive, your best option is to
put it in the interrupt handler.
If the task is big and not too urgent (like: it could well wait for a
millisecond or so), your ...
Top 50 recent answers are included
Related Tags
c++ × 1062arduino-uno × 283
programming × 212
arduino-ide × 124
c × 83
serial × 72
arduino-mega × 66
library × 50
esp8266 × 46
class × 44
array × 42
string × 40
led × 38
sensors × 33
arduino-nano × 32
esp32 × 31
interrupt × 25
pointer × 22
sketch × 21
i2c × 20
lcd × 18
variables × 18
servo × 17
compile × 17
memory-usage × 17