Rajkumar R
/
mbed_blinky
trial
main.cpp@0:a9431479515a, 2018-09-24 (annotated)
- Committer:
- Rajkumar_RK
- Date:
- Mon Sep 24 05:15:11 2018 +0000
- Revision:
- 0:a9431479515a
new;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Rajkumar_RK | 0:a9431479515a | 1 | #include "mbed.h" |
Rajkumar_RK | 0:a9431479515a | 2 | |
Rajkumar_RK | 0:a9431479515a | 3 | DigitalOut myled(LED1); |
Rajkumar_RK | 0:a9431479515a | 4 | |
Rajkumar_RK | 0:a9431479515a | 5 | int main() { |
Rajkumar_RK | 0:a9431479515a | 6 | while(1) { |
Rajkumar_RK | 0:a9431479515a | 7 | myled = 1; |
Rajkumar_RK | 0:a9431479515a | 8 | wait(0.2); |
Rajkumar_RK | 0:a9431479515a | 9 | myled = 0; |
Rajkumar_RK | 0:a9431479515a | 10 | wait(0.2); |
Rajkumar_RK | 0:a9431479515a | 11 | } |
Rajkumar_RK | 0:a9431479515a | 12 | } |