forked from kike-canaries/canairio_firmware
-
Notifications
You must be signed in to change notification settings - Fork 0
/
platformio.ini
139 lines (124 loc) · 3.12 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
; 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 = TTGO_TDISPLAY
[common]
platform = espressif32
framework = arduino
upload_speed = 1500000
monitor_speed = 115200
version = 0.5.2
revision = 907
target = prod
monitor_filters = time
extra_scripts = pre:prebuild.py
build_flags =
-D CORE_DEBUG_LEVEL=0 # For debugging set to 3 and enable debug mode in the app
-D MIN_PUBLISH_INTERVAL=30 # Minimum interval between clouds updates
-D MAIN_HW_EN_PIN=27 # enable the main hardware pin (main sensor)
-D WAIT_FOR_PM_SENSOR=25 # time of stabilization of PM sensors in seconds
-D EMOTICONS # enable emoticons on OLED version
; -D ENABLE_OTA # disable for memory saving, we have FOTA enable
lib_deps =
bblanchon/ArduinoJson @ 6.19.2
chrisjoyce911/esp32FOTA @ 0.1.6
hpsaturn/CanAirIO Air Quality Sensors Library @ 0.5.4
https://github.com/256dpi/arduino-mqtt.git
https://github.com/tobiasschuerg/InfluxDB-Client-for-Arduino.git
[esp32_common]
platform = espressif32
board = lolin32
framework = ${common.framework}
upload_speed = ${common.upload_speed}
monitor_speed = ${common.monitor_speed}
build_flags = ${common.build_flags}
lib_deps = ${common.lib_deps}
monitor_filters = ${common.monitor_filters}
extra_scripts = ${common.extra_scripts}
board_build.partitions = min_spiffs.csv
[oled_common]
extends = esp32_common
lib_ignore = gui-utils-tft
lib_deps =
${common.lib_deps}
U8g2 @ ^2.28.8
[env:TTGO_T7]
extends = oled_common
board = ttgo-t7-v14-mini32
[env:WEMOSOLED]
extends = oled_common
upload_speed = 921600
[env:HELTEC]
extends = oled_common
upload_speed = 921600
[env:TTGO_TQ]
extends = oled_common
[env:ESP32DEVKIT]
extends = oled_common
upload_speed = 921600
[env:ESP32PICOD4]
extends = oled_common
[env:TTGO_TDISPLAY]
extends = esp32_common
board = esp32dev
lib_ldf_mode = deep
lib_deps =
${common.lib_deps}
bodmer/TFT_eSPI @ 2.4.39
lib_ignore =
gui-utils-oled
build_flags =
${common.build_flags}
-Os
-DUSER_SETUP_LOADED=1
-DST7789_DRIVER=1
-DENABLE_TFT=1
-DTFT_WIDTH=135
-DTFT_HEIGHT=240
-DCGRAM_OFFSET=1
-DTFT_MOSI=19
-DTFT_SCLK=18
-DTFT_CS=5
-DTFT_DC=16
-DTFT_RST=23
-DTFT_BL=4
-DTFT_BACKLIGHT_ON=1
-DLOAD_GLCD=1
-DLOAD_FONT2=1
-DLOAD_FONT4=1
-DLOAD_FONT6=1
-DLOAD_FONT7=1
-DLOAD_FONT8=1
-DLOAD_GFXFF=1
-DSMOOTH_FONT=1
-DSPI_FREQUENCY=40000000
-DSPI_READ_FREQUENCY=6000000
[env:M5STICKCPLUS]
extends = esp32_common
board = esp32dev
lib_ldf_mode = deep
lib_deps =
${common.lib_deps}
https://github.com/hpsaturn/M5StickC-Plus.git
lib_ignore =
gui-utils-oled
[env:M5ATOM]
extends = oled_common
board = esp32dev
lib_ldf_mode = deep
lib_deps =
${oled_common.lib_deps}
fastled/FastLED@^3.5.0
m5stack/M5Atom@^0.0.7
[env:M5PICOD4]
extends = oled_common
build_flags =
${common.build_flags}
-D MAIN_HW_PIN=19