Merge pull request #830 from lylavoie/Lanbon_L9

merge Lanbon L9
This commit is contained in:
fvanroie 2024-12-07 02:08:47 +01:00 committed by GitHub
commit 12ec1a11b3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 5 deletions

View File

@ -26,10 +26,10 @@ void ArduinoGfx::init(int w, int h)
LOG_TRACE(TAG_TFT, F(D_SERVICE_STARTING));
#if(TFT_WIDTH == 170) && (TFT_HEIGHT == 320)
Arduino_DataBus *bus = new Arduino_ESP32PAR8Q(
Arduino_DataBus *bus = new Arduino_ESP32PAR8(
TFT_DC, TFT_CS, TFT_WR, TFT_RD,
TFT_D0, TFT_D1, TFT_D2, TFT_D3, TFT_D4, TFT_D5, TFT_D6, TFT_D7);
Arduino_GFX *gfx = new Arduino_ST7789(bus,
tft = new Arduino_ST7789(bus,
TFT_RST /* RST */, TFT_ROTATION /* rotation */, true /* IPS */,
TFT_WIDTH /* width */, TFT_HEIGHT /* height */,
35 /* col offset 1 */, 0 /* row offset 1 */,
@ -142,7 +142,7 @@ void ArduinoGfx::init(int w, int h)
/* TFT init */
LOG_DEBUG(TAG_TFT, F("%s - %d"), __FILE__, __LINE__);
tft->begin(GFX_NOT_DEFINED);
tft->begin(SPI_FREQUENCY);
LOG_DEBUG(TAG_TFT, F("%s - %d"), __FILE__, __LINE__);
// tft.setSwapBytes(true); /* set endianness */
LOG_INFO(TAG_TFT, F(D_SERVICE_STARTED));

View File

@ -26,6 +26,7 @@ build_flags =
;-D TFT_INVERSION_ON
;-D TFT_RGB_ORDER=0 ; Colour order Blue-Green-Red
;-D INVERT_COLORS=1 ; for inverted colors
-D SPI_FREQUENCY=16000000
-D TFT_RST=-1
-D TFT_CS=21
@ -44,12 +45,13 @@ build_flags =
; Touch Setttings
-D TOUCH_WIDTH=170
-D TOUCH_HEIGHT=320
-D TOUCH_DRIVER=0x911
-D TOUCH_DRIVER=0x6336
-D TOUCH_SCL=0
-D TOUCH_SDA=35
-D TOUCH_IRQ=-1
-D TOUCH_RST=-1
-D I2C_TOUCH_ADDRESS=0x5d ; or 0x14
-D I2C_TOUCH_ADDRESS=0x38
-D I2C_TOUCH_PORT=1
-D I2C_TOUCH_FREQUENCY=400000
;endregion
@ -60,6 +62,7 @@ lib_deps =
${arduino_esp32s3_v2.lib_deps}
${arduinogfx.lib_deps}
${goodix.lib_deps}
${ft6336.lib_deps}
lib_ignore =
${env.lib_ignore}