-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Is there native support for the ESP32 ESP-IDF? #187
Comments
There is no HAL for the ESP, but there is some documentation how to do this. We have started the documentation here: Previous discussion happend here: #179 and #117 Let me know if something is missing or if you have further questions. |
Thank you sir ... that was pretty painless. I wrote some handlers for the |
I am glad that the description was complete enough for you to port U8g2 to your target system. There is no plan at the moment to list ports to other systems. But yes, it sounds like a good idea. |
I have added the some links here: |
I have uploaded the ESP32 HAL to here: https://github.com/nkolban/esp32-snippets/tree/master/hardware/displays/U8G2 A A tutorial video illustrating the use of U8g2 library and the ESP32 can be found here: |
Wow, thanks a lot. Amazing video. |
Guess, this can be closed |
If there is anything of the work I did that could be absorbed into the proper u8g2 library ... that would be great. Ideally your Github repository should be the source of all knowledge and truth relating to U8G2. |
Do you have anything specific in mind? |
3 weeks is an eternity in my tinkering ... let me come back to it again and look over what ever I did to get it working. That way I'll be able to give you an "impact analysis" and "integration suggestions" which would be what I would suggest. It all hinges on desire and intent. From what I remember, the your code base assumes Arduino APIs. The ESP32 has its own ESP-IDF APIs. The tinkering I did created a mapping for the small subset that were needed. The liklihood would be the creation of a directory to host ESP32 ESP-IDF specific source files and a change (or instructions) to the build system to accommodate this. As such, and as the owner of this library, the question falls to you as to whether or not you want board specific code in the repository. If the answer is "no" ... then thats the end of the discussion. If the answer is "yes", then it would be up to thee and me on how best to achieve that. You own the repository structure and direction while I would act as your short term consultant to assist you with integration of ESP32 specific work until and unless you yourself came up to speed on that area. |
OK, I only have mobile to type here at the moment. Please excuse typing errors. Indeed I do not want uC specific code in the folder U8g2/src . Then there is U8g2/sys folder, which could contain any uC code. For example see sys/arm/lpc824 . Would this make sense? How ever finally it also depends on you whether you want to share something. Project license is two clause BSD... |
Make sense. As for licensing/sharing ... my hope is that any code I produce for inclusion in your repository becomes 100% yours. I have no need for credit or ownership ... I don't even need nor desire my name in any comments in the code. Let me look at what we might put in the U8g2/sys folder from an ESP32 perspective plus perhaps a Once included, then I'll delete the ESP32 U8g2 samples from my own ESP32 samples Github repository and there will be only a single source of truth, your U8g2 library. |
Sounds good. Regarding the license, I just wanted to mention that U8g2 code is also available for commercial use. You should still keep ownership. |
I'm a big fan of the ESP32 and am about to start studying u8g2 from an ESP32 perspective. However, I don't want to use the Arduino interfaces but instead want to use the ESP32 ESP-IDF native functions for I2C and SPI. Is there an existent HAL for the ESP32 ESP-IDF? If yes, can I get a pointer please. If no, I'd like to have a go at providing one. If that would be of interest for this project, please let me know. If needed, I can be reached by email at kolban1@kolban.com.
The text was updated successfully, but these errors were encountered: