-
Notifications
You must be signed in to change notification settings - Fork 31
Closed
Description
According to the LilyGO T-Display P4 AMOLED specs it uses GT9895 touch sensor
When I try to use the TouchDrv_GT9895_GetPoint sketch - it boots but does not detect any touches.
This is a log with debug=verbose setting.
Looks like the GT9895 driver in SensorLib library is not happy with the touch IC connected.
However, begin() gives true result and the sketch is trying to use getPoints() procedure but with no any success.
[ 532][V][esp32-hal-uart.c:842] uartBegin(): UART0 initialization done.
[ 538][V][esp32-hal-uart.c:893] uartSetRxFIFOFull(): UART0 RX FIFO Full value set to 120 from a requested value of 120
[ 3550][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type I2C_MASTER_SDA (30) successfully set to 0x40004eba
[ 3562][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type I2C_MASTER_SCL (31) successfully set to 0x40004eba
[ 3574][I][esp32-hal-i2c-ng.c:112] i2cInit(): Initializing I2C Master: num=0 sda=7 scl=8 freq=100000
[ 3583][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 7 successfully set to type I2C_MASTER_SDA (30) with bus 0x1
[ 3594][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 8 successfully set to type I2C_MASTER_SCL (31) with bus 0x1
[ 3604][V][esp32-hal-i2c-ng.c:231] i2cAddDeviceIfNeeded(): added device: bus=0 addr=0x5d handle=0x480016c4
[ 3614][V][esp32-hal-i2c-ng.c:272] i2cWrite(): i2c_master_transmit: bus=0 addr=0x5d handle=0x480016c4 size=4
[ 3625][V][esp32-hal-i2c-ng.c:318] i2cRead(): i2c_master_receive: bus=0 addr=0x5d handle=0x480016c4 size=28
[ 3637][D][TouchDrvGT9895.cpp:321] readVersion(): Rom_pid:
[ 3642][D][TouchDrvGT9895.cpp:322] readVersion(): Rom_vid:0x4ff13a9e
[ 3648][D][TouchDrvGT9895.cpp:323] readVersion(): PID:
[ 3653][D][TouchDrvGT9895.cpp:324] readVersion(): VID:0x4ff13aaa
[ 3659][D][TouchDrvGT9895.cpp:325] readVersion(): Sensor ID:0
[ 3665][V][esp32-hal-i2c-ng.c:272] i2cWrite(): i2c_master_transmit: bus=0 addr=0x5d handle=0x480016c4 size=4
[ 3675][V][esp32-hal-i2c-ng.c:318] i2cRead(): i2c_master_receive: bus=0 addr=0x5d handle=0x480016c4 size=2
[ 3685][E][TouchDrvGT9895.cpp:460] readChipInfo(): Invalid ic info length 0, retry 0
[ 3693][V][esp32-hal-i2c-ng.c:272] i2cWrite(): i2c_master_transmit: bus=0 addr=0x5d handle=0x480016c4 size=4
[ 3703][V][esp32-hal-i2c-ng.c:318] i2cRead(): i2c_master_receive: bus=0 addr=0x5d handle=0x480016c4 size=2
[ 3713][E][TouchDrvGT9895.cpp:460] readChipInfo(): Invalid ic info length 0, retry 1
[ 3720][V][esp32-hal-i2c-ng.c:272] i2cWrite(): i2c_master_transmit: bus=0 addr=0x5d handle=0x480016c4 size=4
[ 3730][V][esp32-hal-i2c-ng.c:318] i2cRead(): i2c_master_receive: bus=0 addr=0x5d handle=0x480016c4 size=2
[ 3740][E][TouchDrvGT9895.cpp:460] readChipInfo(): Invalid ic info length 0, retry 2
[ 3748][E][TouchDrvGT9895.cpp:482] readChipInfo(): Failed get ic info
Chip ID : 0x0
=========== After Setup Start ============
INTERNAL Memory Info:
------------------------------------------
Total Size : 600568 B ( 586.5 KB)
Free Bytes : 574660 B ( 561.2 KB)
Allocated Bytes : 19892 B ( 19.4 KB)
Minimum Free Bytes: 569264 B ( 555.9 KB)
Largest Free Block: 385012 B ( 376.0 KB)
------------------------------------------
SPIRAM Memory Info:
------------------------------------------
Total Size : 33554432 B (32768.0 KB)
Free Bytes : 33548556 B (32762.3 KB)
Allocated Bytes : 2996 B ( 2.9 KB)
Minimum Free Bytes: 33548556 B (32762.3 KB)
Largest Free Block: 33030132 B (32256.0 KB)
------------------------------------------
GPIO Info:
------------------------------------------
GPIO : BUS_TYPE[bus/unit][chan]
--------------------------------------
7 : I2C_MASTER_SDA[0]
8 : I2C_MASTER_SCL[0]
37 : UART_TX[0]
38 : UART_RX[0]
============ After Setup End =============
[ 3863][V][esp32-hal-i2c-ng.c:272] i2cWrite(): i2c_master_transmit: bus=0 addr=0x5d handle=0x480016c4 size=4
[ 3874][V][esp32-hal-i2c-ng.c:318] i2cRead(): i2c_master_receive: bus=0 addr=0x5d handle=0x480016c4 size=26
[ 3886][V][esp32-hal-i2c-ng.c:272] i2cWrite(): i2c_master_transmit: bus=0 addr=0x5d handle=0x480016c4 size=4
[ 3896][V][esp32-hal-i2c-ng.c:318] i2cRead(): i2c_master_receive: bus=0 addr=0x5d handle=0x480016c4 size=26
[ 3908][V][esp32-hal-i2c-ng.c:272] i2cWrite(): i2c_master_transmit: bus=0 addr=0x5d handle=0x480016c4 size=4
[ 3918][V][esp32-hal-i2c-ng.c:318] i2cRead(): i2c_master_receive: bus=0 addr=0x5d handle=0x480016c4 size=26
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels