forked from nicpottier/gnat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
platformio.ini
162 lines (154 loc) · 3.8 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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
; 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]
[env:m5stick]
platform = espressif32
board = m5stick-c
framework = arduino
monitor_filters = time, colorize, log2file, esp32_exception_decoder
monitor_speed = 115200
build_type = debug
extra_scripts =
pre:shared/generate_assets.py
pre:shared/get_version.py
post:shared/populate_gh_pages.py
build_flags =
-Os
-DTFT_BACKLIGHT_ON=0
-DM5_STICK
-DDISABLE_ALL_LIBRARY_WARNINGS
-Werror
-DMENU_BUTTON_PIN=37
lib_deps =
h2zero/NimBLE-Arduino@^1.4.0
m5stack/M5StickCPlus@^0.0.8
ottowinter/ESPAsyncWebServer-esphome@^3.0.0
[env:ttgo]
platform = [email protected]
board = esp32dev
framework = arduino
monitor_filters = time, colorize, log2file, esp32_exception_decoder
monitor_speed = 115200
build_type = debug
extra_scripts =
pre:shared/generate_assets.py
pre:shared/get_version.py
post:shared/populate_gh_pages.py
build_flags =
-Os
-DUSER_SETUP_LOADED=1
-DST7789_DRIVER=1
-DTFT_WIDTH=135
-DTFT_HEIGHT=240
-DCGRAM_OFFSET=1
-DTFT_MISO=-1
-DTFT_MOSI=19
-DTFT_SCLK=18
-DTFT_CS=5
-DTFT_DC=16
-DTFT_RST=23
-DTFT_BL=4
-DTFT_BACKLIGHT_ON=0
-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=40000000
-DSPI_READ_FREQUENCY=6000000
-DDISABLE_ALL_LIBRARY_WARNINGS
-DTTGO
-Werror
-DMENU_BUTTON_PIN=35
lib_deps =
h2zero/NimBLE-Arduino@^1.4.0
bodmer/TFT_eSPI@^2.4.75
ottowinter/ESPAsyncWebServer-esphome@^3.0.0
[env:ttgo-s3]
platform = espressif32
board = esp32-s3-devkitc-1
framework = arduino
monitor_filters = time, colorize, log2file, esp32_exception_decoder
monitor_speed = 115200
extra_scripts =
pre:shared/generate_assets.py
pre:shared/get_version.py
post:shared/populate_gh_pages.py
build_flags =
-DBOARD_HAS_PSRAM
-DARDUINO_USB_MODE=1
-DARDUINO_USB_CDC_ON_BOOT=1
-Os
;-Werror custom tft_espi library has a bunch of warnings, would be nice to remove those so we could turn this back on
-DMENU_BUTTON_PIN=0
-DDISABLE_ALL_LIBRARY_WARNINGS
-DDISABLE_SERIAL_TIMEOUT
; -DCONFIG_NIMBLE_CPP_LOG_LEVEL=2 ; more verbose BLE logging
-DTTGO
board_build.partitions = default_8MB.csv
board_build.arduino.memory_type = qio_opi
board_build.flash_size = 8MB
lib_deps =
h2zero/NimBLE-Arduino@^1.4.0
ottowinter/ESPAsyncWebServer-esphome@^3.0.0
lib_extra_dirs = ttgo_s3_libs ; needs custom drivers for parallel interface
[env:jczn-28r]
platform = espressif32
board = esp32dev
framework = arduino
monitor_filters = time, colorize, log2file, esp32_exception_decoder
monitor_speed = 115200
upload_speed = 921600
build_type = debug
extra_scripts =
pre:shared/generate_assets.py
pre:shared/get_version.py
post:shared/populate_gh_pages.py
build_flags =
-Os
-DUSER_SETUP_LOADED=1
-DILI9341_2_DRIVER=1
-DTFT_ROTATION=0
-DTFT_WIDTH=240
-DTFT_HEIGHT=320
-DTFT_BACKLIGHT_ON=LOW
-DTFT_RST=-1
-DTFT_SCLK=14
-DTFT_DC=2
-DTFT_CS=15
-DTFT_MOSI=13
-DTFT_MISO=12
-DTFT_BL=21
-DMENU_BUTTON_PIN=0
-DSUPPORT_TRANSACTIONS=1
-DSPI_FREQUENCY=55000000
-DSPI_READ_FREQUENCY=20000000
; touch is not yet used
-DTOUCH_CS=33
; -DTOUCH_SCLK=25
; -DTOUCH_MOSI=32
; -DTOUCH_MISO=39
; -DTOUCH_DRIVER=0x2046 ; XPT2606 Resistive touch panel driver
; -DTOUCH_SDA=-1
; -DTOUCH_SCL=-1
; -DTOUCH_IRQ=36
; -DSPI_TOUCH_FREQUENCY=2500000
-DLOAD_GLCD=1
-DLOAD_GFXFF=1
-Djczn-28r
lib_deps =
h2zero/NimBLE-Arduino@^1.4.0
bodmer/TFT_eSPI
ottowinter/ESPAsyncWebServer-esphome@^3.0.0
Wire
lib_ignore =