This commit is contained in:
Will Tatam
2024-01-13 18:52:34 +00:00
parent 19029c649b
commit 31edc73380
3 changed files with 9 additions and 14 deletions

View File

@@ -2185,5 +2185,6 @@ build_flags = ${common.build_flags} ${esp32s3.build_flags} -Wno-misleading-inden
-D WLED_DEBUG
; -D SR_DEBUG
; -D MIC_LOGGER
-D WLED_ENABLE_SMARTMATRIX -D NO_GFX
-D WLED_USE_PSRAM -DBOARD_HAS_PSRAM ; tells WLED that PSRAM shall be used
-D WLED_ENABLE_SMARTMATRIX -D NO_GFX ;-D SPIRAM_FRAMEBUFFER
-D DEFAULT_LED_TYPE=60

View File

@@ -556,26 +556,19 @@ uint8_t oePin = 14;
// Allocate memory and start DMA display
if( not display->begin() ) {
Serial.println("****** !KABOOM! I2S memory allocation failed ***********");
USER_PRINTLN("****** !KABOOM! I2S memory allocation failed ***********");
}
USER_PRINTLN("MatrixPanel_I2S_DMA started");
}
void BusSmartMatrix::setPixelColor(uint16_t pix, uint32_t c) {
uint8_t r = R(c);
uint8_t g = G(c);
uint8_t b = B(c);
uint8_t x = pix % mxconfig.mx_width;
uint8_t y = floor(pix / mxconfig.mx_width);
r = R(c);
g = G(c);
b = B(c);
x = pix % mxconfig.mx_width;
y = floor(pix / mxconfig.mx_width);
display->drawPixelRGB888(x, y, r, g, b);
//display->drawPixelRGB888(1, 31, 0, 0, 255 );
// display->drawPixelRGB888(31, 31, 255, 255, 0 );
// display->drawPixelRGB888(1, 31, 0, 0, 255 );
}
void BusSmartMatrix::setBrightness(uint8_t b, bool immediate) {

View File

@@ -369,6 +369,7 @@ class BusSmartMatrix : public Bus {
private:
MatrixPanel_I2S_DMA *display = nullptr;
HUB75_I2S_CFG mxconfig;
uint8_t r, g, b, x, y;
};
#endif