-
Notifications
You must be signed in to change notification settings - Fork 174
/
platformio.ini
45 lines (34 loc) · 1.24 KB
/
platformio.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#
# 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 = [email protected]
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