From 62f6f7faeffbcf9d7ada29f96d13be4bda08e7de Mon Sep 17 00:00:00 2001 From: Quency-D Date: Mon, 16 Nov 2026 14:08:31 +0800 Subject: [PATCH] perf: raise MeshPocket V2 display SPI clock to 8 MHz --- src/helpers/ui/NV3001BDisplay.cpp | 2 +- variants/heltec_meshpocket_v2/variant.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/helpers/ui/NV3001BDisplay.cpp b/src/helpers/ui/NV3001BDisplay.cpp index a98bcab6..da2865e3 100644 --- a/src/helpers/ui/NV3001BDisplay.cpp +++ b/src/helpers/ui/NV3001BDisplay.cpp @@ -262,7 +262,7 @@ void NV3001BDisplay::writeColor(uint16_t rgb, uint32_t count) { digitalWrite(PIN_TFT_DC, HIGH); digitalWrite(PIN_TFT_CS, LOW); #ifdef NRF52_PLATFORM - // EasyDMA needs a RAM buffer. Send repeated pixels in bursts at 4 MHz. + // EasyDMA needs a RAM buffer. Send repeated pixels in bursts. uint8_t pixels[64]; size_t bytes = sizeof(pixels); if (count < bytes / 2) bytes = count * 2; diff --git a/variants/heltec_meshpocket_v2/variant.h b/variants/heltec_meshpocket_v2/variant.h index 7ff1fd28..6e9ba58f 100644 --- a/variants/heltec_meshpocket_v2/variant.h +++ b/variants/heltec_meshpocket_v2/variant.h @@ -64,5 +64,5 @@ #define PIN_TFT_EN_ACTIVE LOW #define PIN_TFT_BL 25 #define PIN_TFT_BL_ACTIVE HIGH -#define SPI_FREQUENCY 4000000 +#define SPI_FREQUENCY 8000000 #define DISPLAY_ROTATION 3 // NV3001B MADCTL MX | MV