Mike Fiore
/
mdot_example
example program for the dot
Diff: main.cpp
- Revision:
- 0:222505173e84
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Tue Jun 02 15:40:45 2015 +0000 @@ -0,0 +1,12 @@ +#include "mbed.h" + +int main() { + DigitalOut led(LED1); + Serial ser(USBTX, USBRX); + + while(true) { + led = !led; + ser.printf("hello world!"); + wait(2); + } +} \ No newline at end of file