A base class for classes that control MAX7219 LED drivers.  
 More...
#include <MAX7219_Base.hpp>
A base class for classes that control MAX7219 LED drivers. 
The SPI interface is used.
- Todo:
 - Wiring diagram for SPI connection. 
 
Definition at line 23 of file MAX7219_Base.hpp.
 
◆ MAX7219_Base()
  
  
      
        
          | AH::MAX7219_Base::MAX7219_Base  | 
          ( | 
          pin_t  | 
          loadPin | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ init()
  
  
      
        
          | void AH::MAX7219_Base::init  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ clear()
  
  
      
        
          | void AH::MAX7219_Base::clear  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ send()
  
  
      
        
          | void AH::MAX7219_Base::send  | 
          ( | 
          uint8_t  | 
          digit,  | 
         
        
           | 
           | 
          uint8_t  | 
          value  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inline   | 
  
 
Send the value to the given digit. 
- Parameters
 - 
  
    | digit | The digit or row to set [0, 7].  | 
    | value | The value to set the row to.  | 
  
   
Definition at line 71 of file MAX7219_Base.hpp.
 
 
◆ sendRaw()
  
  
      
        
          | void AH::MAX7219_Base::sendRaw  | 
          ( | 
          uint8_t  | 
          opcode,  | 
         
        
           | 
           | 
          uint8_t  | 
          value  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inline   | 
  
 
Send a raw opcode and value to the MAX7219. 
- Parameters
 - 
  
    | opcode | The opcode to send.  | 
    | value | The value to send.  | 
  
   
Definition at line 83 of file MAX7219_Base.hpp.
 
 
◆ setIntensity()
  
  
      
        
          | void AH::MAX7219_Base::setIntensity  | 
          ( | 
          uint8_t  | 
          intensity | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Set the intensity of the LEDs. 
- Parameters
 - 
  
    | intensity | The intensity [0, 15].  | 
  
   
Definition at line 98 of file MAX7219_Base.hpp.
 
 
◆ DECODEMODE
  
  
      
        
          | constexpr uint8_t AH::MAX7219_Base::DECODEMODE = 9 | 
         
       
   | 
  
staticconstexpr   | 
  
 
 
◆ INTENSITY
  
  
      
        
          | constexpr uint8_t AH::MAX7219_Base::INTENSITY = 10 | 
         
       
   | 
  
staticconstexpr   | 
  
 
 
◆ SCANLIMIT
  
  
      
        
          | constexpr uint8_t AH::MAX7219_Base::SCANLIMIT = 11 | 
         
       
   | 
  
staticconstexpr   | 
  
 
 
◆ SHUTDOWN
  
  
      
        
          | constexpr uint8_t AH::MAX7219_Base::SHUTDOWN = 12 | 
         
       
   | 
  
staticconstexpr   | 
  
 
 
◆ DISPLAYTEST
  
  
      
        
          | constexpr uint8_t AH::MAX7219_Base::DISPLAYTEST = 15 | 
         
       
   | 
  
staticconstexpr   | 
  
 
 
◆ loadPin
  
  
      
        
          | pin_t AH::MAX7219_Base::loadPin | 
         
       
   | 
  
private   | 
  
 
 
◆ settings
  
  
      
        
          | SPISettings AH::MAX7219_Base::settings = {SPI_MAX_SPEED, MSBFIRST, SPI_MODE0} | 
         
       
   | 
  
private   | 
  
 
 
The documentation for this class was generated from the following file: