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.
main.cpp
- Committer:
- p07gbar
- Date:
- 2011-02-19
- Revision:
- 0:cc4359728915
File content as of revision 0:cc4359728915:
// Switches LED1 through the different modes
#include "mbed.h"
#include "Flasher.h"
Flasher myFlasher(LED1, OFF); //Defines myFlasher on LED1 starting off
int main() {
while(1){
wait(5);
myFlasher.updateFlash(ON);
wait(5);
myFlasher.updateFlash(SLOW);
wait(5);
myFlasher.updateFlash(MEDIUM);
wait(5);
myFlasher.updateFlash(QUICK);
wait(5);
myFlasher.onFor(3,ON,MEDIUM);
wait(5);
myFlasher.pauseFor(2);
wait(5);
myFlasher.updateFlash(OFF);
}
}