-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add ESP-IDF support #33
Conversation
Thanks! Compiled it together with bluetooth proxy and worked. Flash 91% ... Upload of new TFT file also worked fine! |
I'm curious here... Why don't you guys use the Nextion component from ESPHome? I see your library is way simpler and probably easier to maintain, but other than that, is there a reason to be by the side? |
@edwardtfn The reason for a separate component is that it implements the custom protocol used by the NSPanel Lovelace UI Nextion firmware. See the repo's readme for details - the goal is to have an easy to use component, similarly to what Jesse did (but never merged) for the stock NSPanel FW. I imagine the same might be possible to achieve with the Nextion component and bunch of lambda scripts, but it will be hard to use and maintain. And using a custom component for comms and upstream Nextion for upload is not possible either, because they will have to share the same UART. |
I have switched all my 6 panels from arduino to idf - no issues so far. Thanks a loot |
From time to time I have follwing warnings in the logs: |
Hey, you may wanna know that the original version where I've added support to ESP-IDF wasn't supporting HTTPS. I've added that support to the ESPHome component (esphome/esphome#6051) and it works pretty solid. |
Now it works with https: @sairon Could you merge then? It works stable in my condiguration for some time and now https is possible |
Add support for
esp-idf
framework, partially based on ESPHome PR esphome/esphome#5667 by @edwardtfn (thank you, Edward!). The upstream code has been refactored to share more when Arduino or ESP-IDF is used and to use baud rate switching used in this "fork".This is currently still WIP, I will do a bit more refactoring and testing, but initial tests are looking good and there are indeed some resource savings when compared to Arduino, as seen with my testing config:
Arduino:
ESP-IDF:
Fixes #23.
For those who are eager to try (more testers are always welcome!), simply update
ref
in your config toadd-esp-idf-support
, and ideally also therefresh
time:It is recommended to use serial for transition from Arduino to IDF, because IIRC the partition layout is a bit different, but I have tested the OTA works both ways without problems too.