In a recent tweet from the official Arduino account, support for the Raspberry Pi Pico's RP2040 SoC has been officially added to the Arduino IDE. This is just a few weeks after a community project released its own package offering the Arduino IDE for RP2040 boards.
Arduino Core mbed 2.0 has been released, with support for the @Raspberry_Pi RP2040! https://t.co/JSh10SSmch pic.twitter.com/CuB39OzyBYApril 9, 2021
The Arduino IDE has seen great progress in recent years, with features such as a board manager and a library manager offering an easier means to add boards and install software to build projects via the Arduino IDE. The inclusion of Raspberry Pi's RP2040 chip is in anticipation of Arduino's own RP2040 board, the Arduino Nano RP2040 Connect, which should hopefully be arriving soon.
Installation is a breeze. Searching for "Pico" in the Boards Manager will show the official installation package. The Arduino IDE identifies RP2040-based boards as "Arduino Mbed OS RP2040," and all we need to do is connect our Raspberry Pi Pico and select the board from the Tools menu, then the port, and we can start writing code for our RP2040 board. We installed the package in the latest Arduino 1.8.13 IDE and the Arduino 2.0 IDE beta, and both worked with no faults.
So why is this a big deal? The official C/C++ workflow is well documented, and for those used to the process, it is exceptionally easy to use. MicroPython / CircuitPython is easy to use, and new users can quickly develop projects in a more "user-friendly" workflow. But what if we want the power of C/C++ but with an easier workflow? That is where the Arduino core comes to the fore. While not being a true C/C++ environment, rather it is a "dialect" of a subset of the standard library. The Arduino IDE offers the power and speed of those languages, but with a rich community of tutorials and content that can easily be ported to the RP2040.