Not recognized as platform
More information please? Maybe you’re using arduino
in the wrong place?
i.e. for an Arduino Uno… your platformio.ini hsould look somewhat like…
[env:uno]
platform = atmelavr
board = uno
framework = arduino
I now have it working, but I am not sure how I got there. My ino file reads
[env:teensy31]
platform = teensy
lib_extra_dirs = ~/Documents/Arduino/libraries
board = teensy31
framework = arduino
What is the sequence to enter this information?
There is no particular sequence… Out of habit I would do it this way, as I read it as “I want to use the teensy platform, specifically the teensy 3.1, and I want to program it with the arduino framework” and then any other environment specific configuration variables.
Unless you specifically want to share libraries with the Arduino IDE… I’d remove the lib_extra_dirs
parameter and start using the lib_deps
and PlatformIO Registry … let PlatformIO install and manage libraries as needed, as this gives you complete control over versions and all.
[env:teensy31]
platform = teensy
board = teensy31
framework = arduino
lib_extra_dirs = ~/Documents/Arduino/libraries