Page 1 of 1
Arduino to IDF header
Posted: Mon Jun 24, 2019 9:51 am
by PeterR
I need to port some Arduino libraries to IDF.
Does anyone have a set of ESP IDF stubs which translate Arduino services (tick, time, debug logging etc) to ESP IDF which they will share?
Re: Arduino to IDF header
Posted: Tue Jun 25, 2019 2:10 am
by ESP_Sprite
You are aware that you can use the Arduino codebase as a component in esp-idf? That should allow you to intermix code.
Re: Arduino to IDF headers & stubs
Posted: Tue Jun 25, 2019 2:28 pm
by PeterR
No, I was not aware. How do I go about that?
ATM I have dropped the Ardunio component into my IDF project /components added COMPONENT_SRCDIRS and COMPONENT_ADD_INCLUDEDIRS and am now faced with missing headers 'os_type.h' etc and clearly once I copy/create the headers then I will need a back end.
Most headers seems fairly trivial to create (better though if I can avoid the typing) but espconn will need some effort.
Re: Arduino to IDF header
Posted: Wed Jun 26, 2019 9:59 am
by ESP_Sprite