forked from lanrat/homeplate
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathplatformio.ini
140 lines (121 loc) · 4.21 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]
default_envs = inkplate6color
; set the below to add an "include" dir to the build path
include_dir =
[env]
; default enviroments for inkplate devices
platform = espressif32
framework = arduino
monitor_speed = 115200
board = esp32dev
; CPU Frequency. Max for ESP32: 240000000L
board_build.f_cpu = 240000000L
board_build.partitions = min_spiffs.csv ; use SD card for storage and use the rest of flash for larger apps
; Until there is a specific Inkplate10 board definition we need to ensure
; ARDUINO_ESP32_DEV is not set, as it will be always prioritized by the library
; thinking it is an Inkplate 6 (which still has this board name for BC reasons).
build_unflags =
-DARDUINO_ESP32_DEV
lib_deps =
; LIB @ [^]VERSION ('^' means latest version with same major version number)
; 1.2.3 - an exact version number. Use only this exact version
; ^1.2.3 - any compatible version (exact version for 1.x.x versions)
; ~1.2.3 - any version with the same major and minor versions, and an equal or greater patch version
; >1.2.3 - any version greater than 1.2.3. >=, <, and <= are also possible
; >0.1.0,!=0.2.0,<0.3.0 - any version greater than 0.1.0, not equal to 0.2.0 and less than 0.3.0
https://github.com/e-radionicacom/Inkplate-Arduino-library#7.0.0
arduino-libraries/NTPClient @ 3.2.1 ; NTP client
fbiego/ESP32Time @ 2.0.0 ; for syncing RTC to intenral clock
jchristensen/Timezone @ 1.2.4 ; for timezone and DST calculations
marvinroger/AsyncMqttClient @ 0.9.0 ; FOR MQTT
bblanchon/ArduinoJson @ 6.19.4 ; for JSON
; set the default target to compile, upload, and monitor
targets = upload, monitor
monitor_filters = time, esp32_exception_decoder, default
build_flags =
-DBOARD_HAS_PSRAM
-mfix-esp32-psram-cache-issue
-DCONFIG_FREERTOS_CHECK_STACKOVERFLOW_PTRVAL
; sets configCHECK_FOR_STACK_OVERFLOW = 1, helps detect stack overflows
[env:inkplate6color]
build_flags =
${env.build_flags}
-DARDUINO_INKPLATECOLOR
[env:inkplate10]
build_flags =
${env.build_flags}
-DARDUINO_INKPLATE10
[env:inkplate10v2]
build_flags =
${env.build_flags}
-DARDUINO_INKPLATE10V2
[env:inkplate2]
build_flags =
${env.build_flags}
-DARDUINO_INKPLATE2
; What to do here? a 10 and a 6color
[env:debug]
build_type = debug
debug_tool = esp-prog ;BK added to overcome? Error: unable to find a matching CMSIS-DAP device
platform = espressif32
framework = arduino
board = esp32dev
monitor_speed = 115200
upload_protocol = esp-prog
build_flags =
${env.build_flags}
-DARDUINO_INKPLATECOLOR ; change if debugging another board
-DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_DEBUG
; build_type = debug
; debug levels
; ARDUHAL_LOG_LEVEL_NONE
; ARDUHAL_LOG_LEVEL_ERROR
; ARDUHAL_LOG_LEVEL_WARN *default*
; ARDUHAL_LOG_LEVEL_INFO
; ARDUHAL_LOG_LEVEL_DEBUG
; ARDUHAL_LOG_LEVEL_VERBOSE
[env:ota2]
extends = env:inkplate2
targets = upload
; for OTA
; host machine much be reachable from ESP
; might need to set partitions sometime
upload_port = homeplate.local ; change this to your device's name/IP
upload_protocol = espota
upload_flags =
--host_port=8266 ; this port must be allowed through the firewall from the ESP to this computer
[env:ota6color]
extends = env:inkplate6color
targets = upload
; for OTA
; host machine much be reachable from ESP
; might need to set partitions sometime
upload_port = homeplate.local ; change this to your device's name/IP
upload_protocol = espota
upload_flags =
--host_port=8266 ; this port must be allowed through the firewall from the ESP to this computer
[env:ota10]
extends = env:inkplate10
targets = upload
; for OTA
; host machine much be reachable from ESP
; might need to set partitions sometime
upload_port = homeplate.local ; change this to your device's name/IP
upload_protocol = espota
upload_flags =
--host_port=8266 ; this port must be allowed through the firewall from the ESP to this computer
[env:vcom2]
extends = env:inkplate2
lib_deps =
e-radionicacom/InkplateLibrary#7.0.0
build_src_filter= -<*> +<../vcom_src/>
[env:vcom6color]
extends = env:inkplate6color
lib_deps =
e-radionicacom/InkplateLibrary#7.0.0
build_src_filter= -<*> +<../vcom_src/>
[env:vcom10]
extends = env:inkplate10
lib_deps =
e-radionicacom/InkplateLibrary#7.0.0
build_src_filter= -<*> +<../vcom_src/>