led blink rate 0.5s

Dependencies:   mbed

Committer:
jw17594
Date:
Thu Jan 18 14:03:01 2018 +0000
Revision:
0:cef00c872d5b
LED1 blink (rate:0.5s)

Who changed what in which revision?

UserRevisionLine numberNew contents of line
jw17594 0:cef00c872d5b 1 #include "mbed.h"
jw17594 0:cef00c872d5b 2 DigitalOut myled(LED1);
jw17594 0:cef00c872d5b 3 int main() {
jw17594 0:cef00c872d5b 4 while(1) {
jw17594 0:cef00c872d5b 5 myled = 1;
jw17594 0:cef00c872d5b 6 wait(0.5);
jw17594 0:cef00c872d5b 7 myled = 0;
jw17594 0:cef00c872d5b 8 wait(0.5);
jw17594 0:cef00c872d5b 9 }
jw17594 0:cef00c872d5b 10 }