Dr. Pucher
/
mbed_blinky_5ABELI
My first Blinky-Program
5ABELI Testprogramm
Weiter gehts!
Diff: main.cpp
- Revision:
- 0:5629bcae0c89
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Mon Dec 04 18:24:50 2017 +0000 @@ -0,0 +1,14 @@ +#include "mbed.h" + +DigitalOut myled(LED1); +DigitalOut myled2(LED2, 1); + +int main() { + while(1) { + myled.write(1); + myled2 = !myled2; + wait(0.5); + myled = 0; + wait(0.5); + } +}