-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplatformio.ini
More file actions
74 lines (69 loc) · 3.13 KB
/
Copy pathplatformio.ini
File metadata and controls
74 lines (69 loc) · 3.13 KB
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
; ESPanelHA — ESP32 AMOLED touch panel for Home Assistant (multi-board firmware)
;
; One [env:*] per supported board. The board profile is selected at compile
; time via the -D BOARD_* flag (see src/board/BoardConfig.h). Application code
; (net / ha / ui) is board-agnostic and never changes between environments.
;
; The pioarduino platform fork is used instead of the official espressif32
; because it ships Arduino-ESP32 3.x (IDF 5.x), which is required for the
; ESP32-C6. Pin the version below to keep builds reproducible.
[platformio]
default_envs = s3_amoled_18
; ---------------------------------------------------------------------------
; Shared configuration for every board
; ---------------------------------------------------------------------------
[env]
platform = https://github.com/pioarduino/platform-espressif32/releases/download/53.03.13/platform-espressif32.zip
framework = arduino
monitor_speed = 115200
monitor_filters = esp32_exception_decoder, time
; Pre-build: gzip the web SPA (web/src/*) into include/web_assets.h.
extra_scripts = pre:scripts/gen_web_assets.py
build_flags =
-D LV_CONF_INCLUDE_SIMPLE
-D LV_LVGL_H_INCLUDE_SIMPLE ; generated fonts include "lvgl.h" directly
-I include
-Wall
lib_deps =
moononournation/GFX Library for Arduino @ ^1.5.0
lvgl/lvgl @ ^8.4.0
links2004/WebSockets @ ^2.6.1
bblanchon/ArduinoJson @ ^7.2.0
tzapu/WiFiManager @ ^2.0.17
ESP32Async/ESPAsyncWebServer @ ^3.6.0
ESP32Async/AsyncTCP @ ^3.3.2
board_build.filesystem = littlefs
; ---------------------------------------------------------------------------
; Waveshare ESP32-S3 Touch AMOLED 1.8" (368x448, SH8601 QSPI, FT3168 touch)
; Reference board for the MVP.
; ---------------------------------------------------------------------------
[env:s3_amoled_18]
board = esp32-s3-devkitc-1
board_build.partitions = partitions/app_littlefs.csv
board_build.flash_mode = qio
board_upload.flash_size = 16MB
board_build.arduino.memory_type = qio_opi ; enable Octal PSRAM
# DEBUG_I2C_SCAN / DEBUG_WIFI_SCAN print the I2C addresses and the visible WiFi
# networks at boot — handy for bring-up; remove once everything is confirmed.
build_flags =
${env.build_flags}
-D BOARD_S3_AMOLED_18
-D BOARD_HAS_PSRAM
-D ARDUINO_USB_CDC_ON_BOOT=1
-D DEBUG_I2C_SCAN
-D DEBUG_WIFI_SCAN
; ---------------------------------------------------------------------------
; Waveshare ESP32-C6 Touch AMOLED 1.8" (368x448, SH8601 QSPI, FT3168 touch)
; Single-core RISC-V, no PSRAM — validates the constrained port early.
; ---------------------------------------------------------------------------
[env:c6_amoled_18]
board = esp32-c6-devkitc-1
board_build.partitions = partitions/app_littlefs.csv
build_flags =
${env.build_flags}
-D BOARD_C6_AMOLED_18
; ---------------------------------------------------------------------------
; Additional boards (2.16" 480x480, 1.75" 466x466, 2.41" 536x240) are added
; here the same way: one [env:*] + one matching profile header. Controllers
; (CO5300 / RM690B0) and pinout must be verified from the Waveshare schematics.
; ---------------------------------------------------------------------------