-
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) · 2.33 KB
/
Copy pathplatformio.ini
File metadata and controls
74 lines (69 loc) · 2.33 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
; Cardputer ADV (K132-ADV). Stamp-S3A / ESP32-S3FN8, 8MB flash.
[platformio]
default_envs = cardputer-adv
[env:cardputer-adv]
platform = espressif32
board = m5stack-stamps3
framework = arduino
monitor_speed = 115200
board_build.partitions = default_8MB.csv
; M5Cardputer 1.1.1+ is the first release that drives the ADV's TCA8418
; keyboard controller. The original Cardputer used a 74HC138 and the older
; library will not read keys on this board.
lib_deps =
m5stack/M5Cardputer@^1.1.1
m5stack/M5Unified@^0.2.8
m5stack/M5GFX@^0.2.10
bblanchon/ArduinoJson@^7.2.0
; The framework defaults to gnu++11, where a struct with default member
; initializers is not an aggregate, so a view could not be declared as a plain
; brace list.
build_unflags = -std=gnu++11
build_flags =
-std=gnu++17
-DCORE_DEBUG_LEVEL=3
; The boot report goes out the USB-C port, which is wired to the S3's
; native USB. The board sets ARDUINO_USB_MODE=1 but not this, and without
; it the core points Serial at UART0, where nothing on this unit listens.
-DARDUINO_USB_CDC_ON_BOOT=1
; The Arduino loop task runs the TLS handshake, and 8KB of stack is not
; enough headroom for it beside our own frames.
-DARDUINO_LOOP_STACK_SIZE=16384
; The simulator. Same view, ui and store code, running against M5GFX's own SDL
; panel as a Cardputer ADV, so the pixels and the fonts are the real ones. The
; ring around it is shimmed in sim/: keys from SDL, a battery we can set, and a
; network that answers from sim/src/net_sim.cpp.
;
; brew install sdl2
; pio run -e sim -t exec or add --tour for the guided walkthrough
[env:sim]
platform = native
build_type = debug
lib_deps =
m5stack/M5GFX@^0.2.10
bblanchon/ArduinoJson@^7.2.0
build_src_filter =
+<*>
-<main.cpp>
-<net.cpp>
-<jpeg.cpp>
+<../sim/src/*>
-<../sim/src/main_web.cpp>
build_flags =
-std=gnu++17
-O1
-Isrc
-Isim/include
-DM5GFX_BOARD=board_M5CardputerADV
-DM5GFX_SHOW_FRAME
-DM5GFX_SCALE=3
-DM5GFX_BACK_COLOR=0x141416u
-DARDUINOJSON_ENABLE_ARDUINO_STRING=0
-DARDUINOJSON_ENABLE_ARDUINO_STREAM=0
-DARDUINOJSON_ENABLE_PROGMEM=0
; Ask SDL where it is rather than guessing at a homebrew prefix. M5GFX
; probes for <SDL2/SDL.h> first, so the parent directory has to be on the
; path too or it decides this is an unknown platform.
!sdl2-config --cflags
!echo "-I$(sdl2-config --prefix)/include"
!sdl2-config --libs