Closed laldana73 closed 1 year ago
You can try the following code to boot from pikaModules.py.a
FILE* f = fopen("pikascript-api/pikaModules.py.a", "rb");
uint8_t buff[4096] = {0};
fread(f, buff, 4096);
PikaObj* pikaMain = newRootObj("pikaMain", New_PikaMain);
obj_linkLibrary(pikaMain, buff);
obj_runModule(pikaMain, "main");
This Works, Thanks a lot
Hello. I am running pikascript on the esp32C3, i am using LittleFS. when i run the python code with pikaVM_runSingleFile(), no Problem. When i run python code that import other python file, using pikaVM_runFile(), the code run ok, but seem like pikascript is compiling the code and saving in the filesystem in every boot, this is not so good for the flash memory. There are some way to solve this? i see in the docs, that we can use the py.o files or the pikaModules.py.a file, but i don't figure out how to use it.
Thanks in advance if you can point me in the right direction.
my code ...
// this is the output of the monitor