MaxMatrix
Drive chained 8x8 LED dot matrix modules with MAX7219.
Loading...
Searching...
No Matches
max_matrix::max7219 Namespace Reference

The registers of the MAX7219 and their values, as Matrix::RegisterWrite() takes them. More...

Variables

constexpr uint8_t kNoOpAddress {0x00}
constexpr uint8_t kDigit0Address {0x01}
constexpr uint8_t kDigit1Address {0x02}
constexpr uint8_t kDigit2Address {0x03}
constexpr uint8_t kDigit3Address {0x04}
constexpr uint8_t kDigit4Address {0x05}
constexpr uint8_t kDigit5Address {0x06}
constexpr uint8_t kDigit6Address {0x07}
constexpr uint8_t kDigit7Address {0x08}
constexpr uint8_t kDecodeModeAddress {0x09}
constexpr uint8_t kIntensityAddress {0x0A}
constexpr uint8_t kScanLimitAddress {0x0B}
constexpr uint8_t kShutdownAddress {0x0C}
constexpr uint8_t kDisplayTestAddress {0x0F}
constexpr uint8_t kDecodeModeNoDecode {0x00}
constexpr uint8_t kDecodeModeCodeBDecodeDigit0 {0x01}
constexpr uint8_t kDecodeModeCodeBDecodeDigit3To0 {0x0F}
constexpr uint8_t kDecodeModeCodeBDecodeDigit7To0 {0xFF}
constexpr uint8_t kIntensityMinValue {0x00}
constexpr uint8_t kIntensityMaxValue {0x0F}
constexpr uint8_t kScanLimitDisplayDigit0 {0x00}
constexpr uint8_t kScanLimitDisplayDigit0To1 {0x01}
constexpr uint8_t kScanLimitDisplayDigit0To2 {0x02}
constexpr uint8_t kScanLimitDisplayDigit0To3 {0x03}
constexpr uint8_t kScanLimitDisplayDigit0To4 {0x04}
constexpr uint8_t kScanLimitDisplayDigit0To5 {0x05}
constexpr uint8_t kScanLimitDisplayDigit0To6 {0x06}
constexpr uint8_t kScanLimitDisplayDigit0To7 {0x07}
constexpr uint8_t kShutdownModeShutdownMode {0x00}
constexpr uint8_t kShutdownModeNormalOperation {0x01}
constexpr uint8_t kDisplayTestNormalOperation {0x00}
constexpr uint8_t kDisplayTestDisplayTestMode {0x01}

Detailed Description

The registers of the MAX7219 and their values, as Matrix::RegisterWrite() takes them.

Variable Documentation

◆ kDecodeModeAddress

uint8_t max_matrix::max7219::kDecodeModeAddress {0x09}
constexpr

Decode mode: BCD code B per digit, or none.

◆ kDecodeModeCodeBDecodeDigit0

uint8_t max_matrix::max7219::kDecodeModeCodeBDecodeDigit0 {0x01}
constexpr

Code B for digit 0, none for 7 to 1.

◆ kDecodeModeCodeBDecodeDigit3To0

uint8_t max_matrix::max7219::kDecodeModeCodeBDecodeDigit3To0 {0x0F}
constexpr

Code B for digits 3 to 0, none for 7 to 4.

◆ kDecodeModeCodeBDecodeDigit7To0

uint8_t max_matrix::max7219::kDecodeModeCodeBDecodeDigit7To0 {0xFF}
constexpr

Code B for every digit.

◆ kDecodeModeNoDecode

uint8_t max_matrix::max7219::kDecodeModeNoDecode {0x00}
constexpr

No digit decoded: each bit is an LED.

◆ kDigit0Address

uint8_t max_matrix::max7219::kDigit0Address {0x01}
constexpr

Digit 0: the LEDs of one row or column of a module.

◆ kDigit1Address

uint8_t max_matrix::max7219::kDigit1Address {0x02}
constexpr

Digit 1: the LEDs of one row or column of a module.

◆ kDigit2Address

uint8_t max_matrix::max7219::kDigit2Address {0x03}
constexpr

Digit 2: the LEDs of one row or column of a module.

◆ kDigit3Address

