Dr. Pucher
/
mbed_blinky_5ABELI
My first Blinky-Program
5ABELI Testprogramm
Weiter gehts!
Revision 0:5629bcae0c89, committed 2017-12-04
- Comitter:
- bulmecisco
- Date:
- Mon Dec 04 18:24:50 2017 +0000
- Commit message:
- First try
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
mbed.bld | Show annotated file Show diff for this revision Revisions of this file |
--- /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); + } +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Mon Dec 04 18:24:50 2017 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/e7ca05fa8600 \ No newline at end of file