|
modm API documentation
|
#include <modm/ui/animation/strobe.hpp>
Public Member Functions | |
| Strobe (Animation< T > &animator) | |
| bool | setPeriod (TimeType period, uint8_t dutyCycle1=7, uint8_t dutyCycle2=10, uint8_t dutyCycle3=10) |
| void | setFadeTimes (TimeType onFade, TimeType offFade) |
| void | setRange (T minValue, T maxValue) |
| void | start (uint8_t repeat=0) |
| start indicating for ever | |
| void | stop () |
| Stops indicating after finishing the current cycle. | |
| void | cancel () |
| bool | isAnimating () const |
| void | update () |
| Must be called at least every ms. | |
This class provided two smooth on and off phases.
|
inline |
| onFade | the time is takes to turn on in ms |
| offFade | the time is takes to turn off in ms |
|
inline |
| period | in ms |
| dutyCycle | in percent <= 100 |
true if inputs were correct, false otherwise