forked from sle118/FreeTouchDeck
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplatformio.ini
156 lines (139 loc) · 3.56 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
; 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 = esp32-touchdown, V1_ILI9488_Resistive, Makerfabs_Capacitive_Touch
src_dir = ./
[common_env_data]
device_comport =
COM6
lib_deps_external =
adafruit/Adafruit GFX Library@^1.10.7
bodmer/TFT_eSPI@^2.3.62
https://github.com/DustinWatts/ESP32-BLE-Keyboard
me-no-dev/ESP Async WebServer@^1.2.3
https://github.com/me-no-dev/AsyncTCP
bblanchon/ArduinoJson@^6.17.3
adafruit/Adafruit BusIO @^1.7.2
https://github.com/DustinWatts/FT6236
https://github.com/lorol/LITTLEFS
https://github.com/Bodmer/TJpg_Decoder
build_flags_common =
-DILI9488_DRIVER=1
-DLOAD_GLCD=1
-DLOAD_FONT2=1
-DLOAD_FONT4=1
-DLOAD_FONT6=1
-DLOAD_FONT7=1
-DLOAD_FONT8=1
-DLOAD_GFXFF=1
-DSMOOTH_FONT=1
-DSCREEN_ROTATION=1
-DFLIP_TOUCH_AXIS
-DINVERSE_Y_TOUCH
-DUSE_PLATFORMIO
-DFTD_VER_MAJ=0
-DFTD_VER_MIN=9
-DFTD_VER_REV=13
[env:esp32-touchdown]
platform = espressif32
framework = arduino
board_upload.flash_size=4MB
board = esp32doit-devkit-v1
board_build.partitions = no_ota.csv
board_build.filesystem = spiffs
monitor_speed = 115200
monitor_port = ${common_env_data.device_comport}
upload_port = ${common_env_data.device_comport}
lib_deps =
${common_env_data.lib_deps_external}
extra_scripts =
tools/littlefsbuilder.py
tools/esp_merge_bin.py
tools/analyze_elf.py
tools/copy_fw.py ; tools/pre:extra_script.py
build_flags =
${common_env_data.build_flags_common}
-DESP32TOUCHDOWN
-DUSECAPTOUCH
-DspeakerPin=GPIO_NUM_26
-DtouchInterruptPin=GPIO_NUM_27
-DSDDAT3=25
-DUSER_SETUP_LOADED=1
-DTFT_MISO=-1
-DTFT_MOSI=23
-DTFT_SCLK=18
-DTFT_CS=15
-DTFT_DC=2
-DTFT_RST=4
-DTFT_BL=32
-DTFT_BLACKLIGHT_ON=HIGH
-DTOUCH_CS=21
-DSPI_FREQUENCY=40000000
-DSPI_FREQUENCY=40000000
-DSPI_READ_FREQUENCY=20000000
-DSPI_TOUCH_FREQUENCY=2500000
[env:V1_ILI9488_Resistive]
platform = espressif32
board = esp32doit-devkit-v1
board_build.partitions = no_ota.csv
board_build.filesystem = spiffs
monitor_speed = 115200
framework = arduino
monitor_port = ${common_env_data.device_comport}
upload_port = ${common_env_data.device_comport}
lib_deps =
${common_env_data.lib_deps_external}
extra_scripts = tools/copy_fw.py ; tools/pre:extra_script.py
build_flags =
${common_env_data.build_flags_common}
-DESP32DEVKIT
-DtouchInterruptPin=GPIO_NUM_27
-DUSER_SETUP_LOADED=1
-DTFT_BL=32
-DTFT_BACKLIGHT_ON=HIGH
-DTFT_MISO=19
-DTFT_MOSI=23
-DTFT_SCLK=18
-DTFT_CS=15
-DTFT_DC=2
-DTFT_RST=4
-DTOUCH_CS=21
-DSPI_FREQUENCY=27000000
-DSPI_READ_FREQUENCY=20000000
-DSPI_TOUCH_FREQUENCY=2500000
[env:Makerfabs_Capacitive_Touch]
platform = espressif32
board = esp32doit-devkit-v1
board_build.partitions = no_ota.csv
board_build.filesystem = spiffs
monitor_speed = 115200
framework = arduino
monitor_port = ${common_env_data.device_comport}
upload_port = ${common_env_data.device_comport}
lib_deps =
${common_env_data.lib_deps_external}
extra_scripts = tools/copy_fw.py ; tools/pre:extra_script.py
build_flags =
${common_env_data.build_flags_common}
-DMAKERFABTOUCH
-DUSER_SETUP_LOADED=1
-DTFT_MISO=12
-DTFT_MOSI=13
-DTFT_SCLK=14
-DTFT_CS=15
-DTFT_DC=33
-DTFT_RST=-1
-DTOUCH_CS=35
-DSPI_FREQUENCY=27000000
-DSPI_READ_FREQUENCY=20000000
-DCUSTOM_TOUCH_SDA=26
-DCUSTOM_TOUCH_SCL=27
-DUSECAPTOUCH
-DtouchInterruptPin=GPIO_NUM_0