-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
Any way to integrate CalEPD to standard ESP32 project written on C lang? #9
Comments
Hi D1sconnected, I've left a lot of examples in Cale-idf that is where I develop this and they compile without much of a hassle. I think there are also many examples on how to do it in C around and you can also just extract the commands just from the display class you use and convert only that to C. And maybe just try to use a pure C GFX. That's the only advice I can give you. |
Hey, thanks for your time and reply! As it's frequently turns out in programming - when something didn't work, it's better to have a fresh look on the problem after some rest, haha. I did manage to integrate it:
This works just fine. ESP32 Cmake pretty "smart" and there is no need to add any additional build steps. And I suppose that the main issue was that I forget to remove cpp includes from header, which I tried to include in main.c
eink_interface.h
eink_interface.cpp
CMakeLists.txt
And here is stackoverflow topic, which perfectly describes what's going on. |
Great work D1sco, Will reference your work of course! @D1sconnected here is the Wiki Article: |
Quick question @D1sconnected So we add a real demo on how to do it in case someone faces the same problem? Just if you have some time and desire to help otherwise no need. Thanks for your feedback |
@martinberlin yeah, of course! It's kinda a draft, but do its job. Feel free to use or change anyhing! Then I call these functions in C lang FreeRTOS thread with no problems. |
Great @D1sconnected I will add a C demo in next release. If you find any way to improve speed or add new display variations you are invited to fork this and collaborate |
Hey there, thanks for all the work you've done, it's great library and Wiki is amazing!
I managed to build your component in C++ enviroment, ran demos and tryied different API calls with no problems.
However, I had no success in integration with my project, which was designed in C language from the start (as most ESP32 code base actually is).
I tried to switch my project to cpp but it throwing a lot of problems related to esp-idf, it's obvious that I miss something.
And I know, that's it's kinda dumb to post such issue, but maybe you had experience in integration of this lib to native c project and we could figure it out to clear out for somebody and make a new wiki page.
My ESP-IDF version is 4.4.2. I probably could not share the whole sources, but maybe I could replicate this problem with another project, of cource if it's worth trying and you interested.
Here some links, that I refered to:
And log seems to be something like this:
The text was updated successfully, but these errors were encountered: