ESP

Dependencies:   mbed

Committer:
fwndz
Date:
Wed Dec 21 12:23:44 2016 +0000
Revision:
0:a6e5b95a327c
ESP Init

Who changed what in which revision?

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