Trying to use a library
Dependencies: mbed-rtos mbed BlinkLib
Fork of NerfUS by
main.cpp@10:2419cf5479c7, 2017-02-09 (annotated)
- Committer:
- dupm2216
- Date:
- Thu Feb 09 16:52:32 2017 +0000
- Revision:
- 10:2419cf5479c7
- Parent:
- 9:2d5e60c13461
Use BlinkerLib and MbedBlinker
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
dupm2216 | 9:2d5e60c13461 | 1 | #include "mbed.h" |
dupm2216 | 10:2419cf5479c7 | 2 | #include "MbedBlinker.hpp" |
dupm2216 | 0:e7c4a5d26268 | 3 | |
dupm2216 | 10:2419cf5479c7 | 4 | DigitalOut led(LED1); |
dupm2216 | 0:e7c4a5d26268 | 5 | |
Maxime Dupuis |
2:6e467e4978f9 | 6 | int main() |
Maxime Dupuis |
2:6e467e4978f9 | 7 | { |
dupm2216 | 10:2419cf5479c7 | 8 | MbedBlinker blinker(led); |
Maxime Dupuis |
2:6e467e4978f9 | 9 | while(1) |
Maxime Dupuis |
2:6e467e4978f9 | 10 | { |
dupm2216 | 10:2419cf5479c7 | 11 | blinker.blink(); |
dupm2216 | 0:e7c4a5d26268 | 12 | } |
dupm2216 | 0:e7c4a5d26268 | 13 | } |