mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-19 17:26:38 +00:00
Working setup for Lanbon L9
* Changed to Arduino_ESP32PAR8 bus driver. * Fixed touch driver options, added missing port settings. * Increased frequency of i2c to 400kHz.
This commit is contained in:
parent
c89d10dd90
commit
113b6838f2
@ -26,7 +26,7 @@ void ArduinoGfx::init(int w, int h)
|
|||||||
LOG_TRACE(TAG_TFT, F(D_SERVICE_STARTING));
|
LOG_TRACE(TAG_TFT, F(D_SERVICE_STARTING));
|
||||||
|
|
||||||
#if(TFT_WIDTH == 170) && (TFT_HEIGHT == 320)
|
#if(TFT_WIDTH == 170) && (TFT_HEIGHT == 320)
|
||||||
Arduino_DataBus *bus = new Arduino_ESP32LCD8(
|
Arduino_DataBus *bus = new Arduino_ESP32PAR8(
|
||||||
TFT_DC, TFT_CS, TFT_WR, TFT_RD,
|
TFT_DC, TFT_CS, TFT_WR, TFT_RD,
|
||||||
TFT_D0, TFT_D1, TFT_D2, TFT_D3, TFT_D4, TFT_D5, TFT_D6, TFT_D7);
|
TFT_D0, TFT_D1, TFT_D2, TFT_D3, TFT_D4, TFT_D5, TFT_D6, TFT_D7);
|
||||||
tft = new Arduino_ST7789(bus,
|
tft = new Arduino_ST7789(bus,
|
||||||
|
@ -51,7 +51,8 @@ build_flags =
|
|||||||
-D TOUCH_IRQ=-1
|
-D TOUCH_IRQ=-1
|
||||||
-D TOUCH_RST=-1
|
-D TOUCH_RST=-1
|
||||||
-D I2C_TOUCH_ADDRESS=0x38
|
-D I2C_TOUCH_ADDRESS=0x38
|
||||||
-D I2C_TOUCH_FREQUENCY=100000
|
-D I2C_TOUCH_PORT=1
|
||||||
|
-D I2C_TOUCH_FREQUENCY=400000
|
||||||
;endregion
|
;endregion
|
||||||
|
|
||||||
;region -- Library options -------------------------------
|
;region -- Library options -------------------------------
|
||||||
@ -61,6 +62,7 @@ lib_deps =
|
|||||||
${arduino_esp32s3_v2.lib_deps}
|
${arduino_esp32s3_v2.lib_deps}
|
||||||
${arduinogfx.lib_deps}
|
${arduinogfx.lib_deps}
|
||||||
${goodix.lib_deps}
|
${goodix.lib_deps}
|
||||||
|
${ft6336.lib_deps}
|
||||||
|
|
||||||
lib_ignore =
|
lib_ignore =
|
||||||
${env.lib_ignore}
|
${env.lib_ignore}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user