46 lines
1.2 KiB
INI
46 lines
1.2 KiB
INI
#
|
|
# Project Configuration File
|
|
#
|
|
# A detailed documentation with the EXAMPLES is located here:
|
|
# http://docs.platformio.org/en/latest/projectconf.html
|
|
#
|
|
|
|
# The upload speed below (921600) has worked fine for all modules I tested. If you have upload issues,
|
|
# try reducing to 115200.
|
|
|
|
# Set mavesp version
|
|
|
|
[version]
|
|
major = 1
|
|
minor = 2
|
|
build = 2
|
|
|
|
# Generate version string (e.g "1.2.2") and flags
|
|
|
|
[version_env]
|
|
version_string = ${version.major}.${version.minor}.${version.build}
|
|
version_flags = "-DMAVESP8266_VERSION_MINOR="${version.minor} "-DMAVESP8266_VERSION_MAJOR="${version.major} "-DMAVESP8266_VERSION_BUILD="${version.build} "-DVERSION_STRING="${version_env.version_string}
|
|
|
|
# General settings
|
|
# - Set platform and framework
|
|
# - Generate revision, date and time flags
|
|
# - Run prebuild script to set firmware name
|
|
|
|
[env]
|
|
platform = espressif8266
|
|
framework = arduino
|
|
build_flags = !echo "-DPIO_SRC_REV="$(git rev-parse HEAD) "-DPIO_BUILD_DATE="$(date +%%Y-%%m-%%d) "-DPIO_BUILD_TIME="$(date +%%H:%%M:%%S) ${version_env.version_flags}
|
|
extra_scripts = pre:platformio_prebuild.py
|
|
|
|
# Platform specific settings
|
|
|
|
[env:esp12e]
|
|
board = esp12e
|
|
build_flags = ${env.build_flags} -Wl,-Tesp8266.flash.4m.ld
|
|
|
|
[env:esp01_1m]
|
|
board = esp01_1m
|
|
|
|
[env:esp01]
|
|
board = esp01
|