FluxSand 1.0
FluxSand - Interactive Digital Hourglass
|
Public Member Functions | |
Max7219 (SpiDevice &spi, Gpio *cs) | |
void | RefreshThread () |
void | Initialize () |
void | SetIntensity (uint8_t value) |
void | Clear () |
void | DrawPixel (size_t chip_index, uint8_t row, uint8_t col, bool on) |
void | DrawPixelMatrix2 (uint8_t row, uint8_t col, bool on) |
void | Refresh () |
void | WriteToChip (size_t index, uint8_t addr, uint8_t data) |
void | TestEachChip () |
void | Lock () |
void | Unlock () |
void | SetLight (uint8_t light) |
Static Public Attributes | |
static constexpr uint8_t | REG_NOOP = 0x00 |
static constexpr uint8_t | REG_DIGIT0 = 0x01 |
static constexpr uint8_t | REG_DIGIT7 = 0x08 |
static constexpr uint8_t | REG_DECODE_MODE = 0x09 |
static constexpr uint8_t | REG_INTENSITY = 0x0A |
static constexpr uint8_t | REG_SCAN_LIMIT = 0x0B |
static constexpr uint8_t | REG_SHUTDOWN = 0x0C |
static constexpr uint8_t | REG_DISPLAY_TEST = 0x0F |
Private Member Functions | |
void | WriteAll (uint8_t addr, uint8_t value) |
void | WriteCommand (uint8_t addr, const std::array< uint8_t, N > &data) |
void | WriteCommandRaw (const std::array< uint8_t, N > ®s, const std::array< uint8_t, N > &data) |
Private Attributes | |
SpiDevice & | spi_ |
Gpio * | cs_ |
std::array< std::array< uint8_t, 8 >, N > | framebuffer_ |
std::thread | thread_ |
std::mutex | mutex_ |
Definition at line 20 of file max7219.hpp.
Definition at line 33 of file max7219.hpp.
|
inline |
Definition at line 84 of file max7219.hpp.
|
inline |
Definition at line 94 of file max7219.hpp.
|
inline |
Definition at line 107 of file max7219.hpp.
|
inline |
Definition at line 59 of file max7219.hpp.
|
inline |
Definition at line 206 of file max7219.hpp.
|
inline |
Definition at line 126 of file max7219.hpp.
|
inline |
Definition at line 49 of file max7219.hpp.
|
inline |
Definition at line 74 of file max7219.hpp.
|
inline |
Definition at line 214 of file max7219.hpp.
|
inline |
Definition at line 155 of file max7219.hpp.
|
inline |
Definition at line 210 of file max7219.hpp.
|
inlineprivate |
Definition at line 227 of file max7219.hpp.
|
inlineprivate |
Definition at line 234 of file max7219.hpp.
|
inlineprivate |
Definition at line 241 of file max7219.hpp.
|
inline |
Definition at line 141 of file max7219.hpp.
Definition at line 221 of file max7219.hpp.
|
private |
Definition at line 222 of file max7219.hpp.
|
private |
Definition at line 224 of file max7219.hpp.
|
staticconstexpr |
Definition at line 26 of file max7219.hpp.
|
staticconstexpr |
Definition at line 24 of file max7219.hpp.
|
staticconstexpr |
Definition at line 25 of file max7219.hpp.
|
staticconstexpr |
Definition at line 30 of file max7219.hpp.
|
staticconstexpr |
Definition at line 27 of file max7219.hpp.
|
staticconstexpr |
Definition at line 23 of file max7219.hpp.
|
staticconstexpr |
Definition at line 28 of file max7219.hpp.
|
staticconstexpr |
Definition at line 29 of file max7219.hpp.
Definition at line 220 of file max7219.hpp.
|
private |
Definition at line 223 of file max7219.hpp.