test mbed led

Dependencies:   mbed

Committer:
ABT
Date:
Tue Oct 15 11:49:59 2013 +0000
Revision:
0:537326b784dd
led code to test mbed

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ABT 0:537326b784dd 1 #include "mbed.h"
ABT 0:537326b784dd 2
ABT 0:537326b784dd 3 DigitalOut myled(LED1);
ABT 0:537326b784dd 4
ABT 0:537326b784dd 5 int main() {
ABT 0:537326b784dd 6 while(1) {
ABT 0:537326b784dd 7 myled = 1;
ABT 0:537326b784dd 8 wait(0.2);
ABT 0:537326b784dd 9 myled = 0;
ABT 0:537326b784dd 10 wait(0.2);
ABT 0:537326b784dd 11 }
ABT 0:537326b784dd 12 }