blink LED TES

Dependencies:   mbed

Committer:
Brand101
Date:
Fri Sep 23 12:08:06 2016 +0000
Revision:
0:6e317817e08d
Prog. test_demo_334R8;

Who changed what in which revision?

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