-
Notifications
You must be signed in to change notification settings - Fork 27
/
platformio.ini
188 lines (180 loc) · 7.31 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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
; 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]
; Added this here to "hard code" the environment for macro debugging/visuals
; default_envs = lcd_ssd1306
; default_envs = d32_pro_tft
; default_envs = tft_espi
[common]
platform = espressif32
platform_packages = framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git
framework = arduino
; As the framework has grown, min_spiffs no longer has enough space. We're now
; requiring 16MB of flash space for most builds (which comes standard with the
; recommended D32 Pro)
board_build.partitions = large_spiffs_16MB.csv
upload_speed = 460800
monitor_speed = 115200
monitor_filters =
esp32_exception_decoder
; log2file
; This can/will be set in tools/get_port.py
; upload_port =
; monitor_port =
monitor_dtr = 1
monitor_rts = 1
; -D_GLIBCXX_USE_C99 is to fix an issue with the xtensa toolchain that precludes the use of std::to_string
; See: https://github.com/espressif/esp-idf/issues/1445
build_flags = ; Do not use spaces around the "=" here, will give you a builder not found error
-D_GLIBCXX_USE_C99=1 ; See above
!python tools/git_rev.py ; Pick up git information for version (disabled), branch, and commit (in version.cpp)
-D PIO_SRC_TAG=1.0.0 ; Increment versions shown in about.htm page (from version.cpp)
; Async TCP Settings:
-D CONFIG_ASYNC_TCP_RUNNING_CORE=1 ; per: https://github.com/me-no-dev/ESPAsyncWebServer/issues/731#issuecomment-628163515
-D CONFIG_ASYNC_TCP_USE_WDT=1
; BLE Settings:
-D CONFIG_SW_COEXIST_ENABLE=1
-D CONFIG_ESP32_WIFI_SW_COEXIST_ENABLE=1
-D CONFIG_SW_COEXIST_PREFERENCE_BALANCED=1
; Debug logging
-D PRINT_GRAV_UPDATES=0 ; Turn on and off gravity printing to serial log
-D CORE_DEBUG_LEVEL=0 ; Set core Arduino log level (5 = high)
-D ARDUINO_LOG_LEVEL=0 ; Set Serial log level (6 = high)
-D DISABLE_LOGGING ; This will remove log lib from sketch
; Project conditional compile/options:
-D BAUD=${common.monitor_speed} ; Serial monitor baud setting
-D FILESYSTEM=SPIFFS ; Define filesystem in use
-D DISABLE_OTA_UPDATES=1
;-D DOTELNET=0 ; Allow Telnet serial logging
;-D TELNETPORT=23
-D WEBPORT=80
; -D FSEDIT=0 ; Use a filesystem editor
extra_scripts = tools/get_port.py ; Pick up port information based on OS
lib_deps =
bblanchon/ArduinoJson @ 6.17.2
thijse/ArduinoLog @ 1.0.3 ; https://github.com/thijse/Arduino-Log.git
https://github.com/lbussy/esptelnet.git
https://github.com/thorrak/AsyncTCP.git#queued_push ; Originally ul-gh's queued_push branch
https://github.com/thorrak/ESPAsyncWebServer.git#dev ; Originally ul-gh's dev branch
h2zero/NimBLE-Arduino @ 1.2.0 ; https://github.com/h2zero/NimBLE-Arduino.git
256dpi/MQTT @ 2.4.8
https://github.com/tzapu/WiFiManager.git
https://github.com/lbussy/LCBUrl.git#devel
https://github.com/bblanchon/ArduinoStreamUtils.git ; This is used to allow stream processing, can be turned off later.
build_type = release ; debug
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Individual build configurations
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[env:lcd_ssd1306] ; Small OLED Board
board = lolin_d32
platform = ${common.platform}
platform_packages = ${common.platform_packages}
framework = ${common.framework}
; For the "OLED" variant, we can't guarantee we have more than 4MB of flash. Use
; huge_app to get us the space - but at the cost of being able to update OTA.
board_build.partitions = huge_app.csv
upload_speed = ${common.upload_speed}
monitor_speed = ${common.monitor_speed}
monitor_filters = ${common.monitor_filters}
; This can/will be set in tools/get_port.py
; upload_port = ${common.upload_port}
; monitor_port = ${common.monitor_port}
monitor_dtr = ${common.monitor_dtr}
monitor_rts = ${common.monitor_rts}
build_flags =
${common.build_flags}
-DLCD_SSD1306
-DDISABLE_OTA_UPDATES
lib_deps =
${common.lib_deps}
squix78/ESP8266 and ESP32 OLED driver for SSD1306 displays @ 4.2.0 ; https://github.com/ThingPulse/esp8266-oled-ssd1306
build_type = ${common.build_type}
[env:d32_pro_tft] ; Lolin ESP32 + ILI TFT
board = lolin_d32_pro
platform = ${common.platform}
platform_packages = ${common.platform_packages}
framework = ${common.framework}
board_build.partitions = ${common.board_build.partitions}
upload_speed = ${common.upload_speed}
monitor_speed = ${common.monitor_speed}
monitor_filters = ${common.monitor_filters}
; This can/will be set in tools/get_port.py
; upload_port = {common.upload_port}
; monitor_port = ${common.monitor_port}
monitor_dtr = ${common.monitor_dtr}
monitor_rts = ${common.monitor_rts}
build_flags =
${common.build_flags}
-D LCD_TFT=1
-D USER_SETUP_LOADED=1
-D ILI9341_DRIVER=1
-D TFT_WIDTH=240
-D TFT_HEIGHT=320
-D CGRAM_OFFSET=1
; -DTFT_MISO=19 ; in TFT_eSPI_ESP32.h
; -DTFT_MOSI=23 ; in TFT_eSPI_ESP32.h
; -DTFT_SCLK=18 ; in TFT_eSPI_ESP32.h
; -DTFT_CS=14 ; in pins_arduino.h
; -DTFT_DC=27 ; in pins_arduino.h
; -DTFT_RST=33 ; in pins_arduino.h
; -DSPI_FREQUENCY=40000000 ; in TFTe_SPI.h
; -DSPI_READ_FREQUENCY=20000000 ; in TFTe_SPI.h
; -DSPI_TOUCH_FREQUENCY=2500000 ; in TFTe_SPI.h
-D TFT_BL=32
-D SMOOTH_FONT=1
-D TFT_BACKLIGHT_ON=1
-D LOAD_GFXFF=1
-D GFXFF=1
-D TOUCH_CS=1
lib_deps =
${common.lib_deps}
bodmer/TFT_eSPI @ 2.3.59 ; https://github.com/Bodmer/TFT_eSPI.git
build_type = ${common.build_type}
[env:tft_espi] ; TTGO
; This is configured for a TTGO T-Display using the tft_espi drivers
; it should work for other tft_espi compatible displays, if you tweak
; the defines appropriately. See the documentation for TFT_eSPI at
; https://github.com/Bodmer/TFT_eSPI
board = esp32dev
platform = ${common.platform}
platform_packages = ${common.platform_packages}
framework = ${common.framework}
; The T-Display has 4MB of flash. Use huge_app to get us the space - but
; at the cost of being able to update OTA.
board_build.partitions = huge_app.csv
upload_speed = ${common.upload_speed}
monitor_speed = ${common.monitor_speed}
monitor_filters = ${common.monitor_filters}
; This can/will be set in tools/get_port.py
; upload_port = -DUSBC
; monitor_port = -DUSBC
monitor_dtr = ${common.monitor_dtr}
monitor_rts = ${common.monitor_rts}
build_flags =
${common.build_flags}
-DLCD_TFT_ESPI=1
-DDISABLE_OTA_UPDATES=1
-DUSER_SETUP_LOADED=1
-DST7789_DRIVER=1
-DTFT_WIDTH=135
-DTFT_HEIGHT=240
-DCGRAM_OFFSET=1
-DTFT_MISO=-1
-DTFT_MOSI=19
-DTFT_SCLK=18
-DTFT_CS=5
-DTFT_DC=16
-DTFT_RST=23
-DTFT_BL=4
-DLOAD_GFXFF=1
lib_deps =
${common.lib_deps}
bodmer/TFT_eSPI @ 2.3.59 ; https://github.com/Bodmer/TFT_eSPI.git
build_type = ${common.build_type}