I had been using the Arduino IDE thinking it was the only choice. It sucked, especially for the high-DPI support and the lack of code completion. Now that I have found Platform IO (VS Code), I feel like I was stupid. This is immensely better than the Arduino IDE.
The only thing I miss for the moment is the sample code feature. Does PlatformIO have a similar feature (getting commonly used code)?
PlatformIO does currently not do this with every availble Arduino IDE example. This was also discussed in Examples for Board which resulted in New feature request - Board specific examples code not available · Issue #12 · platformio/platformio-home · GitHub but seems like it wasn’t further being worked on, @ivankravets ?
However, in PlatformIO you can scroll through every example of a platforms.
In the GUI you can go to the platforms and select one (e.g. Atmel AVR) and there will be an examples tab.
As you can see the select example here, which is currently arduino-blink
. You can select others:
You can scroll through the platformio.ini
and the code at the bottom. Pressing the “Import” button starts a new project with this example preloaded.
However, the PlatformIO platforms don’t contain the Arduino IDE examples 1:1 – just some own selection of examples. (see e.g. platform-atmelavr/examples at develop · platformio/platform-atmelavr · GitHub or platform-ststm32/examples at develop · platformio/platform-ststm32 · GitHub ).
2 Likes
Yes, we depend on
opened 11:09AM - 02 Nov 18 UTC
feature
I was asked to add this here, after posting in forum. Love the tool and impresse… d how active the project is.
_________
Hi all,
New to PlatformIO but using Arduino IDE for a while, I am really impressed whith how all my board just work, I was frustrated how Some worked on Windows others on Mac so I am sold on this new IDE :slight_smile:
Examples are the thing I am struggling to get my head around in the Arduino IDE all Platform/Board/Library examples showed based on selected borad, which made it very quick to get new stuff going.
From what I can tell PlatformIO examples work this way:
List item Platform examples show in home screen under examples.
List item Library examples are available in library manager but project has to be manually setup for it.
List item Board specific examples ???
Is the board examples available anywhere? I can’t find them i.e. I have a Heltec Web Kit 32 which is an ESP32 it works fine for ESP32 generic stuff but I can’t find the examples for its embeded OLED screan etc that is available for the board in Ardiuno IDE in fact there is not specific examples as its not a new platform just a new board.
Can anyone please help?
Thanks.
There is no ETA for this case
1 Like