modm API documentation
modm::Max7219< SPI, CS, MODULES > Class Template Reference

#include <modm/driver/display/max7219.hpp>

Public Types

enum  Register : uint8_t {
  noop = 0x0, digit0 = 0x1, digit1 = 0x2, digit2 = 0x3,
  digit3 = 0x4, digit4 = 0x5, digit5 = 0x6, digit6 = 0x7,
  digit7 = 0x8, decodeMode = 0x9, intensity = 0xA, scanLimit = 0xB,
  shutdown = 0xC, displayTest = 0xF
}
 

Static Public Member Functions

static void initializeMatrix ()
 
static void clear ()
 
static void setRow (uint8_t col, uint8_t *data)
 
static void setBrightness (uint8_t intensity)
 
static void setRegister (Register reg, uint8_t data)
 

Detailed Description

template<typename SPI, typename CS, uint8_t MODULES = 1>
class modm::Max7219< SPI, CS, MODULES >

Some light hardware abstractions of MAX7219

Template Parameters
SPISPI Interface CS Chip Select of MAX7219
DRIVERSNumber of chips in daisy chain

An arbitrary number of these chips can be daisy-chained

Author
Sascha Schade

Member Function Documentation

template<typename SPI , typename CS , uint8_t MODULES = 1>
static void modm::Max7219< SPI, CS, MODULES >::initializeMatrix ( )
inlinestatic

Initialize as an 8x8 led matrix.

template<typename SPI , typename CS , uint8_t MODULES = 1>
static void modm::Max7219< SPI, CS, MODULES >::setBrightness ( uint8_t  intensity)
inlinestatic

Set the brightness of the whole matrix.

Parameters
intensityrange 0 to 15.
template<typename SPI , typename CS , uint8_t MODULES = 1>
static void modm::Max7219< SPI, CS, MODULES >::setRow ( uint8_t  col,
uint8_t *  data 
)
inlinestatic

Set a row of the MAX7219 chips with data

Parameters
dataA pointer to the data, at least MODULES bytes long

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