test
Dependencies: mbed
main.cpp@0:9c31c7852e87, 2018-01-23 (annotated)
- Committer:
- raduschirila
- Date:
- Tue Jan 23 13:31:38 2018 +0000
- Revision:
- 0:9c31c7852e87
- Child:
- 1:45bc55587c9c
test code;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
raduschirila | 0:9c31c7852e87 | 1 | #include "mbed.h" |
raduschirila | 0:9c31c7852e87 | 2 | |
raduschirila | 0:9c31c7852e87 | 3 | DigitalOut myled(LED1); |
raduschirila | 0:9c31c7852e87 | 4 | |
raduschirila | 0:9c31c7852e87 | 5 | int main() { |
raduschirila | 0:9c31c7852e87 | 6 | while(1) { |
raduschirila | 0:9c31c7852e87 | 7 | myled = 1; |
raduschirila | 0:9c31c7852e87 | 8 | wait(0.2); |
raduschirila | 0:9c31c7852e87 | 9 | myled = 0; |
raduschirila | 0:9c31c7852e87 | 10 | wait(0.2); |
raduschirila | 0:9c31c7852e87 | 11 | } |
raduschirila | 0:9c31c7852e87 | 12 | } |