BlinkLed automatically. This library requires RTOS.
Dependents: mpod_nhk_english mpod_picasa_photoframe mpod_nhk_english_spxml
You are viewing an older revision! See the latest version
Homepage
main.cpp
#include "mbed.h" #include "BlinkLed.h" BlinkLed led1(LED1, 0.02); BlinkLed led2(LED2, 0.04); BlinkLed led3(LED3, 0.06); BlinkLed led4(LED4, 0.08); int main() { while(1) { led1.startBlink(); Thread::wait(1000); led2.startBlink(); Thread::wait(1000); led3.startBlink(); Thread::wait(1000); led4.startBlink(); Thread::wait(10000); led1.finishBlink(); Thread::wait(1000); led2.finishBlink(); Thread::wait(1000); led3.finishBlink(); Thread::wait(1000); led4.finishBlink(); Thread::wait(1000); } }
Import library
Public Member Functions |
|
BlinkLed (PinName pin, float dutyChangeStep) | |
Constructor.
|
|
~BlinkLed () | |
Destructor.
|
|
void | startBlink () |
Start biinking.
|
|
void | finishBlink () |
Finish biinking.
|