Open dannyyy opened 1 year ago
I'm experiencing the same issue. Tried messing around with the source code of this component and have found that if commenting out line 34 of lilygo_t5_47_touchscreen.cpp
, where it attaches the interrupt, it stops crashing, but obviously doesn't function anymore.
this->interrupt_pin_->attach_interrupt(Store::gpio_intr, &this->store_, gpio::INTERRUPT_FALLING_EDGE);
Comparing how this interrupt is setup to other components that use interrupts, I can't see whats going wrong here.
Actually turns out adding any component with an interrupt handler will crash ESPHome. I tired duty_cycle
for example.
This only happens when loading the custom component display driver (tried 3 variants), all based on EPDiy, which is required to drive the display. So I suspect something with EPDiy is clashing with ESPHome.
I experienced the same issue when attempting to use the remote_receiver
and the lilygo display
simultaneously.
Your comment regarding interrupts led me to discover a compatibility issue related to the RMT module driver. With this change in epdiy, I'm now able to use the display
and the remote_receiver
at the same time.
In this branch, I've adjusted the lilygo_t5_47
component to refer to the version of epdiy with the change.
However, since I don’t have a touchscreen, I’m not certain if it will also resolve that issue.
The problem
I use an external component to drive the e-ink display from the Lilygo-T5-4.7 board. Just using the
display
doesn't cause any issues. Even when thei2c
component is present. But as soon as I add thetouchscreen
component, the ESP32 immediately crashes after a display component update is initiated (doesn't matter whether manually or automatically).Version
2022.11.5
was working without any issues. Tested with the same snipped of code.Could the update of the ESP32 platform caused this issue? What has been changed under the hood?
Which version of ESPHome has the issue?
2022.12.0
What type of installation are you using?
pip
Which version of Home Assistant has the issue?
No response
What platform are you using?
ESP32
Board
esp32dev
Component causing the issue
display/touchscreen
Example YAML snippet
Anything in the logs that might be useful for us?
Additional information
The crashing behavior is also discussed here: https://github.com/esphome/feature-requests/issues/1109#issuecomment-1367503202