Help!! my new P3 64x64 1/32 panel
shows in the first (white) and second line (yellow)
the right colors, line three should also be white but purple and line four should be yellow, but blue.
SmartLed shield V4 is used
// only for testing
#include <SmartLEDShieldV4.h>
#include <SmartMatrix3.h>
#define COLOR_DEPTH 24 // known working: 24, 48 - If the sketch uses type rgb24
directly, COLOR_DEPTH must be 24
const uint8_t kMatrixWidth = 64;
const uint8_t kMatrixHeight = 64;
const uint8_t kRefreshDepth = 24; // known working: 24, 36, 48
const uint8_t kDmaBufferRows = 2; // known working: 2-4, use 2 to save memory
const uint8_t kPanelType = SMARTMATRIX_HUB75_64ROW_MOD32SCAN;
//const uint8_t kPanelType = SMARTMATRIX_HUB75_32ROW_MOD16SCAN;
//const uint8_t kPanelType = SMARTMATRIX_HUB75_16ROW_MOD8SCAN;
const uint8_t kMatrixOptions = (SMARTMATRIX_OPTIONS_NONE);
const uint8_t kBackgroundLayerOptions = (SM_BACKGROUND_OPTIONS_NONE);
SMARTMATRIX_ALLOCATE_BUFFERS(matrix, kMatrixWidth, kMatrixHeight, kRefreshDepth, kDmaBufferRows, kPanelType, kMatrixOptions);
SMARTMATRIX_ALLOCATE_BACKGROUND_LAYER(backgroundLayer, kMatrixWidth, kMatrixHeight, COLOR_DEPTH, kBackgroundLayerOptions);
//====================================================
void setup() {
matrix.addLayer(&backgroundLayer);
matrix.begin();
backgroundLayer.enableColorCorrection(true);
backgroundLayer.fillScreen({0, 0, 0});
backgroundLayer.setBitmapFont((bitmap_font *)&Autobahn);
backgroundLayer.drawString(0, 1, {255, 255, 255}, “Line1”); //{255, 255, 255} White
backgroundLayer.drawString(0, 16, {255, 215, 0}, “Line2”); //{255, 215, 0} Yellow
backgroundLayer.drawString(0, 34, {255, 255, 255}, “Line3”);
backgroundLayer.drawString(0, 49, {0, 255,255}, “Line4”);
matrix.setBrightness((100*255)/100); //brightness);
backgroundLayer.swapBuffers();
}
//====================================================
void loop() {
while(1);
}