@Daniel-Oliveira We have some problems with previous PlatformIO 2.0 Build System and MySensor Library structure. All these issues are resolved in PlatformIO 3.0 where are introduced new build system and library manager with support for 3-rd party manifests (Arduino's library.properties
, ARM mbed module.json
).
PlatformIO 3.0 has not been finally released. We released the first public alpha version. How to use it?
- Install PlatformIO IDE or PlatformIO CLI and switch it to development version.
Menu: PlatformIO > Initialize new project
- Open
platformio.ini
project configuration files (will be created in the project) - Specify project dependencies. See docs for lib_deps option.
- Press build/upload button.
For example, the final project configuration file for the Arduino Uno will look like:
[env:uno]
platform = atmelavr
framework = arduino
board = uno
lib_deps = MySensors
You can also specify Semantic Versioning rules and depend on the specific version or range of versions. For example, lib_deps = MySensors@~2.0.1-beta
means that any version of 2.0.x
(including beta and higher) is allowed for your project.