I am trying to compile code available on Wokwi simulator using custom chip ADS1115. On site it compiles but many times takes a long time and server busy errors. So I am using platformio in vscode. the custom chip contains a line
#include “wokwi-api.h”
for which i get the error cannot open source file “wokwi-api.h”. The whole project that was downloaded from wokwi worked 6 months ago since the latest update i get this error. infact just when I thought of switching from arduino ide I get a lot of errors in platformio. how to solve the cannot open source file “wokwi-api.h” error? Please help
Afaik the Custom Chip API can only be used online with wokwi.com but not in PlatformIO. Maybe the Wokwi Discord Server is the better place to ask for help about wokwi related topics.
but it was working six months ago. I would compile using platformio on vscode. Now it cannot find the file
The chip is emulated by wokwi.
As I understand it, the source code for the chip is compiled by wokwi, not PlatformIO. You should therefore ask the wokwi community.
I downloaded the project from
https://wokwi.com/projects/406366298445936641
I would make code changes in PlatformIO and compile it. Then run the Wokwi simulator by pressing F1. as I said everything was working fine until the last update of PlatformIO. It is indeed a problem of PlatformIO. A file that it could find before is missing for it now, why?
The “sketch.ino” is what PlatformIO has to compile. In best case you convert this to a valid C++ file before - See Convert Arduino file to C++ manually — PlatformIO latest documentation
All other .c files and the header file you mentioned are not related to the ESP32 but to wokwi custom chip feature!
Please ask the wokwi devs about this.