-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplatformio.ini
More file actions
115 lines (110 loc) · 2.71 KB
/
platformio.ini
File metadata and controls
115 lines (110 loc) · 2.71 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
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
; 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 = esp32dev, pn5180
[env:esp32dev]
platform = espressif32
board = esp32dev
framework = arduino
board_build.partitions = huge_app.csv
monitor_speed = 115200
monitor_filters = esp32_exception_decoder
test_ignore = *
extra_scripts =
pre:scripts/inject_version.py
pre:scripts/convert_logo.py
post:scripts/move_esp32_binaries.py
lib_deps =
bodmer/TFT_eSPI @ ^2.5.43
nitek/XPT2046_Bitbang_Slim @ ^2.0.0
lvgl/lvgl @ ^9.1.0
miguelbalboa/MFRC522 @ ^1.4.11
bblanchon/ArduinoJson @ ^7.0.4
sgoudsme/tinycbor @ ^0.6.0
https://github.com/ATrappmann/PN5180-Library.git
build_flags =
-D CONFIG_NFC_BUSY=27
-D USER_SETUP_LOADED=1
-D ILI9341_2_DRIVER=1
-D TFT_MISO=12
-D TFT_MOSI=13
-D TFT_SCLK=14
-D TFT_CS=15
-D TFT_DC=2
-D TFT_RST=-1
-D TFT_BL=21
-D TFT_BACKLIGHT_ON=HIGH
-D LOAD_GLCD=1
-D LOAD_FONT2=1
-D LOAD_FONT4=1
-D LOAD_GFXFF=1
-D SMOOTH_FONT=1
-D SPI_FREQUENCY=55000000
-D SPI_READ_FREQUENCY=20000000
-D TOUCH_MOSI=32
-D TOUCH_MISO=39
-D TOUCH_CLK=25
-D TOUCH_CS=33
-D LV_CONF_SKIP
-D LV_COLOR_DEPTH=16
-D LV_USE_TFT_ESPI=1
-D USE_HSPI_PORT
-D LV_USE_STDLIB_MALLOC=LV_STDLIB_CLIB
-D LV_USE_STDLIB_STRING=LV_STDLIB_CLIB
-D LV_USE_STDLIB_SPRINTF=LV_STDLIB_CLIB
[env:pn5180]
extends = env:esp32dev
build_flags =
${env:esp32dev.build_flags}
-D USE_PN5180
[env:desktop]
platform = native
test_framework = unity
build_flags =
-D NATIVE_TEST
build_src_filter = +<*> -<ui/> -<nfc/> -<main.cpp>
lib_deps =
bblanchon/ArduinoJson@^7.0.4
sgoudsme/tinycbor@^0.6.0
https://github.com/ATrappmann/PN5180-Library.git
test_ignore = test_embedded
[env:test_embedded]
extends = env:esp32dev
build_src_filter = +<*> -<main.cpp> -<ui/> -<nfc/>
test_ignore = test_desktop*
test_build_src = true
[env:simulator]
platform = native
extra_scripts =
pre:scripts/inject_version.py
pre:scripts/convert_logo.py
post:scripts/move_sim_binary.py
lib_compat_mode = off
build_flags =
-D USE_SDL2
-D LV_CONF_SKIP
-D LV_USE_TFT_ESPI=0
-D LV_USE_OS=LV_OS_PTHREAD
-D LV_USE_SDL
-D LV_SDL_INCLUDE_PATH="\"SDL2/SDL.h\""
-D LV_USE_STDLIB_MALLOC=LV_STDLIB_BUILTIN
-D LV_USE_STDLIB_STRING=LV_STDLIB_BUILTIN
-D LV_USE_STDLIB_SPRINTF=LV_STDLIB_BUILTIN
-D LV_MEM_SIZE=128*1024U
-I/usr/include/SDL2
-lSDL2
-ldl
-lcurl
-lmbedcrypto
lib_deps =
lvgl/lvgl@^9.1.0
bblanchon/ArduinoJson@^7.0.4
sgoudsme/tinycbor@^0.6.0
build_src_filter = +<*> -<nfc/> -<serial/> -<power/>