completed code

Dependencies:   mbed

Committer:
evenbrownie
Date:
Thu Nov 08 20:48:47 2018 +0000
Revision:
0:f43994f44684
Child:
2:a4d5e7f96e87
All I put in were the addresses from the beginning

Who changed what in which revision?

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