This is an old version of the documentation. View the latest version here.
Control Surface  1.0.0
MIDI Control Surface library for Arduino
Classes | Variables
MAX7219SevenSegmentDisplay.hpp File Reference
#include "MAX7219_Base.hpp"
Include dependency graph for MAX7219SevenSegmentDisplay.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  MAX7219SevenSegmentDisplay
 A class for 8-digit 7-segment displays with a MAX7219 driver. More...
 

Variables

static constexpr uint8_t SevenSegmentCharacters [0x40]
 A lookup table for 7-segment characters, as specified by the Logic Control manual. More...
 
static constexpr const uint8_t * AlphaChars = &SevenSegmentCharacters[0x01]
 
static constexpr const uint8_t * NumericChars = &SevenSegmentCharacters[0x30]
 

Variable Documentation

◆ SevenSegmentCharacters

constexpr uint8_t SevenSegmentCharacters[0x40]
staticconstexpr
Initial value:
= {
0b00000000, 0b01110111, 0b00011111, 0b01001110,
0b00111101, 0b01001111, 0b01000111, 0b01011110,
0b00010111, 0b00110000, 0b00111100, 0b00000111,
0b00001110, 0b01110110, 0b00010101, 0b00011101,
0b01100111, 0b01110011, 0b00000101, 0b01011011,
0b00001111, 0b00011100, 0b00100111, 0b00111110,
0b00110111, 0b00111011, 0b01101101, 0b01001110,
0b00010011, 0b01111000, 0b01100010, 0b00001000,
0b00000000, 0b00000000, 0b00100010, 0b01100011,
0b01011011, 0b01100111, 0b01111101, 0b00000010,
0b01001110, 0b01111000, 0b01100011, 0b00110001,
0b00000100, 0b00000001, 0b00001000, 0b00100101,
0b01111110, 0b00110000, 0b01101101, 0b01111001,
0b00110011, 0b01011011, 0b01011111, 0b01110000,
0b01111111, 0b01111011, 0b00000000, 0b01000100,
0b00110001, 0b00001001, 0b00000111, 0b01100101,
}

A lookup table for 7-segment characters, as specified by the Logic Control manual.

A | | F | | B |__G__| | | E | | C |__D__| o DP

Definition at line 19 of file MAX7219SevenSegmentDisplay.hpp.

◆ AlphaChars

constexpr const uint8_t* AlphaChars = &SevenSegmentCharacters[0x01]
staticconstexpr

Definition at line 38 of file MAX7219SevenSegmentDisplay.hpp.

◆ NumericChars

constexpr const uint8_t* NumericChars = &SevenSegmentCharacters[0x30]
staticconstexpr

Definition at line 39 of file MAX7219SevenSegmentDisplay.hpp.