-
-
Notifications
You must be signed in to change notification settings - Fork 53
/
platformio.ini
140 lines (133 loc) · 3.85 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
133
134
135
136
137
138
139
140
; PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html
[common]
framework = arduino
monitor_speed = 115200
upload_speed = 460800
extra_scripts = pre:extra_script.py
build_flags =
-DMATRIX_WIDTH=32 ; Pixel cols
-DMATRIX_HEIGHT=8 ; Pixel rows
esp32_build_flags =
${common.build_flags}
-DLDR_PIN=34
-DMATRIX_PIN=27
-DDEFAULT_PIN_SCL="GPIO_NUM_22"
-DDEFAULT_PIN_SDA="GPIO_NUM_21"
-DDEFAULT_PIN_DFPRX="GPIO_NUM_17"
-DDEFAULT_PIN_DFPTX="GPIO_NUM_16"
-DDEFAULT_PIN_ONEWIRE="GPIO_NUM_16"
-DDEFAULT_MATRIX_TYPE=1
-DDEFAULT_LDR=GL5516
-DVBAT_PIN=0
esp8266_build_flags =
${common.build_flags}
-DLDR_PIN=A0
-DMATRIX_PIN=D2
-DDEFAULT_PIN_SCL="Pin_D1"
-DDEFAULT_PIN_SDA="Pin_D3"
-DDEFAULT_PIN_DFPRX="Pin_D7"
-DDEFAULT_PIN_DFPTX="Pin_D8"
-DDEFAULT_PIN_ONEWIRE="Pin_D1"
-DDEFAULT_MATRIX_TYPE=1
-DDEFAULT_LDR=GL5516
-DVBAT_PIN=0
lib_deps =
adafruit/Adafruit BME280 [email protected]
adafruit/Adafruit BME680 [email protected]
adafruit/Adafruit BMP280 [email protected]
adafruit/Adafruit [email protected]
adafruit/Adafruit GFX [email protected]
adafruit/Adafruit SHT31 [email protected]
adafruit/Adafruit Unified [email protected]
arduino-libraries/[email protected]
bakercp/CRC32 @ 2.0.0
bblanchon/[email protected]
beegee-tokyo/DHT sensor library for [email protected]
claws/[email protected]
fastled/[email protected]
knolleary/[email protected]
LightDependentResistor=https://github.com/QuentinCG/Arduino-Light-Dependent-Resistor-Library.git#1.4.0
links2004/[email protected]
marcmerlin/FastLED [email protected]
powerbroker2/[email protected]
robtillaart/[email protected]
TimeLib = https://github.com/PaulStoffregen/Time.git#v1.6.1
[env:ESP32_generic]
platform = espressif32
board = esp32dev
framework = ${common.framework}
board_build.f_cpu = 80000000L
monitor_speed = ${common.monitor_speed}
extra_scripts = ${common.extra_scripts}
upload_speed = ${common.upload_speed}
build_flags =
${common.esp32_build_flags}
-DBUILD_SECTION="ESP32_generic"
platform_packages =
framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#2.0.14
toolchain-xtensa32@~2.80400.0
lib_deps =
${common.lib_deps}
Hash = https://github.com/bbx10/Hash_tng.git
plerup/EspSoftwareSerial@^6.11.4
WiFiManager = https://github.com/tzapu/WiFiManager.git#v2.0.15-rc.1
[env:ESP8266_generic]
platform = [email protected]
board = esp12e
framework = ${common.framework}
board_build.filesystem = littlefs
monitor_speed = ${common.monitor_speed}
extra_scripts = ${common.extra_scripts}
upload_speed = ${common.upload_speed}
build_flags =
${common.esp8266_build_flags}
-DBUILD_SECTION="ESP8266_generic"
lib_deps =
${common.lib_deps}
mr-glt/SHA-1 Hash@^1.1.0
tzapu/WiFiManager@^0.16.0
[env:ESP8266_d1_mini]
extends = env:ESP8266_generic
monitor_filters = esp8266_exception_decoder
board = d1_mini
build_flags =
${common.esp8266_build_flags}
-DBUILD_SECTION='ESP8266_d1_mini'
[env:ESP8266_nodemcuv2]
extends = env:ESP8266_generic
board = nodemcuv2
build_flags =
${common.esp8266_build_flags}
-DBUILD_SECTION="ESP8266_nodemcuv2"
[env:ESP32_d1_mini32]
extends = env:ESP32_generic
board = wemos_d1_mini32
build_flags =
${common.esp32_build_flags}
-DBUILD_SECTION="ESP32_d1_mini32"
[env:ESP32_ulanzi]
extends = env:ESP32_generic
build_flags =
${common.build_flags}
-DLDR_PIN=A7
-DMATRIX_PIN=32
-DULANZI
-DVBAT_PIN=GPIO_NUM_34
-DDEFAULT_PIN_SCL=GPIO_NUM_22
-DDEFAULT_PIN_SDA=GPIO_NUM_21
-DDEFAULT_PIN_DFPRX=SPI_CLK_GPIO_NUM
-DDEFAULT_PIN_DFPTX=SPI_CS0_GPIO_NUM
-DDEFAULT_PIN_ONEWIRE=GPIO_NUM_22
-DDEFAULT_MATRIX_TYPE=2
-DDEFAULT_LDR=GL5516
-DMIN_BATTERY=475
-DMAX_BATTERY=665
-DBUILD_SECTION="ESP32_ulanzi"