13#ifndef MAXMATRIX_SRC_MATRIX_WIRED_H_
14#define MAXMATRIX_SRC_MATRIX_WIRED_H_
46 Byte changed_columns_{};
59 Wired(uint8_t data_in_pin, uint8_t chip_select_pin, uint8_t clock_pin,
70 return static_cast<uint8_t
>(matrix_buffer_.size());
102 void StoreBit(uint8_t column, uint8_t bit,
bool value);
A byte of raw data, as a column of dots, which is no number.
Transfer to the chain of MAX7219.
The attributes of a later standard, as macros, where the compiler has them.
#define MAXMATRIX_NODISCARD
Marks a function whose result must not be dropped: the compiler warns where it is.
Definition MaxMatrixAttributes.h:37
Configuration of the MaxMatrix library.
constexpr uint8_t kColumnNumberOfModule
The columns of one module.
Definition MaxMatrixConfig.h:82
A byte of raw data: eight dots of a column or a row, or the value of a register of the MAX7219.
Definition Byte.h:45
The chain of MAX7219s: the pins, and the frames sent to them.
Definition Chain.h:115
MAXMATRIX_NODISCARD Chain const & GetChain() const
Returns the chain the matrix sends to.
Definition Wired.h:66
Chain & GetChain()
Returns the chain the matrix sends to.
Definition Wired.h:63
MAXMATRIX_NODISCARD uint8_t GetNumberOfColumns() const
Returns the columns of the chain, eight per module.
Definition Wired.h:69
void StoreBit(uint8_t column, uint8_t bit, bool value)
Sets one bit of the buffer.
void Clear()
Turns every LED off in the buffer, and marks every column as changed.
Byte GetColumn(uint8_t column)
Returns a column of the buffer, unchecked.
Definition Wired.h:87
MAXMATRIX_NODISCARD uint8_t GetNumberOfModules() const
Returns the modules in the chain, one per eight bytes of buffer.
Definition Wired.h:74
Wired(uint8_t data_in_pin, uint8_t chip_select_pin, uint8_t clock_pin, span< Byte > buffer)
Makes the matrix of the chain at these pins, and empties its buffer.
void Send()
Sends what has changed.
A view of size() elements that another owns: a font, a bitmap, a text or a buffer.
Definition span.h:64
Elements that lie elsewhere, reached by index within their size, as std::span.