Alex Allen / flash
Revision:
0:8f42ebd85c7a
Child:
1:3c829c6b7d39
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/flash.h	Sat Oct 13 11:16:15 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