blinky with precompiled mbed lib

Dependencies:   mbed-dev

Committer:
rcflyair
Date:
Fri Feb 24 16:50:51 2017 +0000
Revision:
0:19eaafe78f0e
commit blinky with precompiled mbed libs;

Who changed what in which revision?

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