M0Board_WF
/
WF_taster_polling
a
Revision 0:6552d0f9a494, committed 2015-01-28
- Comitter:
- bulmenwt
- Date:
- Wed Jan 28 07:55:40 2015 +0000
- Commit message:
- a
Changed in this revision
diff -r 000000000000 -r 6552d0f9a494 LM75B.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/LM75B.lib Wed Jan 28 07:55:40 2015 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/neilt6/code/LM75B/#7ac462ba84ac
diff -r 000000000000 -r 6552d0f9a494 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Wed Jan 28 07:55:40 2015 +0000 @@ -0,0 +1,23 @@ +/*M0-BOARD LPC11U24 VERSION 1.0 WF 01_2015 +BULME Graz / Elektronik + +Polling eines Tasters + +Datei: WF_taster_polling/main.cpp + +*/ + +#include "mbed.h" +DigitalIn enable(P0_10); // Taste sw2 +DigitalOut led(LED1); +int main() +{ + while(1) + { + if(enable) + { + led = !led; // Signal an der LED invertieren + } + wait(0.25); // warte 0,25 Sekunden + } +} \ No newline at end of file
diff -r 000000000000 -r 6552d0f9a494 mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Wed Jan 28 07:55:40 2015 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/552587b429a1 \ No newline at end of file