Hi, about a month ago I tried to make a v5 shield, I ordered a pcb from JLCPCB and it worked fine
and this week I tried to make a THT shield for ESP32 but it didn’t work. How do I configure it?
first i did the configuration like this, but it didn’t work on MatrixHardware_ESP32_V0
#ifndef MATRIX_HARDWARE_H
#define MATRIX_HARDWARE_H
// formula used is 80000000L/(cfg->clkspeed_hz + 1), must result in >=2. Acceptable values 26.67MHz, 20MHz, 16MHz, 13.34MHz...
#define ESP32_I2S_CLOCK_SPEED (20000000UL)
#define ESP32_FORUM_PINOUT 0
#define ESP32_FORUM_PINOUT_WITH_LATCH 1
#define SMARTLED_SHIELD_V0_PINOUT 2
#define ESP32_JC_RIBBON_PINOUT 3
#define HUB75_ADAPTER_PINOUT 4
#define HUB75_ADAPTER_LATCH_BREADBOARD_PINOUT 5
#define HUB75_ADAPTER_V0_THT_PINOUT 6
#define HUB75_ADAPTER_V0_SMT_PINOUT 7
#define ESP32_JC_RIBBON_PINOUT_WEMOS 8
#define HUB75_ADAPTER_LITE_V0_PINOUT 9
#define ESP32_RGB64x32MatrixPanel_I2S_DMA_DEFAULT 10
#ifndef GPIOPINOUT
#define GPIOPINOUT HUB75_ADAPTER_V0_THT_PINOUT
#endif
//#define GPIOPINOUT ESP32_FORUM_PINOUT_WITH_LATCH // note this mode is untested as of 2018-05-17 - not being used anymore now that SmartMatrix Shield is available
//#define GPIOPINOUT SMARTLED_SHIELD_V0_PINOUT
then I tried another way by defining <MatrixHardware_ESP32_HUB75Adapter_THT.h> but it still doesn’t work
#include <MatrixHardware_ESP32_HUB75Adapter_THT.h>
#include <SmartMatrix.h>
#define COLOR_DEPTH 24 // Choose the color depth used for storing pixels in the layers: 24 or 48 (24 is good for most sketches - If the sketch uses type `rgb24` directly, COLOR_DEPTH must be 24)
const uint16_t kMatrixWidth = 32; // Set to the width of your display, must be a multiple of 8
const uint16_t kMatrixHeight = 32; // Set to the height of your display
const uint8_t kRefreshDepth = 24; // Tradeoff of color quality vs refresh rate, max brightness, and RAM usage. 36 is typically good, drop down to 24 if you need to. On Teensy, multiples of 3, up to 48: 3, 6, 9, 12, 15, 18, 21, 24, 27, 30, 33, 36, 39, 42, 45, 48. On ESP32: 24, 36, 48
const uint8_t kDmaBufferRows = 4; // known working: 2-4, use 2 to save RAM, more to keep from dropping frames and automatically lowering refresh rate. (This isn't used on ESP32, leave as default)
const uint8_t kPanelType = SM_PANELTYPE_HUB75_32ROW_MOD16SCAN; // Choose the configuration that matches your panels. See more details in MatrixCommonHub75.h and the docs: https://github.com/pixelmatix/SmartMatrix/wiki
const uint32_t kMatrixOptions = (SM_HUB75_OPTIONS_NONE); // see docs for options: https://github.com/pixelmatix/SmartMatrix/wiki
SMARTMATRIX_ALLOCATE_BUFFERS(matrix, kMatrixWidth, kMatrixHeight, kRefreshDepth, kDmaBufferRows, kPanelType, kMatrixOptions);
where is my mistake?