ESP32-HUB75-MatrixPanel-I2S-DMA library will not display output correctly with 1/4 scan panels such as this.
It is possible to connect 1/4 scan panels to this library and 'trick' the output to work correctly on these panels by way of adjusting the pixel co-ordinates that are 'sent' to the ESP32-HUB75-MatrixPanel-I2S-DMA library (in this example, it is the 'dmaOutput' class).
Creation of a 'QuarterScanMatrixPanel.h' class which sends an adjusted x,y co-ordinates to the underlying ESP32-HUB75-MatrixPanel-I2S-DMA library's drawPixel routine, to trick the output to look pixel perfect. Refer to the 'getCoords' function within 'QuarterScanMatrixPanel.h'
- Only one font (glcd - standard font) is implemented. This font can't be resized.
void drawLine(int16_t x0, int16_t y0, int16_t x1, int16_t y1, uint16_t color)
Parameters should be self explained. x0/y0 upper left corner, x1/y1 lower right corner
void drawHLine(int16_t x0, int16_t y0, int16_t w, uint16_t color)
Draw a fast horizontal line with length w
. Starting at x0/y0
void drawVLine(int16_t x0, int16_t y0, int16_t h, uint16_t color)
Draw a fast vertical line with length h
Starting at x0/y0
void fillRect(int16_t x, int16_t y, int16_t w, int16_t h, uint16_t color)
Draw a rectangle starting at x/y
with width w
and height h
in color
drawChar(int16_t x, int16_t y, unsigned char c, uint16_t color, uint16_t bg, uint8_t size)
Draw a char at position x/y in color
with a background color bg
size
is ignored.
size_t write(unsigned char c)
Write a char at current cursor position with current foreground and background color.
size_t write(const char *c)
Write a string at current cursor position with current foreground and background color.
You have to use setCursor(x,y)
and setTextFGColor() / setTextBGColor()
void drawString(int16_t x, int16_t y, unsigned char* c, uint16_t color, uint16_t bg)
Draw String at postion x/y wit foreground color
and background bg
Example: display.drawString(0,5,"**Welcome**",display.color565(0,60,255));
Set scrolling direction 0=left to right, 1= right to left (default)
void scrollText(const char *str, uint16_t speed, uint16_t pixels)
Scroll text str
into setScrollDir
. Speed indicates how fast in ms per pixel, pixels are the number pixes which should be scrolled, if not set or 0, than pixels is calculates by size of *str
Draw a pixel at x/y in color
. This function is the atomic function for all above drawing functions
Same as fillScreen(0)