-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplatformio.ini
134 lines (111 loc) · 3.89 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
; 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 = emulator
extra_configs = config.ini
; ===================================================================================================
; Base Configuration
; ===================================================================================================
[env]
build_flags =
-D LV_LVGL_H_INCLUDE_SIMPLE
-D BUILD_TIMESTAMP=$UNIX_TIME
lib_deps =
lvgl/lvgl@^8.3.9
extra_scripts =
./extra_scripts/websocket_serial.py
; ===================================================================================================
;
; Configuration for ESP32 Terminal from Elecrow
; https://www.elecrow.com/wiki/index.php?title=ESP_Terminal_with_3.5inch_RGB_Capacitive_Touch_Display
;
; ===================================================================================================
[env:esp32terminal]
extends = env
platform = espressif32
board = esp32-s3-devkitc-1 # https://docs.platformio.org/en/stable/boards/espressif32/esp32-s3-devkitc-1.html
framework = arduino
monitor_filters = esp32_exception_decoder
; Overrides from the standard ESP32-S3 Devkit board definition
board_build.arduino.memory_type = qio_opi
board_build.f_flash = 80000000L
board_build.flash_mode = qio
board_upload.flash_size = 16MB
board_build.filesystem = littlefs
lib_deps =
${env.lib_deps}
lovyan03/LovyanGFX@^1.1.7
olikraus/U8g2@^2.35.3
bblanchon/ArduinoJson@^6.21.3 ; https://arduinojson.org/
ottowinter/ESPAsyncWebServer-esphome@^3.0.0 ; https://github.com/me-no-dev/ESPAsyncWebServer
knolleary/PubSubClient@^2.8 ; https://pubsubclient.knolleary.net/
build_src_filter =
+<*>
-<.git/>
-<.svn/>
-<**/emulator/*> ; Don't include the SDL Emulator HAL implementation
build_flags =
${env.build_flags}
-DBOARD_HAS_PSRAM
-DMDNS_NAME='"${wifi.mdns_name}"'
-DOTA_PASSWORD='"${ota.password}"'
-Isrc/arduino/ESP32Terminal
monitor_speed=115200
; ===================================================================================================
;
; Configuration for ESP32 Terminal from Elecrow - with OTA updates
; https://www.elecrow.com/wiki/index.php?title=ESP_Terminal_with_3.5inch_RGB_Capacitive_Touch_Display
;
; ===================================================================================================
[env:esp32terminal_ota]
extends = env:esp32terminal
upload_protocol = espota
upload_port = '${wifi.mdns_name}.local'
upload_flags =
--auth='${ota.password}'
--host_port=55999
; ===================================================================================================
; SDL-based LVGL application emulator
; ===================================================================================================
[env:emulator]
extends = env
platform = native
lib_deps =
${env.lib_deps}
lvgl/lv_drivers@^8.3.0
build_src_filter =
+<*>
+<../.pio/libdeps/emulator/lv_drivers/sdl/**/*> ; Include the SDL driver for lvgl
-<.git/>
-<.svn/>
-<**/arduino/*> ; Don't include the Arduino code
build_flags =
${env.build_flags}
-Og -g -Wl,-Map,${platformio.build_dir}/${this.__env__}/debug.map
; SDL options
-lSDL2
-D USE_SDL
-D SDL_INCLUDE_PATH="\"SDL2/SDL.h\""
-D LV_DRV_NO_CONF
-D SDL_HOR_RES=480
-D SDL_VER_RES=320
-D SDL_ZOOM=2
-D SDL_INCLUDE_PATH="\"SDL2/SDL.h\""
-I.pio/libdeps/emulator/lv_drivers/sdl
-Isrc/emulator/SDLEmulator
[env:test_inmemory_fs]
extends = env
platform = native
debug_test=test_inmemory_fs
lib_deps =
${env.lib_deps}
build_flags =
${env.build_flags}
-Isrc/emulator/SDLEmulator