perf: raise MeshPocket V2 display SPI clock to 8 MHz
This commit is contained in:
1 parent
d6cd80e0e6
commit
62f6f7faef
2 files changed
+2
-2
No files matched your search
@@ -262,7 +262,7 @@ void NV3001BDisplay::writeColor(uint16_t rgb, uint32_t count) {
|
|||||||
digitalWrite(PIN_TFT_DC, HIGH);
|
digitalWrite(PIN_TFT_DC, HIGH);
|
||||||
digitalWrite(PIN_TFT_CS, LOW);
|
digitalWrite(PIN_TFT_CS, LOW);
|
||||||
#ifdef NRF52_PLATFORM
|
#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];
|
uint8_t pixels[64];
|
||||||
size_t bytes = sizeof(pixels);
|
size_t bytes = sizeof(pixels);
|
||||||
if (count < bytes / 2) bytes = count * 2;
|
if (count < bytes / 2) bytes = count * 2;
|
||||||
|
|||||||
@@ -64,5 +64,5 @@
|
|||||||
#define PIN_TFT_EN_ACTIVE LOW
|
#define PIN_TFT_EN_ACTIVE LOW
|
||||||
#define PIN_TFT_BL 25
|
#define PIN_TFT_BL 25
|
||||||
#define PIN_TFT_BL_ACTIVE HIGH
|
#define PIN_TFT_BL_ACTIVE HIGH
|
||||||
#define SPI_FREQUENCY 4000000
|
#define SPI_FREQUENCY 8000000
|
||||||
#define DISPLAY_ROTATION 3 // NV3001B MADCTL MX | MV
|
#define DISPLAY_ROTATION 3 // NV3001B MADCTL MX | MV
|
||||||
Reference in new issue
Block a user