A class for collections of LEDs that can display ranges.  
 More...
#include <AH/Hardware/LEDs/LEDs.hpp>
template<uint8_t N>
class AH::LEDs< N >
A class for collections of LEDs that can display ranges. 
- Template Parameters
 - 
  
    | N | The number of LEDs in the collection.  | 
  
   
Definition at line 21 of file LEDs.hpp.
 
◆ LEDs()
Create a LEDs object. 
- Parameters
 - 
  
    | ledPins | An array of pins with the LEDs connected.  | 
  
   
Definition at line 29 of file LEDs.hpp.
 
 
◆ begin()
Initialize (set LED pins as outputs). 
Definition at line 34 of file LEDs.hpp.
 
 
◆ displayRange()
  
  
      
        
          | void displayRange  | 
          ( | 
          uint8_t  | 
          startOn,  | 
         
        
           | 
           | 
          uint8_t  | 
          startOff  | 
         
        
           | 
          ) | 
           |  const | 
         
       
   | 
  
inline   | 
  
 
Turn on a range of the LEDs. 
- Parameters
 - 
  
    | startOn | The first LED of the range to turn on (the LEDs before this one are turned off).  | 
    | startOff | The first LED after the range to turn off.  | 
  
   
Definition at line 48 of file LEDs.hpp.
 
 
◆ set()
  
  
      
        
          | void set  | 
          ( | 
          uint8_t  | 
          index | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Turn on the given LED. 
Definition at line 58 of file LEDs.hpp.
 
 
◆ clear() [1/2]
  
  
      
        
          | void clear  | 
          ( | 
          uint8_t  | 
          index | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Turn off the given LED. 
Definition at line 64 of file LEDs.hpp.
 
 
◆ displayDot()
  
  
      
        
          | void displayDot  | 
          ( | 
          uint8_t  | 
          led | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Turn on a single LED, and turn off all others. 
- Parameters
 - 
  
  
 
Definition at line 75 of file LEDs.hpp.
 
 
◆ clear() [2/2]
◆ ledPins
The documentation for this class was generated from the following file: