SatCat5
satcat5::cfg::LedArray Class Reference

Detailed Description

Basic LED array with direct user control of each intensity value.

See also
cfgbus_led.h.

Definition at line 24 of file cfgbus_led.h.

#include <cfgbus_led.h>

Collaboration diagram for satcat5::cfg::LedArray:
[legend]

Public Member Functions

 LedArray (satcat5::cfg::ConfigBus *cfg, unsigned devaddr, unsigned count)
 Link this controller to a bank of PWM LEDs.
 
unsigned count () const
 Number of LEDs in this bank?
 
u8 get (unsigned idx)
 Get brightness of the Nth LED.
 
void set (unsigned idx, u8 brt)
 Set brightness of the Nth LED.
 

Protected Attributes

satcat5::cfg::Register m_reg
 Base control register.
 
const unsigned m_count
 Number of LEDs.
 

The documentation for this class was generated from the following files: