![](/media/cache/profiles/59fa227af2f15ab2c13cdd9537d536fe.jpg.50x50_q85.jpg)
commit
main.cpp@5:a904168968de, 2017-03-01 (annotated)
- Committer:
- rcflyair
- Date:
- Wed Mar 01 21:40:00 2017 +0000
- Revision:
- 5:a904168968de
- Parent:
- 2:b60cb847489c
initial commit;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
screamer | 0:005629fe3609 | 1 | #include "mbed.h" |
screamer | 0:005629fe3609 | 2 | |
screamer | 0:005629fe3609 | 3 | DigitalOut myled(LED1); |
screamer | 0:005629fe3609 | 4 | |
screamer | 0:005629fe3609 | 5 | int main() { |
screamer | 0:005629fe3609 | 6 | while(1) { |
bcostm | 2:b60cb847489c | 7 | myled = 1; // LED is ON |
bcostm | 2:b60cb847489c | 8 | wait(0.2); // 200 ms |
bcostm | 2:b60cb847489c | 9 | myled = 0; // LED is OFF |
bcostm | 2:b60cb847489c | 10 | wait(1.0); // 1 sec |
screamer | 0:005629fe3609 | 11 | } |
screamer | 0:005629fe3609 | 12 | } |