Evan Brown
/
APpart3_E_start_2
completed code
main.cpp@0:f43994f44684, 2018-11-08 (annotated)
- 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?
User | Revision | Line number | New 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 | } |