roo_blink
API Documentation for roo_blink
Loading...
Searching...
No Matches
blinker.h File Reference
#include <Arduino.h>
#include <vector>
#include "roo_blink/monochrome/led.h"
#include "roo_logging.h"
#include "roo_scheduler.h"
#include "roo_threads.h"
#include "roo_time.h"
Include dependency graph for blinker.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

class  roo_blink::Step
 Single step of a monochrome blink sequence. More...
 
class  roo_blink::BlinkSequence
 Sequence of steps for monochrome blinking. More...
 
class  roo_blink::Blinker
 Runs blink sequences on a monochrome LED. More...
 

Namespaces

 

Functions

constexpr Step roo_blink::TurnOn ()
 Creates a step that sets the LED to the maximum brightness instantly.
 
constexpr Step roo_blink::TurnOff ()
 Creates a step that sets the LED to completely off instantly.
 
constexpr Step roo_blink::SetTo (uint16_t level)
 Creates a step that sets the LED to the specified brightness instantly.
 
constexpr Step roo_blink::FadeTo (uint16_t level, roo_time::Duration duration)
 Creates a step that fades linearly to the target level over the duration.
 
constexpr Step roo_blink::FadeOn (roo_time::Duration duration)
 Creates a step that fades linearly to the maximum brightness over duration.
 
constexpr Step roo_blink::FadeOff (roo_time::Duration duration)
 Creates a step that fades linearly down to off over the duration.
 
constexpr Step roo_blink::Hold (roo_time::Duration duration)
 Creates a step that maintains the current brightness for the duration.
 
BlinkSequence roo_blink::Blink (roo_time::Duration period, int duty_percent=50, int rampup_percent_on=0, int rampup_percent_off=0)
 Creates a symmetric blink sequence with optional ramp-up/down segments.