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.
Dependencies: mbed
Diff: main.cpp
- Revision:
- 0:c15e36525dd9
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Thu Dec 10 14:43:19 2015 +0000 @@ -0,0 +1,21 @@ +#include "mbed.h" + +int main() { + DigitalOut Led1 (LED1); + DigitalIn sw(p5); + sw.mode(PullUp); + int counter=0; + + while(1) +{ + if (sw==1) + { + counter++; + } + if((counter%9)==0) + { + Led1 = 1; + } + +} +} \ No newline at end of file