Replies: 3 comments 1 reply
-
for completeness I have also tried to force the platformio.ini file to include configuration items but I could not manage to succeed with it. I tried different options like this one:
And these flags are not reflected in the autogenerated platformio.ini file. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Beta Was this translation helpful? Give feedback.
1 reply
-
Please tell us how you described your display in the .yaml file? What platform are you using etc? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I bought some time ago a 3.5inch display for a Raspberry Pi Zero to display a mini dashboard with Home Assistant values (via Chromium). This setup is too slow and not responsive and chromium is now even unsupported on this Pi.
It looks like this:

So I wanted to reuse the display with an ESP32 board and native graphics to make it better. I first tried with ESPHome and the ILI9xxx component but it did not work although the display is an ILI9486.
I then turned to the Arduino IDE and this library, and found out that the display works well when selecting the following options in the
User_setup.h
file:This display does not work with the generic ILI9486 driver as found in this lib and in the the ILI9xxx component of ESPHome, but rather with a specific one only available in this lib. Touch screen also works well with the right conf.
I therefore went back to ESPHome and tried to use this library instead of the ILI9xxx component, so that I could select the proper driver for use. I am nearly there and the ESPHome definition looks like:
The file
RPi35Display.h
contains a constructor for a TFT_eSPI object as on the Arduino IDE. This constructor is later called in the lambda section of a custom component in ESPHome. Not obvious but finally everything compiles and it "works".However the library is downloaded and compiled in a place that I cannot identify, and therefore I do not have access to the
User_setup.h
file and therefore the display does not work properly because I cannot select the proper driver and other items.I would therefore like to ask if anyone has already embedded this library in ESPHome to instantiate a custom display, and if yes, where and how would you access the user setup so that the right parameters are passed to the library? I have skimmed all the forums that I could search and I could not find any example of using this lib in ESPHome in a custom component.
The only remaining option that I would see is to manually copy and include the whole file tree of the library as if that was custom code and not a library. So not in the "libraries:" section but in the "includes:" section of ESPHome. And loose all library management...
Any other idea?
Thanks a lot :)
Beta Was this translation helpful? Give feedback.
All reactions