-
Notifications
You must be signed in to change notification settings - Fork 1
/
platformio.ini
41 lines (40 loc) · 1.38 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
; 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
[env:esp32dev]
platform = espressif32
board = esp32dev
framework = arduino
lib_deps = TFT_eSPI
build_flags =
;###############################################################
; TFT_eSPI library setting here (no need to edit library files):
;###############################################################
-D USER_SETUP_LOADED=1 ; Set this settings as valid
-D ILI9341_DRIVER=1 ; Select ili9341 driver
-D TFT_MISO=19 ; Define SPI pins
-D TFT_MOSI=23
-D TFT_SCLK=18
-D TFT_CS=15
-D TFT_DC=2 ; Data/Comand pin
-D TFT_RST=-1 ; Reset pin
-D TOUCH_CS=4 ; Define Touch pin
-D SPI_FREQUENCY=80000000 ; Set SPI frequency
-D SPI_READ_FREQUENCY=20000000
-D SPI_TOUCH_FREQUENCY=2000000
-D LOAD_GLCD=1 ; Load Fonts
-D LOAD_FONT2=1
-D LOAD_FONT4=1
-D LOAD_FONT6=1
-D LOAD_FONT7=1
-D LOAD_FONT8=1
-D LOAD_GFXFF=1
-D SMOOTH_FONT=1
monitor_port=COM13
monitor_speed=115200