Yutong Gu
/
mbed_blinky_2
This is a test repo
main.cpp@0:44aaeae4bb7a, 2019-11-20 (annotated)
- Committer:
- yutonggu
- Date:
- Wed Nov 20 21:30:45 2019 +0000
- Revision:
- 0:44aaeae4bb7a
- Child:
- 1:165b69c34adc
Added comment;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
yutonggu | 0:44aaeae4bb7a | 1 | #include "mbed.h" |
yutonggu | 0:44aaeae4bb7a | 2 | |
yutonggu | 0:44aaeae4bb7a | 3 | DigitalOut myled(LED1); |
yutonggu | 0:44aaeae4bb7a | 4 | |
yutonggu | 0:44aaeae4bb7a | 5 | int main() { |
yutonggu | 0:44aaeae4bb7a | 6 | while(1) { |
yutonggu | 0:44aaeae4bb7a | 7 | //This is Yutong's comment |
yutonggu | 0:44aaeae4bb7a | 8 | myled = 1; |
yutonggu | 0:44aaeae4bb7a | 9 | wait(0.2); |
yutonggu | 0:44aaeae4bb7a | 10 | myled = 0; |
yutonggu | 0:44aaeae4bb7a | 11 | wait(0.2); |
yutonggu | 0:44aaeae4bb7a | 12 | } |
yutonggu | 0:44aaeae4bb7a | 13 | } |