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

A byte of raw data, as a column of dots, which is no number. More...

#include <stdint.h>
#include "MaxMatrixAttributes.h"
#include "Utility/Bit.h"

Go to the source code of this file.

Classes

class  max_matrix::Byte
 A byte of raw data: eight dots of a column or a row, or the value of a register of the MAX7219. More...

Functions

constexpr bool max_matrix::ReadBit (Byte value, uint8_t bit)
 Returns whether a bit is set, as the core's bitRead() for a number.
constexpr Byte max_matrix::WriteBit (Byte value, uint8_t bit, bool set)
 Returns value with one bit set or cleared, as the core's bitWrite() for a number.

Detailed Description

A byte of raw data, as a column of dots, which is no number.

Function Documentation

◆ ReadBit()

bool max_matrix::ReadBit ( Byte value,
uint8_t bit )
constexpr

Returns whether a bit is set, as the core's bitRead() for a number.

Parameters
[in]valueThe byte.
[in]bitThe bit, 0 to 7.

◆ WriteBit()

Byte max_matrix::WriteBit ( Byte value,
uint8_t bit,
bool set )
constexpr

Returns value with one bit set or cleared, as the core's bitWrite() for a number.

Parameters
[in]valueThe byte.
[in]bitThe bit, 0 to 7.
[in]setTrue to set the bit, false to clear it.