BaseCode for programming PicoCalc using Arduino IDE

2 Likes

Thanks! At some point (once I receive my PicoCalc) I’m planning to put together a PlatformIO project for the Pico as well, and you’ve done most of the work for that here. :slight_smile:

I also plan to put something together for the ESP32-S3 module I’ve got arriving as well. I imagine it will be similar to the existing WalnutPi sources that were already posted, but it will probably have some differences.

Maybe it’s just my Windows setup, but I’ve found the Ardunio IDE to be intolerably slow (builds take many, many minutes) while PlatformIO with VSCode is significantly faster. So I just use that on Windows and Linux. It’s a bonus that the editor is a bit better than the one baked into Arduino IDE.

Yeah…
the official github repo and the examples there are… I don’t like it, to say the least!
most of the work was to figure out how the screen works^^

I haven’t looked into Platform IO… sounds interesting…

I got my start with PlatformIO when I picked up this little guy, the M5 StickC-Plus2 (what a name, ha!) The docs suggested Arduino IDE, but I read on some forums that others had better luck with PlatformIO. Eventually I found this professor’s github, who had a couple of tutorials that helped.

Specifically, the M5StickC-Plus with Arduino IDE video and M5StickC-Plus with PlatformIO video were helpful. The target device is different (so the needed libraries will be different for the Pico), but otherwise the setup should be the same. And the two videos help compare the differences between setup. PlatformIO has it’s own interface for searching/selecting libraries, like Arduino does. Ultimately, though, everything you select gets put in the platformio.ini file, and editing that directly works just as well if you know where something needs to be grabbed from.

Under Linux Arduino IDE doesn’t seem to have performance issues, so each of these tools would be more of a personal choice. But I spent some time researching how to improve performance on Windows, and I found other people with the same problem, but few answers. One thing that did help, but didn’t completely solve the problem, was moving the Arduino working folder outside of the “Documents” folder, since OneDrive (if it’s enabled) completely chokes when it’s trying to sync thousands of little files that get created and updated during every build. But even moving the location I was still seeing builds that took a couple of minutes (down from like 5-ish minutes), when under Linux on Arduino IDE I could do the same build in 30 seconds.

1 Like