forked from lanrat/homeplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
platformio.ini
98 lines (83 loc) · 3.18 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
[platformio]
default_envs = inkplate10
; 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
board_build.partitions = partitions_custom.csv
board_build.filesystem = littlefs
; 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
-std=gnu++11
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/squix78/json-streaming-parser.git
https://github.com/e-radionicacom/Inkplate-Arduino-library @ 5.7.1
arduino-libraries/NTPClient @ 3.2.1 ; NTP client
paulstoffregen/Time @ 1.6.1
jchristensen/Timezone @ 1.2.4 ; for timezone and DST calculations
ricmoo/QRCode @ 0.0.1 ; for QR code
https://github.com/SolderedElectronics/Soldered-SHTC3-Temperature-Humidity-Sensor-Arduino-Library.git
; set the default target to compile, upload, and monitor
targets = upload, monitor
monitor_filters = esp32_exception_decoder
; build_type = debug
build_flags =
-DBOARD_HAS_PSRAM
-mfix-esp32-psram-cache-issue
-DCONFIG_FREERTOS_CHECK_STACKOVERFLOW_PTRVAL
-std=gnu++2a
; sets configCHECK_FOR_STACK_OVERFLOW = 1, helps detect stack overflows
[env:inkplate10]
; settings for inkplate10
build_flags =
${env.build_flags}
-DARDUINO_INKPLATE10
[env:debug]
build_type = debug
build_flags =
${env.build_flags}
-DARDUINO_INKPLATE10 ; 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:ota]
; TODO: migrate this to a custom target
extends = env:inkplate10 ; change if using another board
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_port = /dev/ttyUSB*
upload_speed = 921600
upload_protocol = espota
upload_flags =
--host_port=8266 ; this port must be allowed through the firewall from the ESP to this computer
[env:vcom]
; if using a diffent device be sure to change the extended enviroment
extends = env:inkplate10
lib_deps =
e-radionicacom/InkplateLibrary @ 5.7.1
build_src_filter= -<*> +<../vcom_src/>