-
Notifications
You must be signed in to change notification settings - Fork 1
/
platformio.ini
132 lines (123 loc) · 2.47 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
; 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 =
mega2560
uno
ESP32
Nucleo-F411RE
Nucleo-F446RE
#blackpill_f411ce
src_dir = .
include_dir = .
[env]
build_flags =
-Wall
-std=c++17
lib_deps =
prenticedavid/MCUFRIEND_kbv@^3.1.0-Beta
adafruit/Adafruit GFX Library@^1.11.9
bodmer/TFT_eSPI
[env:mega2560]
platform = atmelavr
board = megaatmega2560
framework = arduino
lib_deps =
${env.lib_deps}
build_flags =
${env.build_flags}
monitor_speed = 115200
monitor_echo = yes
[env:uno]
platform = atmelavr
board = uno
framework = arduino
lib_deps =
${env.lib_deps}
build_flags =
${env.build_flags}
monitor_speed = 115200
monitor_echo = yes
[env:ESP32]
platform = espressif32
board = esp32dev
framework = arduino
lib_deps =
${env.lib_deps}
build_flags =
${env.build_flags}
monitor_speed = 115200
monitor_echo = yes
[env:Wemos_D1_Mini32]
platform = espressif32
board = wemos_d1_mini32
framework = arduino
lib_deps =
${env.lib_deps}
build_flags =
${env.build_flags}
-DUSER_SETUP_LOADED=1
-DRPI_DISPLAY_TYPE=1
-DILI9486_DRIVER=1
-DTFT_MISO=23
-DTFT_MOSI=19
-DTFT_SCLK=18
-DTFT_CS=15
-DTFT_DC=2
-DTFT_RST=4
-DTOUCH_CS=22
-DLOAD_GLCD=1
-DLOAD_FONT2=1
-DLOAD_FONT4=1
-DLOAD_FONT6=1
-DLOAD_FONT7=1
-DLOAD_FONT8=1
-DLOAD_GFXFF=1
-DSMOOTH_FONT=1
-DSPI_FREQUENCY=26000000
-DSPI_TOUCH_FREQUENCY=2500000
monitor_speed = 115200
monitor_echo = yes
[env:Nucleo-F446RE]
platform = ststm32
board = nucleo_f446re
framework = arduino
lib_deps =
${env.lib_deps}
upload_protocol = stlink
build_flags =
${env.build_flags}
-std=-Os -g2
monitor_speed = 115200
monitor_echo = yes
[env:Nucleo-F411RE]
platform = ststm32
board = nucleo_f411re
framework = arduino
lib_deps =
${env.lib_deps}
upload_protocol = stlink
build_flags =
${env.build_flags}
-std=-Os -g2
monitor_speed = 115200
monitor_echo = yes
#[env:blackpill_f411ce]
#platform = ststm32
#board = blackpill_f411ce
#framework = arduino
#lib_deps =
# ${env.lib_deps}
# https://github.com/prenticedavid/MCUFRIEND_kbv
# https://github.com/adafruit/Adafruit-GFX-Library
# embeddedartistry/LibPrintf@^1.2.13
# dcc-ex/DCCEXProtocol@^0.0.11
#monitor_speed = 115200
#monitor_echo = yes