-
Notifications
You must be signed in to change notification settings - Fork 6
/
platformio.ini
72 lines (61 loc) · 1.52 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#
# Project Configuration File
#
# A detailed documentation with the EXAMPLES is located here:
# http://docs.platformio.org/en/latest/projectconf.html
#
# A sign `#` at the beginning of the line indicates a comment
# Comment lines are ignored.
# Simple and base environment
# [env:mybaseenv]
# platform = %INSTALLED_PLATFORM_NAME_HERE%
# framework =
# board =
#
# Automatic targets - enable auto-uploading
# targets = upload
[platformio]
env_default = emonpixel
data_dir = src/data
[common]
version = -DBUILD_TAG=0.0.1
#MQTT: https://github.com/knolleary/pubsubclient
lib_deps = [email protected]
Adafruit [email protected]
[env:emonpixel]
platform = espressif8266
framework = arduino
board = esp12e
lib_deps = ${common.lib_deps}
src_build_flags = ${common.version}
upload_speed=921600
#57600
#115200
#
[env:emonpixel_ota]
platform = espressif8266
framework = arduino
board = esp12e
upload_port = emonpixel.local
lib_deps = ${common.lib_deps}
src_build_flags = ${common.version}
[env:emonpixel_spiffs]
platform = espressif8266
framework = arduino
board = esp12e
lib_deps = ${common.lib_deps}
src_build_flags = ${common.version}
upload_flags = --spiffs
upload_speed=921600
[env:emonpixel_deploy]
platform = espressif8266
framework = arduino
board = esp12e
lib_deps = ${common.lib_deps}
src_build_flags = !(test -z $TRAVIS_TAG && echo '${common.version}') || echo '-DBUILD_TAG='$TRAVIS_TAG
[env:emonpixel01]
platform = espressif8266
framework = arduino
board = esp01
lib_deps = ${common.lib_deps}
src_build_flags = ${common.version} -DESP01