Skip to content

Waveshare ESP32-S3-Touch-LCD-4 - Unable to use touch and I2C sensor at the same time #147

Open
@dinisfc

Description

@dinisfc

Currently testing a prototype built from the Squareline Porting example. This board uses the GT911 Touch controller which uses the same channel as any other I2C external device. I'm using a SEN66 sensor, using its library which requires the use of the Wire library. When I do this, panel->init() will fail and show something like this:

E (1506) i2c: i2c driver install error
Guru Meditation Error: Core 1 panic'ed (LoadProhibited). Exception was unhandled.

Core 1 register dump:
PC : 0x42058aab PS : 0x00060330 A0 : 0x82001d2e A1 : 0x3fcaf8b0
A2 : 0x00000000 A3 : 0x3c060164 A4 : 0x00000010 A5 : 0x3fcaaf94
A6 : 0x00000024 A7 : 0x0000000a A8 : 0x8202fd80 A9 : 0x3fcaf890
A10 : 0x00000002 A11 : 0x3c060164 A12 : 0x3fcaf6d8 A13 : 0x3fcaf798
A14 : 0x3fcaf7e8 A15 : 0x3fcab140 SAR : 0x00000018 EXCCAUSE: 0x0000001c
EXCVADDR: 0x00000008 LBEG : 0x40056f08 LEND : 0x40056f12 LCOUNT : 0x00000000

Backtrace: 0x42058aa8:0x3fcaf8b0 0x42001d2b:0x3fcaf8d0 0x42033681:0x3fcaf8f0 0x4037d062:0x3fcaf910

And then get stuck in a loop doing the same.

I'm using version 0.1.8 per the Waveshare instructions. I'm using an ESP IOExpander library, v0.0.4, altered by Waveshare, so updating any of this libraries breaks the code. I'm also using lv_conf.h by Waveshare. Being a dev board the connections can't be altered.

Would like to know if there's a way to not have the I2C error and if, maybe, making the updated library (0.2.2 as of posting) work be worth it.

Note: the LCD-4 and LCD-4.3 are not the same! For LCD-4, the custom board configurations are used.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions