a

Dependencies:   mbed

Committer:
nanjo
Date:
Sat May 18 09:33:58 2019 +0000
Revision:
0:6b8edd2fbc50
a

Who changed what in which revision?

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