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.
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