Hi @Louis @vincefarq
Given that I had enough panels laying around (32x64), I made a 128x128 matrix with them, and I can’t get my teensy 3.6 to drive more than 96x128. If I do 128x128, it just crashes.
I tried the original teensy master branch, TOT (not teensylc)
I went super basic, like below:
#define COLOR_DEPTH 24 // known working: 24, 48 - If the sketch uses type `rgb24` directly, COLOR_DEPTH must be 24
const uint8_t kMatrixWidth = 128; // known working: 32, 64, 96, 128
const uint8_t kMatrixHeight = 128; // known working: 16, 32, 48, 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, more to keep from dropping frames and automatically lowering refresh rate
const uint8_t kPanelType = SMARTMATRIX_HUB75_32ROW_MOD16SCAN; // use SMARTMATRIX_HUB75_16ROW_MOD8SCAN for common 16x32 panels
//const uint8_t kPanelType = SMARTMATRIX_HUB75_64ROW_MOD32SCAN;
const uint8_t kMatrixOptions = (SMARTMATRIX_OPTIONS_NONE); // see http://docs.pixelmatix.com/SmartMatrix for options
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);
I don’t really need 128x128, but it would have been nice to see it work.
Sketch uses 27440 bytes (2%) of program storage space. Maximum is 1048576 bytes.
Global variables use 123892 bytes (47%) of dynamic memory, leaving 138252 bytes for local variables. Maximum is 262144 bytes.
I took drawBitmap from featuredemo and don’t run anything else, I kept it very simple
Given that’s it’s not an ESP32, I get no output on teensy, so it’s hard to know why it’s not happy. Well, printf debugging shows it seems to die here:
Serial.println("before");
backgroundLayer.fillScreen(defaultBackgroundColor);
backgroundLayer.swapBuffers();
Serial.println("after");
Going back to 96x128 and it works fine.
Any ideas?