Dheeraj M Pai
/
Sivarams_code
ADF7023
Diff: main.cpp
- Revision:
- 0:3237cc3d7ac0
diff -r 000000000000 -r 3237cc3d7ac0 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Thu Jul 09 06:51:57 2015 +0000 @@ -0,0 +1,13 @@ +#include "mbed.h" + +DigitalOut gpo(D0); +DigitalOut led(LED_RED); + +int main() +{ + while (true) { + gpo = !gpo; // toggle pin + led = !led; // toggle led + wait(0.2f); + } +} \ No newline at end of file