example use library LibThreadProcess
Dependencies: LibThreadProcess mbed-rtos mbed
Fork of rtos_signals by
main.cpp@4:fde9ea156f7c, 2016-05-24 (annotated)
- Committer:
- AVELARDEV
- Date:
- Tue May 24 06:47:15 2016 +0000
- Revision:
- 4:fde9ea156f7c
- Parent:
- 1:6a8fcc666593
first example BlinkLed Library
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
emilmont | 1:6a8fcc666593 | 1 | #include "mbed.h" |
AVELARDEV | 4:fde9ea156f7c | 2 | #include "BlinkLed.h" |
emilmont | 1:6a8fcc666593 | 3 | |
AVELARDEV | 4:fde9ea156f7c | 4 | BlinkLed led1(LED1, 500); |
AVELARDEV | 4:fde9ea156f7c | 5 | BlinkLed led2(LED2, 1000); |
AVELARDEV | 4:fde9ea156f7c | 6 | BlinkLed led3(LED3, 2000); |
emilmont | 1:6a8fcc666593 | 7 | |
AVELARDEV | 4:fde9ea156f7c | 8 | int main() { |
AVELARDEV | 4:fde9ea156f7c | 9 | led1.startBlink(); |
AVELARDEV | 4:fde9ea156f7c | 10 | led2.startBlink(); |
AVELARDEV | 4:fde9ea156f7c | 11 | led3.startBlink(); |
AVELARDEV | 4:fde9ea156f7c | 12 | } |