Alex Allen / Mbed 2 deprecated Balloon

Dependencies:   UM12 mbed

flash/flash.h

Committer:
AlexAllen
Date:
2012-03-07
Revision:
0:feaa05d35ccf

File content as of revision 0:feaa05d35ccf:

#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