9 years, 4 months ago.

how do I prevent the LEDs flashing and return to the main code when instigating the alarm function?

how do I prevent the LEDs flashing and return to the main code when instigating the alarm function?

Question relating to:

Allows easy usage of the LPC1768 RTC interrupts alarm, interrupt, RTC, time

1 Answer

9 years, 4 months ago.

By using other code in the alarm function. It is just an example program you are using, and the error function it now calls is supposed to let the LEDs flash and prevent returning to the main code. You can for example simply replace it with a printf function.

Accepted Answer

Thanks, what an idiot, i didn't see the "error" just assumed it was "printf" thanks for opening my eyes!

posted by james Bryant 22 Jul 2015