Add NV3007 2.79" 142×428 driver configuration (test ok) #3884
Unanswered
suwill
asked this question in
New processor/display support or capability request
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
SetupNV3007.huser setup so the NV3007 controller can be selected viaNV3007_DRIVERNV3007_Defines.h/NV3007_Init.h/NV3007_Rotation.hwith the exact command sequence from the working Arduino example (including CGRAM offset fixes)src/nv3007so downstream projects can reuse them directlyTesting
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
`#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
nv3007.zip
`// 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
`
Beta Was this translation helpful? Give feedback.
All reactions