MaxMatrix
Drive chained 8x8 LED dot matrix modules with MAX7219.
Loading...
Searching...
No Matches
MaxMatrixConfig.h File Reference

Configuration of the MaxMatrix library. More...

#include <stddef.h>
#include <stdint.h>
#include "MaxMatrixStandardTypes.h"

Go to the source code of this file.

Macros

#define MAXMATRIX_USE_SPI   STD_OFF
 STD_ON sends through the hardware SPI, whose pins are fixed; STD_OFF bit bangs on any three pins.
#define MAXMATRIX_SPI_CLOCK_SPEED   10000000
 The SPI clock in Hz; the MAX7219 takes 10 MHz at most.
#define MAXMATRIX_SPACE_BETWEEN_CHARS_INIT_VALUE   1
 The empty columns between two chars of a text, until Matrix::SetSpaceBetweenChars().
#define MAXMATRIX_INTENSITY_INIT_VALUE   5
 The intensity Matrix::Init() sets, 0 to 15.
#define MAXMATRIX_COMMAND_LINE_LENGTH   64
 The chars of a line Command takes; it costs twice as many bytes of RAM.
#define MAXMATRIX_SHIFT_INTERVAL_INIT_VALUE   50
 The milliseconds per column of a shifting text, until Matrix::SetShiftInterval(); 0 for a step on every call.

Functions

constexpr size_t max_matrix::BufferSize (size_t modules)
 The bytes of the buffer of a chain, one per column.

Variables

constexpr uint8_t max_matrix::kColumnNumberOfModule {8}
 The columns of one module.
constexpr uint8_t max_matrix::kRowNumberOfModule {8}
 The rows of one module, and of the matrix.
constexpr uint8_t max_matrix::kMaxNumberOfModules {31}
 The most modules a chain may have: a column is counted in a byte throughout, as an index into the buffer and in every loop over the columns.

Detailed Description

Configuration of the MaxMatrix library.

The parameters every part of the library builds on: the size of the chain and how it is driven.

Function Documentation

◆ BufferSize()

size_t max_matrix::BufferSize ( size_t modules)
constexpr

The bytes of the buffer of a chain, one per column.

Parameters
[in]modulesThe modules of the chain.
Returns
The size of its buffer in bytes.