COSA
An Object-Oriented Platform for Arduino Programming
|
#include <LED.hh>
Public Member Functions | |
LED (Job::Scheduler *scheduler, Board::DigitalPin pin=Board::LED) | |
void | on () |
void | off () |
void | normal_mode () |
void | alert_mode () |
Private Member Functions | |
void | period (uint32_t time) |
uint32_t | period () const |
void | reschedule () |
virtual void | on_event (uint8_t type, uint16_t value) |
void | expire_at (uint32_t time) |
uint32_t | expire_at () const |
void | expire_after (uint32_t time) |
int32_t | expire_after () const |
uint32_t | time () const |
bool | is_started () const |
bool | start () |
bool | stop () |
virtual void | on_expired () |
void | detach () |
Linkage * | succ () const |
Linkage * | pred () const |
void | attach (Linkage *pred) |
Private Attributes | |
uint32_t | m_period |
uint32_t | m_expires |
Scheduler * | m_scheduler |
Linkage * | m_succ |
Linkage * | m_pred |
Blinking LED; Use built-in LED or other digital pin for pulse. Support simple application status indicator.
|
inline |
|
inline |