
Trying to use a library
Dependencies: mbed-rtos mbed BlinkLib
Fork of NerfUS by
main.cpp@9:2d5e60c13461, 2017-02-09 (annotated)
- Committer:
- dupm2216
- Date:
- Thu Feb 09 16:35:02 2017 +0000
- Revision:
- 9:2d5e60c13461
- Parent:
- 8:5b1548305a7f
- Child:
- 10:2419cf5479c7
Revert "Refactor to use library BlinkLib"
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
dupm2216 | 9:2d5e60c13461 | 1 | #include "mbed.h" |
dupm2216 | 9:2d5e60c13461 | 2 | #include "rtos.h" |
dupm2216 | 0:e7c4a5d26268 | 3 | |
dupm2216 | 9:2d5e60c13461 | 4 | DigitalOut myled(LED1); |
dupm2216 | 0:e7c4a5d26268 | 5 | |
Maxime Dupuis |
2:6e467e4978f9 | 6 | int main() |
Maxime Dupuis |
2:6e467e4978f9 | 7 | { |
Maxime Dupuis |
2:6e467e4978f9 | 8 | while(1) |
Maxime Dupuis |
2:6e467e4978f9 | 9 | { |
dupm2216 | 9:2d5e60c13461 | 10 | myled = 1; |
dupm2216 | 9:2d5e60c13461 | 11 | wait(0.5); |
dupm2216 | 9:2d5e60c13461 | 12 | myled = 0; |
dupm2216 | 9:2d5e60c13461 | 13 | wait(0.5); |
dupm2216 | 0:e7c4a5d26268 | 14 | } |
dupm2216 | 0:e7c4a5d26268 | 15 | } |