Restore official Waveshare display register init sequence and LEDC backlight driver to fix blank display screen

This commit is contained in:
drjones
2026-07-04 02:57:45 -07:00
parent 632704318e
commit a1aef8d0ea
4 changed files with 114 additions and 203 deletions

View File

@@ -4,10 +4,13 @@
#include "FS.h"
#include "SD_MMC.h"
// SD card MMC pins (1-bit mode to avoid GPIO 21 conflict with LCD_CS)
// SD card MMC pins (4-bit mode, fully compatible now LCD_CS is on GPIO 42)
#define SD_CLK_PIN 14
#define SD_CMD_PIN 15
#define SD_D0_PIN 16
#define SD_D1_PIN 18
#define SD_D2_PIN 17
#define SD_D3_PIN 21
#define MAX_MEMORIES 50
#define MAX_NAME_LEN 64