-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathplatformio.ini
More file actions
75 lines (63 loc) · 1.64 KB
/
Copy pathplatformio.ini
File metadata and controls
75 lines (63 loc) · 1.64 KB
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
; PlatformIO Project Configuration File
;
; Build options: build flags, source filter, extra scripting
; Upload options: custom port, speed and extra flags
; Library options: dependencies, extra library storages
;
; Please visit documentation for the other options and examples
; http://docs.platformio.org/en/stable/projectconf.html
[platformio]
env_default = h801
[common]
lib_deps =
PubSubClient
ArduinoJson
WifiManager
build_flags =
-D MQTT_MAX_PACKET_SIZE=512
-D DEBUG_UPDATER=Serial1
monitor_baud = 115200
[env:h801]
framework = arduino
platform = espressif8266
board = esp01_1m
src_filter = +<*> -<pwm.c>
lib_deps = ${common.lib_deps}
monitor_baud = ${common.monitor_baud}
build_Flags =
${common.build_flags}
-Wl,-Tesp8266.flash.1m64.ld
-DHWMODEL=HWMODEL_H801
; Using pwm.c from
; https://github.com/StefanBruens/ESP8266_new_pwm/
[env:h801_new_pwm]
framework = arduino
platform = espressif8266
board = esp01_1m
lib_deps = ${common.lib_deps}
monitor_baud = ${common.monitor_baud}
build_Flags =
${common.build_flags}
-Wl,-Tesp8266.flash.1m64.ld
-D NEW_PWM=1
-D HWMODEL=HWMODEL_H801
[env:magic_rgbw]
framework = arduino
platform = espressif8266
board = esp01
src_filter = +<*> -<pwm.c>
lib_deps = ${common.lib_deps}
monitor_baud = ${common.monitor_baud}
build_flags =
${common.build_flags}
-D HWMODEL=HWMODEL_MAGIC_RGBW
[env:magic_rgb]
framework = arduino
platform = espressif8266
board = esp01
src_filter = +<*> -<pwm.c>
lib_deps = ${common.lib_deps}
monitor_baud = ${common.monitor_baud}
build_flags =
${common.build_flags}
-D HWMODEL=HWMODEL_MAGIC_RGB