Hello Louis
How can I set the color depth to 12 bits?
I have checked the source code and I see routines for 48, 36, 24 and 12 bits.
I found two values in the Smarmatrix configuration:
#define COLOR_DEPTH 24
const uint8_t kRefreshDepth = 24;
SMARTMATRIX_ALLOCATE_BUFFERS(matrix, kMatrixWidth, kMatrixHeight, kRefreshDepth, kDmaBufferRows, kPanelType, kMatrixOptions);
SMARTMATRIX_ALLOCATE_BACKGROUND_LAYER(backgroundLayer, kMatrixWidth, kMatrixHeight, COLOR_DEPTH, kBackgroundLayerOptions);
Do I put both to 12, to work with 12 bits?
For my application, working with 12 bits of color will be enough, but I’m not sure which of the two values I should modify or if I modify both.
Another question:
How does performance vary by modifying this value?
const uint8_t kDmaBufferRows = 4;
Regards