Open martinroger opened 17 hours ago
Hi @martinroger,
The commit link you provided seems to be invalid. Regarding the following sentence in your description, is the TP's reset pin pulled high by default?
To note, the reset for the TP is on an IO Expander that I am currently not activating.
Hey @Lzw655 , I realised like an idiot that I left my repo private, I will change that asap. And yes in the meantime I have started suspecting that the expander constantly resets the touch. Is there a way to init and setup the expander before anything else in the panel class? Or I guess I need to init all three components separately and assign them to a panel after?
I think you can set #define ESP_PANEL_USE_EXPANDER (1)
and #define ESP_PANEL_EXPANDER_SKIP_INIT_HOST (0)
in ESP_Panel_Board_Custom.h, then initialize the IO Expander before initializing the panel, and use panel->configExpander()
to add it to the panel. For example:
...
// Create IO Expander first (don't initialize it)
ESP_IOExpander *expander = new ESP_IOExpander_TCA95xx_8bit(...);
...
// Then create and initialize the panel
ESP_Panel *panel = new ESP_Panel();
panel->configExpander(expander); // Should be called before `init()`
panel->init();
panel->begin();
...
Will try and report!
Hi, I am trying to get the library to work on a Waveshare round lcd. I can get the QSPI LCD to start just fine, however when I try to enable the CST816S it fails to read from it.
You can find the platformio project I set up for this (including special board JSON, lib_deps etc) and the commit where the QSPI works but the I2C fails to initialise : here
I have tried with and without pullups enabled (the schematic seems to indicate there are none on the circuit, and as far as I can tell this is a dedicated I2C line.
To note, the reset for the TP is on an IO Expander that I am currently not activating.
Obviously ultimately I can circumvent and initialise it all separately, but I like the all-in-one approach to the library. Am I missing something or ultimately am I forced to do a manual init / separate management of touch input?
The logs I get through serial, showing the initialisation fail :
My ESP_Panel_Board_Custom.h :