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.
Revision 0:78eeb27924f4, committed 2014-05-21
- Comitter:
- MartinWeber
- Date:
- Wed May 21 12:14:56 2014 +0000
- Commit message:
- lol;
Changed in this revision
diff -r 000000000000 -r 78eeb27924f4 C12832_lcd.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/C12832_lcd.lib Wed May 21 12:14:56 2014 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/dreschpe/code/C12832_lcd/#c9afe58d786a
diff -r 000000000000 -r 78eeb27924f4 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Wed May 21 12:14:56 2014 +0000 @@ -0,0 +1,48 @@ +#include "mbed.h" +#include "C12832_lcd.h" + +C12832_LCD lcd; + +BusOut myleds(LED1, LED2, LED3, LED4); + +InterruptIn button_up(p15); +InterruptIn button_down(p12); +InterruptIn button_left(p13); + +int i = 0; + +void out() +{ + myleds = i; +} + +void count() +{ + i++; + out(); +} + +void discount() +{ + i--; + out(); +} + +void clear() +{ + i = 0; + out(); +} + +int main() +{ + button_up.rise(&count); + button_down.fall(&discount); + button_left.rise(&clear); + + while(1) + {} +} + + + \ No newline at end of file
diff -r 000000000000 -r 78eeb27924f4 mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Wed May 21 12:14:56 2014 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/0b3ab51c8877 \ No newline at end of file