uint8_t max_matrix::max7219::kDigit3Address {0x04}
constexpr

Digit 3: the LEDs of one row or column of a module.

◆ kDigit4Address

uint8_t max_matrix::max7219::kDigit4Address {0x05}
constexpr

Digit 4: the LEDs of one row or column of a module.

◆ kDigit5Address

uint8_t max_matrix::max7219::kDigit5Address {0x06}
constexpr

Digit 5: the LEDs of one row or column of a module.

◆ kDigit6Address

uint8_t max_matrix::max7219::kDigit6Address {0x07}
constexpr

Digit 6: the LEDs of one row or column of a module.

◆ kDigit7Address

uint8_t max_matrix::max7219::kDigit7Address {0x08}
constexpr

Digit 7: the LEDs of one row or column of a module.

◆ kDisplayTestAddress

uint8_t max_matrix::max7219::kDisplayTestAddress {0x0F}
constexpr

Display test: every LED on, or normal operation.

◆ kDisplayTestDisplayTestMode

uint8_t max_matrix::max7219::kDisplayTestDisplayTestMode {0x01}
constexpr

Display test: every LED on at full brightness.

◆ kDisplayTestNormalOperation

uint8_t max_matrix::max7219::kDisplayTestNormalOperation {0x00}
constexpr

Normal operation.

◆ kIntensityAddress

uint8_t max_matrix::max7219::kIntensityAddress {0x0A}
constexpr

Intensity: the brightness, 0 to 15.

◆ kIntensityMaxValue

uint8_t max_matrix::max7219::kIntensityMaxValue {0x0F}
constexpr

The highest brightness, 31/32 duty cycle.

◆ kIntensityMinValue

uint8_t max_matrix::max7219::kIntensityMinValue {0x00}
constexpr

The lowest brightness, 1/32 duty cycle.

◆ kNoOpAddress

uint8_t max_matrix::max7219::kNoOpAddress {0x00}
constexpr

No-op: a module that is not addressed in a frame gets it.

◆ kScanLimitAddress

uint8_t max_matrix::max7219::kScanLimitAddress {0x0B}
constexpr

Scan limit: how many digits, here rows or columns, are lit.

◆ kScanLimitDisplayDigit0

uint8_t max_matrix::max7219::kScanLimitDisplayDigit0 {0x00}
constexpr

Digit 0 alone is lit.

◆ kScanLimitDisplayDigit0To1

uint8_t max_matrix::max7219::kScanLimitDisplayDigit0To1 {0x01}
constexpr

Digits 0 to 1 are lit.

◆ kScanLimitDisplayDigit0To2

uint8_t max_matrix::max7219::kScanLimitDisplayDigit0To2 {0x02}
constexpr

Digits 0 to 2 are lit.

◆ kScanLimitDisplayDigit0To3

uint8_t max_matrix::max7219::kScanLimitDisplayDigit0To3 {0x03}
constexpr

Digits 0 to 3 are lit.

◆ kScanLimitDisplayDigit0To4

uint8_t max_matrix::max7219::kScanLimitDisplayDigit0To4 {0x04}
constexpr

Digits 0 to 4 are lit.

◆ kScanLimitDisplayDigit0To5

uint8_t max_matrix::max7219::kScanLimitDisplayDigit0To5 {0x05}
constexpr

Digits 0 to 5 are lit.

◆ kScanLimitDisplayDigit0To6

uint8_t max_matrix::max7219::kScanLimitDisplayDigit0To6 {0x06}
constexpr

Digits 0 to 6 are lit.

◆ kScanLimitDisplayDigit0To7

uint8_t max_matrix::max7219::kScanLimitDisplayDigit0To7 {0x07}
constexpr

Digits 0 to 7 are lit.

◆ kShutdownAddress

uint8_t max_matrix::max7219::kShutdownAddress {0x0C}
constexpr

Shutdown: off, or normal operation.

◆ kShutdownModeNormalOperation

uint8_t max_matrix::max7219::kShutdownModeNormalOperation {0x01}
constexpr

Normal operation.

◆ kShutdownModeShutdownMode

uint8_t max_matrix::max7219::kShutdownModeShutdownMode {0x00}
constexpr

Shut down: the LEDs off, the registers kept.