28 unsigned devaddr,
unsigned count);
36 void set(
unsigned idx, u8 brt);
50 unsigned devaddr,
unsigned regaddr,
51 unsigned stats_idx, u8 brt = 128);
61 const unsigned m_stats_idx;
73 unsigned delay_msec = 33);
92 unsigned devaddr,
unsigned regaddr, u8 m_brt = 128);
114 void start(
unsigned delay=20);
ConfigBus core definitions.
Coordinate multiple LedActivity objects.
void add(LedActivity *led)
Add an LedActivity object to this group.
LedActivityCtrl(satcat5::cfg::NetworkStats *stats, unsigned delay_msec=33)
Link this controller to an activity source.
void timer_event() override
Child class MUST override this method.
Single-LED controller for a network-activity light.
LedActivity(satcat5::cfg::ConfigBus *cfg, unsigned devaddr, unsigned regaddr, unsigned stats_idx, u8 brt=128)
Link to a specific LED.
void update(satcat5::cfg::NetworkStats *stats)
Callback object for LedActivityCtrl.
Basic LED array with direct user control of each intensity value.
const unsigned m_count
Number of LEDs.
unsigned count() const
Number of LEDs in this bank?
LedArray(satcat5::cfg::ConfigBus *cfg, unsigned devaddr, unsigned count)
Link this controller to a bank of PWM LEDs.
u8 get(unsigned idx)
Get brightness of the Nth LED.
satcat5::cfg::Register m_reg
Base control register.
void set(unsigned idx, u8 brt)
Set brightness of the Nth LED.
Coordinate multiple LedWave objects.
void timer_event() override
Child class MUST override this method.
void add(LedWave *led)
Add an LedActivity object to this group.
void stop()
Stop wave animation.
void start(unsigned delay=20)
Animation controls.
Single-LED controller for a "Breathing" or "Wave" pattern.
LedWave(satcat5::cfg::ConfigBus *cfg, unsigned devaddr, unsigned regaddr, u8 m_brt=128)
Link to a specific LED.
void update(u32 incr)
Callback object for LedWaveCtrl.
Traffic statistics polling.
Pointer-like wrapper for one or more ConfigBus registers.
Timer objects are polled after a fixed delay or at a regular interval.
Helper functions for manipulating singly-linked lists.
Templated linked-list class.
Templated functions for manipulating singly-linked lists.
Core event-processing loop for SatCat5 software.