Make et Faire de Grenoble

Dependencies:   mbed

Committer:
fbd38
Date:
Tue Mar 07 17:57:13 2017 +0000
Revision:
0:9136eae25481
Version Initiale

Who changed what in which revision?

UserRevisionLine numberNew contents of line
fbd38 0:9136eae25481 1 #include "mbed.h"
fbd38 0:9136eae25481 2
fbd38 0:9136eae25481 3 DigitalOut myled(LED1);
fbd38 0:9136eae25481 4
fbd38 0:9136eae25481 5 int main() {
fbd38 0:9136eae25481 6 while(1) {
fbd38 0:9136eae25481 7 myled = 1; // LED is ON
fbd38 0:9136eae25481 8 wait(0.5); // 0.5 sec
fbd38 0:9136eae25481 9 myled = 0; // LED is OFF
fbd38 0:9136eae25481 10 wait(1.5); // 1.5 sec
fbd38 0:9136eae25481 11 }
fbd38 0:9136eae25481 12 }