Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: flash/flash.h
- Revision:
- 0:feaa05d35ccf
diff -r 000000000000 -r feaa05d35ccf flash/flash.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/flash/flash.h Wed Mar 07 20:02:35 2012 +0000 @@ -0,0 +1,32 @@ +#ifndef FLASHY + + /* Lights up each LED in turn starting from the left going + to the right and then back again */ + void lightup(); + + // 5 second timer counting down on LEDs + void timer(); + + /* flashes all LEDs on and off at once "times" number of time + with a gap of "gap" seconds between flashes */ + void flash(int times, float gap); + + // Single flash on led1 for "gap" seconds + void flash1(float gap); + + // Single flash on led1 for "gap" seconds + void flash2(float gap); + + /* inifite loop indicating something has failed terminally + and mbed needs reseting. Flashes outer then inner LEDs */ + void errormsg1(float gap); + + /* inifite loop indicating something has failed terminally + and mbed needs reseting. Flashes outer then inner LEDs */ + void errormsg2(float gap); + + // LEDs light up one at a time until all are lit + void signal(float gap); + + #define FLASHY 1 +#endif \ No newline at end of file