I’ve recently been evaluating switching over to PlatformIO for controller code editor. Its Arduino compatible but looks to be a more modern take on embedded development.
A few pros for us:
- Arduino compatible - works with all of the OpenPPG controllers. (So far tested on the V2 hardware aka SAMD21)
- Manages dependencies. There are 10+ libraries mentioned in the readme that currently have to be manually installed in the Arduino IDE library manager. (arduino-cli may be an alternative). PlatformIO allows proper dependency management so new setups only have to run one
- Works with VSCode. I’m basically already using VSCode for actual code development because, well, the Arduino IDE kinda sucks. VSCode is one of the most popular and fastest growing code editors with lots of other plugins too. Plus its all open-source!
- Modern automation. Besides easy library installs we can get access to automated testing. This is huge because it theoretically allows for anyone to develop OpenPPG code without needing to physically test on the hardware, it can all be run in the “cloud” via free services like CircleCI and Jenkins.
- Need to restructure some of the code. We’ll probably want to migrate the
.cpp. It will take extra work to update old branches of the code (eg. batch 2)
- Less mature than the ArduinoIDE. Its popular but Arduino has been around for a long time.
- Slightly higher learning curve. There are more settings (which is nice) but it may be daunting for new users (not as nice)
I’d love to hear if anyone has experience with PlatformIO and/or its alternatives!
PS. The X4 hub code wont be touched by this since its already not using Arduino.