Ram Tenet Technetronics
/
mine_first
Just a test file to check the status of the LEDS as well as print to the serial USN
Diff: main.cpp
- Revision:
- 0:24b7b32b586b
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Thu Aug 05 17:22:00 2010 +0000 @@ -0,0 +1,20 @@ +#include "mbed.h" + +DigitalOut myled1(LED1); +DigitalOut myled2(LED2); +DigitalOut myled3(LED3); +DigitalOut myled4(LED4); + +Serial pc(USBTX, USBRX); +int main() +{ +pc.printf("The LED DEMO "); +while(1) +{ +myled1 = 1 ; +myled2 = 0 ; +myled3 = 1 ; +myled4 = 0 ; + +} +} \ No newline at end of file