|
void | initialize () |
|
void | setBrightness (uint8_t intensity) |
|
virtual void | update () override |
|
IOStream & | ascii () |
| set the output mode to ASCII style for integer types
|
|
IOStream & | bin () |
| set the output mode to binary style for integer types
|
|
void | clear () final |
|
void | clearPixel (glcd::Point p) |
|
void | drawCircle (glcd::Point center, uint16_t radius) |
|
void | drawEllipse (glcd::Point center, int16_t rx, int16_t ry) |
|
void | drawImage (glcd::Point start, modm::accessor::Flash< uint8_t > image) |
|
virtual void | drawImageRaw (glcd::Point start, uint16_t width, uint16_t height, modm::accessor::Flash< uint8_t > data) |
|
void | drawLine (glcd::Point start, glcd::Point end) |
|
void | drawLine (int16_t x1, int16_t y1, int16_t x2, int16_t y2) |
|
void | drawRectangle (glcd::Point start, uint16_t width, uint16_t height) |
|
void | drawRectangle (int16_t x, int16_t y, uint16_t width, uint16_t height) |
|
void | drawRoundedRectangle (glcd::Point start, uint16_t width, uint16_t height, uint16_t radius) |
|
IOStream & | endl () |
|
virtual void | fillCircle (glcd::Point center, uint16_t radius) |
|
void | fillRectangle (glcd::Point start, uint16_t width, uint16_t height) |
|
void | fillRectangle (int16_t x, int16_t y, uint16_t width, uint16_t height) |
|
IOStream & | flush () |
|
IOStream & | get (char &c) |
| Reads one character and returns it if available. Otherwise, returns IOStream::eof.
|
|
IOStream & | get (char *s, size_t n) |
|
template<size_t N> |
IOStream & | get (char (&s)[N]) |
|
std::size_t | getBufferHeight () const final |
|
std::size_t | getBufferWidth () const final |
|
glcd::Point | getCursor () const |
|
uint8_t | getFontHeight () const |
|
uint16_t | getHeight () const final |
|
uint16_t | getStringWidth (const char *s) const |
|
uint16_t | getWidth () const final |
|
IOStream & | hex () |
| set the output mode to hexadecimal style for integer types
|
|
IOStream & | operator<< (const bool &v) |
|
IOStream & | operator<< (const char &v) |
|
IOStream & | operator<< (const uint8_t &v) |
|
IOStream & | operator<< (const int16_t &v) |
|
IOStream & | operator<< (const uint16_t &v) |
|
IOStream & | operator<< (const int32_t &v) |
|
IOStream & | operator<< (const uint32_t &v) |
|
IOStream & | operator<< (const int64_t &v) |
|
IOStream & | operator<< (const uint64_t &v) |
|
IOStream & | operator<< (const int &v) |
|
IOStream & | operator<< (const unsigned int &v) |
|
IOStream & | operator<< (const float &v) |
|
IOStream & | operator<< (const double &v) |
|
IOStream & | operator<< (const char *s) |
|
IOStream & | operator<< (const std::string_view sv) |
|
IOStream & | operator<< (const void *p) |
| write the hex value of a pointer
|
|
template<class Ret , class... Args> |
IOStream & | operator<< (Ret (*pointer)(Args...)) |
| Write the hex value of any function pointer.
|
|
IOStream & | operator<< (IOStream &(*format)(IOStream &)) |
|
IOStream & | printf (const char *fmt,...))) |
|
void | setCursor (glcd::Point position) |
|
void | setCursor (int16_t x, int16_t y) |
|
void | setCursorX (int16_t x) |
|
void | setCursorY (int16_t y) |
|
void | setFont (const uint8_t *newFont) |
|
void | setFont (const modm::accessor::Flash< uint8_t > *font) |
|
void | setPixel (glcd::Point p) |
|
IOStream & | vprintf (const char *fmt, va_list vlist))) |
|
void | write (char c) |
|
|
void | clearPixel (int16_t x, int16_t y) final |
|
void | drawCircle4 (glcd::Point center, int16_t x, int16_t y) |
| helper method for drawCircle() and drawEllipse()
|
|
virtual void | drawHorizontalLine (glcd::Point start, uint16_t length) |
|
virtual void | drawVerticalLine (glcd::Point start, uint16_t length) |
|
bool | getPixel (int16_t x, int16_t y) const final |
|
void | setPixel (int16_t x, int16_t y) final |
|
void | writeBin (uint8_t value) |
|
void | writeDouble (const double &value) |
|
void | writeFloat (float value) |
|
void | writeHex (uint8_t value) |
|
void | writeInteger (int16_t value) |
|
void | writeInteger (uint16_t value) |
|
void | writeInteger (int32_t value) |
|
void | writeInteger (uint32_t value) |
|
void | writeInteger (int64_t value) |
|
void | writeInteger (uint64_t value) |
|
template<typename T > |
void | writeIntegerMode (const T v) |
|
void | writePointer (const void *value) |
|
template<typename SPI, typename CS, uint8_t COLUMNS = 1, uint8_t ROWS = 1>
class modm::Max7219MatrixHorizontal< SPI, CS, COLUMNS, ROWS >
Driver for arrays of 8x8 LED matrices driven by MAX7219.
This driver is intended for cheaply available 4x MAX7219 dot matrix display ordered in a horizontal fashion.
Layout of the modules for a 64 pixel x 16 pixel display (four strips of 4 led modules):
(0,0)
+----+----+----+----+ +----+----+----+----+
Din => | 1 | 2 | 3 | 4 | -> | 5 | 6 | 7 | 8 | --.
| | | | | | | | | | |
+----+----+----+----+ +----+----+----+----+ |
.-> | 9 | 10 | 11 | 12 | -> | 13 | 14 | 15 | 16 | |
| | | | | | | | | | | |
| +----+----+----+----+ +----+----+----+----+ |
| (31,15) |
`----------------------------------------------------ยด
- Template Parameters
-
SPI | SPI Interface CS Chip Select of MAX7219 |
COLUMNS | Number of led modules placed horizontally, from left to right. |
ROW | Number of modules placed vertically |