Fernando Díez / Mbed 2 deprecated p2181018

Dependencies:   mbed

Fork of p2181018 by El_clan_zoncillo

Committer:
freind00
Date:
Thu Oct 18 10:24:40 2018 +0000
Revision:
0:76ce24d75200
Child:
1:01a57c19e8ac
Commit inicial

Who changed what in which revision?

UserRevisionLine numberNew contents of line
freind00 0:76ce24d75200 1 #include "mbed.h"
freind00 0:76ce24d75200 2
freind00 0:76ce24d75200 3 DigitalOut myled(LED1);
freind00 0:76ce24d75200 4
freind00 0:76ce24d75200 5 int main() {
freind00 0:76ce24d75200 6 while(1) {
freind00 0:76ce24d75200 7 myled = 1; // LED is ON
freind00 0:76ce24d75200 8 wait(0.2); // 200 ms
freind00 0:76ce24d75200 9 myled = 0; // LED is OFF
freind00 0:76ce24d75200 10 wait(1.0); // 1 sec
freind00 0:76ce24d75200 11 }
freind00 0:76ce24d75200 12 }