1 of 1 people found this helpful
The M0 core at 24 MHz is quite fast enough to handle the if() and the LED write. To optimize use a local static uint8 for the LED state and
if(NeedToBlink) LEDPin_Write(LEDState = !LEDState);
Do not forget to switch off the LED when you set NeedToblink to false.
Thanks Bob, that worked!
You are always welcome, Andy.