Tried it and it worked perfectly. Thank you so much!I guess there are many errors.
But to name one that directly stands out:must beCode:
bool interrupt_flag = false;
The interrupt handler is changing the variable, it must be volatile.Code:
volatile bool interrupt_flag = false;
Statistics: Posted by machotaco789 — Wed Dec 27, 2023 12:13 am