-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplatformio.ini
152 lines (141 loc) · 3.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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
; 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
[platformio]
default_envs = rack32-debug
[firmware]
name = \"OXRS-IO-StateController-FW\"
short_name = \"OXRS State Controller\"
maker = \"OXRS Core Team\"
github_url = \"https://github.com/OXRS-IO/OXRS-IO-StateController-ESP-FW\"
[env]
framework = arduino
lib_deps =
adafruit/Adafruit MCP23017 Arduino Library
androbi/MqttLogger
knolleary/PubSubClient
https://github.com/OXRS-IO/OXRS-IO-MQTT-ESP32-LIB
https://github.com/OXRS-IO/OXRS-IO-API-ESP32-LIB
https://github.com/OXRS-IO/OXRS-IO-IOHandler-ESP32-LIB
build_flags =
-DFW_NAME="${firmware.name}"
-DFW_SHORT_NAME="${firmware.short_name}"
-DFW_MAKER="${firmware.maker}"
-DFW_GITHUB_URL="${firmware.github_url}"
; debug builds
[env:black-debug]
extends = black
build_flags =
${black.build_flags}
-DFW_VERSION="DEBUG-ETH"
monitor_speed = 115200
[env:rack32-debug]
extends = rack32
build_flags =
${rack32.build_flags}
-DFW_VERSION="DEBUG-ETH"
monitor_speed = 115200
[env:rack32-debug-wifi]
extends = rack32
lib_deps =
${rack32.lib_deps}
DNSServer
WiFi
WebServer
https://github.com/tzapu/wifiManager
build_flags =
${rack32.build_flags}
-DWIFI_MODE
-DFW_VERSION="DEBUG-WIFI"
monitor_speed = 115200
; release builds
[env:black-eth_ESP32]
extends = black
extra_scripts =
pre:scripts/release_extra.py
pre:scripts/esp32_extra.py
[env:rack32-eth_ESP32]
extends = rack32
extra_scripts =
pre:scripts/release_extra.py
pre:scripts/esp32_extra.py
[env:rack32-wifi_ESP32]
extends = rack32
lib_deps =
${rack32.lib_deps}
DNSServer
WiFi
WebServer
https://github.com/tzapu/wifiManager
build_flags =
${rack32.build_flags}
-DWIFI_MODE
extra_scripts =
pre:scripts/release_extra.py
pre:scripts/esp32_extra.py
[black]
platform = espressif32
board = esp32dev
platform_packages = platformio/framework-arduinoespressif32@^3.20007.0
lib_deps =
${env.lib_deps}
bodmer/TFT_eSPI
https://github.com/OXRS-IO/Ethernet
https://github.com/OXRS-IO/OXRS-IO-LCD-ESP32-LIB
https://github.com/AustinsCreations/OXRS-AC-Black-ESP32-LIB
build_flags =
${env.build_flags}
-DOXRS_BLACK
; TFT_eSPI configuration
-DUSER_SETUP_LOADED=1
-DDISABLE_ALL_LIBRARY_WARNINGS=1
-DST7789_2_DRIVER=1
-DTFT_RGB_ORDER=TFT_RGB
-DTFT_WIDTH=240
-DTFT_HEIGHT=240
-DTFT_MOSI=23
-DTFT_SCLK=18
-DTFT_CS=25
-DTFT_DC=2
-DTFT_RST=4
-DTFT_BL=14
-DSPI_FREQUENCY=40000000
-DLOAD_GLCD=1 ; Font 1. Original Adafruit 8 pixel font needs ~1820 bytes in FLASH
-DLOAD_FONT2=1 ; Font 2. Small 16 pixel high font, needs ~3534 bytes in FLASH, 96 characters
-DLOAD_GFXFF=1 ; FreeFonts. Include access to the 48 Adafruit_GFX free fonts FF1 to FF48 and custom fonts
[rack32]
platform = espressif32
board = esp32dev
platform_packages = platformio/framework-arduinoespressif32@^3.20007.0
lib_deps =
${env.lib_deps}
bodmer/TFT_eSPI
https://github.com/OXRS-IO/Ethernet
https://github.com/OXRS-IO/OXRS-IO-LCD-ESP32-LIB
https://github.com/SuperHouse/OXRS-SHA-Rack32-ESP32-LIB
build_flags =
${env.build_flags}
-DOXRS_RACK32
; TFT_eSPI configuration
-DUSER_SETUP_LOADED=1
-DDISABLE_ALL_LIBRARY_WARNINGS=1
-DST7789_2_DRIVER=1
-DTFT_RGB_ORDER=TFT_RGB
-DTFT_WIDTH=240
-DTFT_HEIGHT=240
-DTFT_MOSI=23
-DTFT_SCLK=18
-DTFT_CS=25
-DTFT_DC=2
-DTFT_RST=4
-DTFT_BL=14
-DSPI_FREQUENCY=40000000
-DLOAD_GLCD=1 ; Font 1. Original Adafruit 8 pixel font needs ~1820 bytes in FLASH
-DLOAD_FONT2=1 ; Font 2. Small 16 pixel high font, needs ~3534 bytes in FLASH, 96 characters
-DLOAD_GFXFF=1 ; FreeFonts. Include access to the 48 Adafruit_GFX free fonts FF1 to FF48 and custom fonts