Hello,
I am new to platformIO. I have been trying to load a file which has an H file but I don’t seem to find the correct way to include the H file in the project. I have tried to put it in the include and lib folder but this doesn’t work.
The file is this one found on GitHub:
I get the following error:
src\main.cpp:5:10: fatal error: waveforms.h: No such file or directory
also I am not exactly sure how to deal with the ini file. I am trying to upload the sketch on a esp-01 (I know it would to be able to work but I dont’ have the esp32 available at the moment and I just want to learn how to upload sketch with PIO. I have just made a mix of my original empty esp01 file with the one on github and it looks like this:
After trying again it seems that the issue now is actually the code: the compiler does not recognize some identifiers used in the code:
‘portMUX_TYPE’
portMUX_INITIALIZER_UNLOCKED;
portENTER_CRITICAL_ISR(&mux);
etc.etc
I have never seen these before and there is no reference to them in the H file.
I wander if this only works when I have esp32 selected as a board and not with ESP01?..
UPDATE:
I have now created another project using esp32 settings and I don’t get that error anymore. But I do get this error:
fatal error: pins_arduino.h: No such file or directory
I have the feeling that this is due to the fact the actual board is not connected. I’ll have to try again when I have an ESP32.
TBH I don’t seem to have much luck with PIO…
I cannot even get the blink sketch to work with my ESP-01.
It works fine with the arduino IDE (sketch uploding ok and LED blinking) but not when uploading the sketch from PIO.
I get a “success” message when compiling and uploading, but the LED does not blink.
I have tried to add a few lines to the ini file (which I have pasted below) but no change:
@sivar2311 this works thank you !!!
Clearly, the revised code specifying the correct pin number also works. And yes I am using an ESP-01.
Now I am going to try and resolve the problem I originally posted but it’s good to see some progress :). I have received in the post an ESP32 S3 and an ESP32 C3 and I am trying to get my head round the way platformIO works. I will post an update when I get to the bottom of the above issue, if I do.