blinky with precompiled mbed lib

Dependencies:   mbed-dev

Committer:
rcflyair
Date:
Wed Mar 01 20:27:28 2017 +0000
Revision:
1:b58ff47de6d2
Parent:
0:19eaafe78f0e
dev

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 }