-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Description
Summary
- add a
SetupNV3007.huser setup so the NV3007 controller can be selected viaNV3007_DRIVER - introduce
NV3007_Defines.h/NV3007_Init.h/NV3007_Rotation.hwith the exact command sequence from the working Arduino example (including CGRAM offset fixes) - document how to sync these files and keep a backup copy under
src/nv3007so downstream projects can reuse them directly
Testing
- platformio run
- platformio run --target upload (on ESP32-S3 dev board with the NV3007 2.79" SPI panel)
I added a new driver (nv3007)and I passed the local test, but the PR failed, showing a code 403. Maybe I don't have permission?
Just as a record, I'm sharing my code with those who need it,enjoy
HOW TO
- add under line in TFT_eSPI.cpp @736
`#elif defined (HX8357D_DRIVER)
#include "TFT_Drivers/HX8357D_Init.h"
#elif defined (TFT_NV3007)
#include "TFT_Drivers/NV3007_Init.h"`
2.copy 3 file in zip to TFT_Drivers
- my config:
`// NV3007 2.79" 142x428 TFT configuration
#define USER_SETUP_ID 3007
#ifndef TFT_RGB
#define TFT_RGB 1
#define TFT_BGR 0
#endif
#define USER_SETUP_INFO "NV3007_2.79_142x428"
#define NV3007_DRIVER
#define TFT_MISO -1
#define TFT_MOSI 11
#define TFT_SCLK 12
#define TFT_CS 10
#define TFT_DC 13
#define TFT_RST 14
#define TFT_BL 15
#define TFT_BACKLIGHT_ON HIGH
#define TOUCH_CS -1
#define TFT_RGB_ORDER TFT_RGB
#define TFT_INVERSION_ON
#define CGRAM_OFFSET
#define TFT_COLUMN_OFFSET 12
#define TFT_ROW_OFFSET 10
#define LOAD_GLCD
#define LOAD_FONT2
#define LOAD_FONT4
#define LOAD_FONT6
#define LOAD_FONT7
#define LOAD_FONT8
#define LOAD_GFXFF
#define SMOOTH_FONT
#define SPI_FREQUENCY 5000000
#define SPI_READ_FREQUENCY 5000000
#define SPI_TOUCH_FREQUENCY 2500000
#define USER_SETUP_LOADED
`