Compass Yap
/
Test_mbed_blinky
hello test
main.cpp@0:4651d2bc2edf, 2017-09-21 (annotated)
- Committer:
- Compass_Yap
- Date:
- Thu Sep 21 05:34:49 2017 +0000
- Revision:
- 0:4651d2bc2edf
- Child:
- 1:956ce737cb2b
Test_mbed_Blink
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Compass_Yap | 0:4651d2bc2edf | 1 | #include "mbed.h" |
Compass_Yap | 0:4651d2bc2edf | 2 | |
Compass_Yap | 0:4651d2bc2edf | 3 | DigitalOut myled(LED1); |
Compass_Yap | 0:4651d2bc2edf | 4 | |
Compass_Yap | 0:4651d2bc2edf | 5 | int main() { |
Compass_Yap | 0:4651d2bc2edf | 6 | while(1) { |
Compass_Yap | 0:4651d2bc2edf | 7 | myled = 1; |
Compass_Yap | 0:4651d2bc2edf | 8 | wait(0.2); |
Compass_Yap | 0:4651d2bc2edf | 9 | myled = 0; |
Compass_Yap | 0:4651d2bc2edf | 10 | wait(0.2); |
Compass_Yap | 0:4651d2bc2edf | 11 | } |
Compass_Yap | 0:4651d2bc2edf | 12 | } |