forked from stelgenhof/AiLight
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplatformio.example.ini
76 lines (69 loc) · 2.27 KB
/
platformio.example.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
73
74
75
76
; Ai-Thinker RGBW Light Firmware - Project Configuration File
;
; This file is part of the Ai-Thinker RGBW Light Firmware.
; For the full copyright and license information, please view the LICENSE
; file that was distributed with this source code.
; Created by Sacha Telgenhof <stelgenhof at gmail dot com>
; (https://www.sachatelgenhof.nl)
; Copyright (c) 2016 - 2017 Sacha Telgenhof
[platformio]
env_default = dev
[common]
framework = arduino
; platform = espressif8266
platform = https://github.com/platformio/platform-espressif8266.git#feature/stage
; platform = https://github.com/bofh69/platform-espressif8266.git#feature/stage
; board = esp8285
board = esp01_1m
upload_speed = 115200
upload_port = "<YOUR_DEVICE_ID>.local"
ota_password = hinotori
ota_port = 8266
flag_flash_size = -Wl,-Tesp8266.flash.1m128.ld
flag_debug = -DDEBUG -Og -Wall
lib_deps =
ArduinoJson@5.12.0
AsyncMqttClient@0.8.1
xoseperez/my9291
ESPAsyncTCP@1.1.3
ESP8266HTTPUpdateServer@1.0
ESP8266WebServer@1.0
ESP Async WebServer@1.1.1
# Development/Debug environment
[env:dev]
platform = ${common.platform}
board = ${common.board}
framework = ${common.framework}
build_flags = ${common.flag_debug} ${common.flag_flash_size}
lib_deps = ${common.lib_deps}
extra_scripts = bin/build.py
# Development/Debug environment for OTA Updates
[env:dev-ota]
platform = ${common.platform}
board = ${common.board}
framework = ${common.framework}
build_flags = ${common.flag_debug} ${common.flag_flash_size}
lib_deps = ${common.lib_deps}
extra_scripts = bin/build.py
upload_speed = ${common.upload_speed}
upload_port = ${common.upload_port}
upload_flags = --auth=${common.ota_password} --port ${common.ota_port}
# Production optimized environment
[env:prod]
platform = ${common.platform}
board = ${common.board}
framework = ${common.framework}
build_flags = -Os ${common.flag_flash_size}
lib_deps = ${common.lib_deps}
extra_scripts = bin/build.py
# Production optimized environment for OTA Updates
[env:prod-ota]
platform = ${common.platform}
board = ${common.board}
framework = ${common.framework}
build_flags = -Os ${common.flag_flash_size}
lib_deps = ${common.lib_deps}
extra_scripts = bin/build.py
upload_speed = ${common.upload_speed}
upload_port = ${common.upload_port}
upload_flags = --auth=${common.ota_password} --port ${common.ota_port}