mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-19 17:26:38 +00:00
Updated settings for the Lanbon L9
* Fixed the TFT driver, bad reference to gfx object. * Added setting for GFX parallel driver speed. * Corrected touch drive to FT6336.
This commit is contained in:
parent
d8ee62ba7c
commit
c89d10dd90
@ -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_ESP32LCD8(
|
||||
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));
|
||||
|
@ -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,13 +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_FREQUENCY=400000
|
||||
-D I2C_TOUCH_ADDRESS=0x38
|
||||
-D I2C_TOUCH_FREQUENCY=100000
|
||||
;endregion
|
||||
|
||||
;region -- Library options -------------------------------
|
||||
|
Loading…
x
Reference in New Issue
Block a user