Additional Inherited Members |
virtual void | initActuator (uint8_t pin) |
uint8_t | outputState |
Member Function Documentation
void SimpleLed::dinamicBlink |
( |
uint16_t |
period | ) |
|
Makes led blink dinamically.Use update() to update led state.
- Parameters
-
period | Blinking period in milliseconds, duty cicle is 50% |
void SimpleLed::dinamicRepeatedBlink |
( |
uint16_t |
times, |
|
|
uint16_t |
period |
|
) |
| |
Makes led blink dinamically without blocking. Use update() to update led state.
- Parameters
-
times | Number of times to blink |
periodo | Blinking period in milliseconds, duty cicle is 50% |
void SimpleLed::dinamicTimedBlink |
( |
uint16_t |
howLong, |
|
|
uint16_t |
period |
|
) |
| |
Makes led blink dinamically.Use update() to update led state. Time kept blinking.
- Parameters
-
period | Blinking period in milliseconds, duty cicle is 50% |
void SimpleLed::emit |
( |
uint8_t |
level | ) |
|
|
virtual |
void SimpleLed::initLed |
( |
uint8_t |
ledPin, |
|
|
boolean |
isPWM = true |
|
) |
| |
Inits led
- Parameters
-
ledPin | Arduino pin number |
isPWM | Say true if pin is PWM |
void SimpleLed::reset |
( |
| ) |
|
|
virtual |
Resets blinking and turns led off.
void SimpleLed::setLevel |
( |
uint8_t |
newLevel | ) |
|
Sets led output level
- Parameters
-
newLevel | Pin set as PWM (0-255), Digital (0,1) |
void SimpleLed::staticBlink |
( |
uint16_t |
times, |
|
|
uint16_t |
period |
|
) |
| |
Makes led blink blocking
- Parameters
-
times | Number of times to blink |
periodo | Blinking periodin milliseconds, duty cicle is 50% |
void SimpleLed::update |
( |
| ) |
|
Updates led state. To be used when dinamically blinking.
The documentation for this class was generated from the following files: