Trying to use a library
Dependencies: mbed-rtos mbed BlinkLib
Fork of NerfUS by
main.cpp@1:ed506b2298b4, 2017-02-05 (annotated)
- Committer:
- dupm2216
- Date:
- Sun Feb 05 03:14:06 2017 +0000
- Revision:
- 1:ed506b2298b4
- Parent:
- 0:e7c4a5d26268
- Child:
- 2:6e467e4978f9
Add rtos library
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
dupm2216 | 0:e7c4a5d26268 | 1 | #include "mbed.h" |
dupm2216 | 1:ed506b2298b4 | 2 | #include "rtos.h" |
dupm2216 | 0:e7c4a5d26268 | 3 | |
dupm2216 | 0:e7c4a5d26268 | 4 | DigitalOut myled(LED1); |
dupm2216 | 0:e7c4a5d26268 | 5 | |
dupm2216 | 0:e7c4a5d26268 | 6 | int main() { |
dupm2216 | 0:e7c4a5d26268 | 7 | while(1) { |
dupm2216 | 0:e7c4a5d26268 | 8 | myled = 1; |
dupm2216 | 0:e7c4a5d26268 | 9 | wait(0.2); |
dupm2216 | 0:e7c4a5d26268 | 10 | myled = 0; |
dupm2216 | 0:e7c4a5d26268 | 11 | wait(0.2); |
dupm2216 | 0:e7c4a5d26268 | 12 | } |
dupm2216 | 0:e7c4a5d26268 | 13 | } |