Example codes for platformio


#1

i think that platformio should have a feature that ( when you install a new library and even the ones you already have installed) that shows you the example codes like in arduino ide


#2

That feature is already implemented:


#3

Thanks is there a way of creating a new project based on this or do you need to Create Project, Create and Copy files set up ini etc?
With the Arduino IDE I select an example then hit upload button.


#4

Currently, this feature is available only for PlatformIO project (see examples in “Platforms”). We plan to add “Import Arduino library example” soon.


#5

Copy the code from example,
Create new project,
Paste the code into main.cpp (replace the default generated code)
Upload (will automatically compile),
Done


#6

Sounds great will look out for it:)