I created my own build now for solving the Serial1 problem. As well I experienced that the DISK_ERR is not related to this line (beside the other problem I had):
if (process.env.CONSOLE=="Serial1") setConsole(LoopbackA);
I am currently able to solve it by just setting some interval. The following line helps as well:
setInterval(function() { /* do nothing */ }, 1000);
Do you think it could be a problem with the software SPI when the Espruino goes in sleep mode?
UPDATE: Is there a possibility to set the SD card settings in the build settings for the Pico as well? I saw there is a DEVICES section in the script for the regular Espruino. Can I use that in the script for the pico for the SD card as well?
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
I created my own build now for solving the Serial1 problem. As well I experienced that the DISK_ERR is not related to this line (beside the other problem I had):
I am currently able to solve it by just setting some interval. The following line helps as well:
Do you think it could be a problem with the software SPI when the Espruino goes in sleep mode?
UPDATE: Is there a possibility to set the SD card settings in the build settings for the Pico as well? I saw there is a DEVICES section in the script for the regular Espruino. Can I use that in the script for the pico for the SD card as well?