i have been working with platformio for a few weeks now and have been able to create quite a bit for my microcontroller (atmega328p). I have always tried to get away from the Arduino structure. So no “void setup” or “void loop” but simple C. Now I got a ESP8266, which I would like to compile with a C environment. When I create the project now (for the 12E) it asks which framework I should use. I have tried them all by replacing the Arduino setup and loop with the int main(){} function, however it always came up with errors. Does anyone know how I can use a pure C environment for the ESP8266?
main()in the user space, it all use internal and only expose auser_int()function for you work on, just like Arduino framework, wheresetup()andloop()are the functions within amain()behind the scene. Having amain()is not the reason why you should pick up a language(c++ versus c) or framework.arudion-esp8266when you have no intention to use theArduinoframework.