test33

Dependencies:   mbed

Committer:
ManuelJoaquim
Date:
Sun Mar 30 18:49:38 2014 +0000
Revision:
2:d4cec5b8d032
Parent:
1:b6a407375dcc
ledopisca

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ManuelJoaquim 0:870b78bb0e3d 1 #include "mbed.h"
ManuelJoaquim 0:870b78bb0e3d 2
ManuelJoaquim 0:870b78bb0e3d 3 DigitalOut myled(LED1);
ManuelJoaquim 0:870b78bb0e3d 4
ManuelJoaquim 0:870b78bb0e3d 5 int main()
ManuelJoaquim 0:870b78bb0e3d 6 {
ManuelJoaquim 0:870b78bb0e3d 7 while(1) {
ManuelJoaquim 0:870b78bb0e3d 8 myled = 1; // LED is ON
ManuelJoaquim 2:d4cec5b8d032 9 wait(0.6); // 1000ms
ManuelJoaquim 0:870b78bb0e3d 10 myled = 0; // LED is OFF
ManuelJoaquim 0:870b78bb0e3d 11 wait(1.0); // 1 sec
ManuelJoaquim 0:870b78bb0e3d 12 }
ManuelJoaquim 0:870b78bb0e3d 13 }