Test

Dependencies:   mbed

Committer:
yvesyuzo
Date:
Wed Oct 17 12:25:52 2018 +0000
Revision:
0:e6fb1f045754
Child:
1:8810749b5f73
First revision

Who changed what in which revision?

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