-
Notifications
You must be signed in to change notification settings - Fork 118
/
platformio.ini
133 lines (108 loc) · 4.81 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
; Configurable parameters:
; SERIALCOM_SPEED = speed of the serial port (baud), performance/debug data only, global [env] section
; DATA_PIN = pin/GPIO for the LED strip data channel, specific [board] section
;
; MULTI-SEGMENT SUPPORT
; You can define second segment to handle. Add following parameters (with -D prefix to the build_flags sections).
; SECOND_SEGMENT_START_INDEX = start index of the second segment
; SECOND_SEGMENT_DATA_PIN = pin/GPIO for the second segment LED strip clock channel
; SECOND_SEGMENT_REVERSED = if defined, the segment is reversed, the first LED of the second segment becomes the last
; For example: we have first LED strip with 512 leds and the second LED strip with 400 leds.
; For such configuration you need to set SECOND_SEGMENT_START_INDEX to 512 here, compile and upload the firmware.
; In HyperHDR you should have a single LED strip that contains 912 leds.
; SECOND_SEGMENT_REVERSED could be helpful if you start both segments in the middle of the bottom edge and join again at the top (both ends).
; Example build string for the second segment (append it to the global [env] or to the specific [board] section):
; build_flags = ... -DSECOND_SEGMENT_START_INDEX=450 -DSECOND_SEGMENT_DATA_PIN=4 -DSECOND_SEGMENT_REVERSED
[platformio]
default_envs = SK6812_RGBW_COLD, SK6812_RGBW_NEUTRAL, WS281x_RGB, s2_mini_SK6812_RGBW_COLD, s2_mini_SK6812_RGBW_NEUTRAL, s2_mini_WS281x_RGB, esp8266_SK6812_RGBW_COLD, esp8266_SK6812_RGBW_NEUTRAL, esp8266_WS281x_RGB
[env]
framework = arduino
extra_scripts = pre:extra_script.py
build_flags = -DSERIALCOM_SPEED=115200
;==========================================================
; ESP32 board
;==========================================================
[esp32]
platform = [email protected]
lib_deps = https://github.com/awawa-dev/NeoPixelBus.git#HyperSerialESP32, hideakitai/[email protected]
test_ignore =
[env:SK6812_RGBW_COLD]
build_flags = -DNEOPIXEL_RGBW -DCOLD_WHITE -DDATA_PIN=2 ${env.build_flags}
custom_prog_version = esp32_SK6812_RGBW_COLD
board = esp32dev
platform = ${esp32.platform}
lib_deps = ${esp32.lib_deps}
test_ignore = ${esp32.test_ignore}
[env:SK6812_RGBW_NEUTRAL]
build_flags = -DNEOPIXEL_RGBW -DDATA_PIN=2 ${env.build_flags}
custom_prog_version = esp32_SK6812_RGBW_NEUTRAL
board = esp32dev
platform = ${esp32.platform}
lib_deps = ${esp32.lib_deps}
test_ignore = ${esp32.test_ignore}
[env:WS281x_RGB]
build_flags = -DNEOPIXEL_RGB -DDATA_PIN=2 ${env.build_flags}
custom_prog_version = esp32_WS281x_RGB
board = esp32dev
platform = ${esp32.platform}
lib_deps = ${esp32.lib_deps}
test_ignore = ${esp32.test_ignore}
;==========================================================
; ESP32-S2 board
;==========================================================
[esp32_lolin_s2_mini]
platform = [email protected]
lib_deps = https://github.com/awawa-dev/NeoPixelBus.git#HyperSerialESP32, hideakitai/[email protected]
test_ignore = *
[env:s2_mini_SK6812_RGBW_COLD]
build_flags = -DNEOPIXEL_RGBW -DCOLD_WHITE -DDATA_PIN=2 ${env.build_flags}
custom_prog_version = esp32_s2_mini_SK6812_RGBW_COLD
board = lolin_s2_mini
board_build.mcu = esp32s2
platform = ${esp32_lolin_s2_mini.platform}
lib_deps = ${esp32_lolin_s2_mini.lib_deps}
test_ignore = ${esp32_lolin_s2_mini.test_ignore}
[env:s2_mini_SK6812_RGBW_NEUTRAL]
build_flags = -DNEOPIXEL_RGBW -DDATA_PIN=2 ${env.build_flags}
custom_prog_version = esp32_s2_mini_SK6812_RGBW_NEUTRAL
board = lolin_s2_mini
board_build.mcu = esp32s2
platform = ${esp32_lolin_s2_mini.platform}
lib_deps = ${esp32_lolin_s2_mini.lib_deps}
test_ignore = ${esp32_lolin_s2_mini.test_ignore}
[env:s2_mini_WS281x_RGB]
build_flags = -DNEOPIXEL_RGB -DDATA_PIN=2 ${env.build_flags}
custom_prog_version = esp32_s2_mini_WS281x_RGB
board = lolin_s2_mini
board_build.mcu = esp32s2
platform = ${esp32_lolin_s2_mini.platform}
lib_deps = ${esp32_lolin_s2_mini.lib_deps}
test_ignore = ${esp32_lolin_s2_mini.test_ignore}
;==========================================================
; ESP8266 board
;==========================================================
[esp8266]
platform = [email protected]
lib_deps = https://github.com/awawa-dev/NeoPixelBus.git#HyperSerialESP32
test_ignore = *
[env:esp8266_SK6812_RGBW_COLD]
build_flags = -DNEOPIXEL_RGBW -DCOLD_WHITE ${env.build_flags}
custom_prog_version = esp8266_SK6812_RGBW_COLD
board = d1_mini
platform = ${esp8266.platform}
lib_deps = ${esp8266.lib_deps}
test_ignore = ${esp8266.test_ignore}
[env:esp8266_SK6812_RGBW_NEUTRAL]
build_flags = -DNEOPIXEL_RGBW ${env.build_flags}
custom_prog_version = esp8266_SK6812_RGBW_NEUTRAL
board = d1_mini
platform = ${esp8266.platform}
lib_deps = ${esp8266.lib_deps}
test_ignore = ${esp8266.test_ignore}
[env:esp8266_WS281x_RGB]
build_flags = -DNEOPIXEL_RGB ${env.build_flags}
custom_prog_version = esp8266_WS281x_RGB
board = d1_mini
platform = ${esp8266.platform}
lib_deps = ${esp8266.lib_deps}
test_ignore = ${esp8266.test_ignore}