simple blinky with mbed-dev source

Dependencies:   mbed-dev

Fork of Nucleo_blink_led_copy by Steven Cheldelin

Committer:
rcflyair
Date:
Fri Feb 24 15:07:46 2017 +0000
Revision:
0:f97055fd6e94
Commit simple blinky program with mbed-dev library source

Who changed what in which revision?

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