Allen Smith
/
firstTest
somme dumb test
Diff: main.cpp
- Revision:
- 0:a180484467e1
- Child:
- 1:ea80f6d915c1
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Mon Jul 22 14:38:47 2013 +0000 @@ -0,0 +1,30 @@ +#include "mbed.h" + +DigitalOut myled0(LED1); +DigitalOut myled1(LED2); +DigitalOut myled2(LED3); +DigitalOut myled3(LED4); + +int main() { + while(1) { + myled0 = 1; + wait(0.1); + myled0 = 0; + wait(0.4); + + myled1 = 1; + wait(0.1); + myled1 = 0; + wait(0.4); + + myled2 = 1; + wait(0.1); + myled2 = 0; + wait(0.4); + + myled3 = 1; + wait(0.1); + myled3 = 0; + wait(0.4); + } +}