LED hello world

Dependencies:   mbed

Committer:
thezucks300
Date:
Fri Oct 19 19:41:11 2018 +0000
Revision:
1:9a1cc07a6a83
Parent:
0:df8e650627f2
slowdown blink rate

Who changed what in which revision?

UserRevisionLine numberNew contents of line
thezucks300 0:df8e650627f2 1 #include "mbed.h"
thezucks300 0:df8e650627f2 2
thezucks300 0:df8e650627f2 3 DigitalOut myled(LED1);
thezucks300 0:df8e650627f2 4 DigitalOut myled2(LED2);
thezucks300 0:df8e650627f2 5
thezucks300 0:df8e650627f2 6
thezucks300 0:df8e650627f2 7 int main() {
thezucks300 0:df8e650627f2 8 while(1) {
thezucks300 0:df8e650627f2 9 myled = 1;
thezucks300 0:df8e650627f2 10 myled2 = 1;
thezucks300 1:9a1cc07a6a83 11 wait(0.5);
thezucks300 0:df8e650627f2 12 myled = 0;
thezucks300 0:df8e650627f2 13 myled2 = 1;
thezucks300 1:9a1cc07a6a83 14 wait(0.5);
thezucks300 0:df8e650627f2 15 }
thezucks300 0:df8e650627f2 16 }