-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathplatformio.ini
178 lines (172 loc) · 4.39 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
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
[platformio]
default_envs = knobby
[env]
board = ttgo-t1
framework = arduino, espidf
platform = espressif32 @ 6.7.0
platform_packages =
framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#2.0.17
board_build.embed_files =
src/GillSans24.vlw
src/icomoon24.vlw
src/icomoon31.vlw
src/x509_crt_bundle
board_build.embed_txtfiles =
src/index.html
board_build.flash_mode = dio
board_build.partitions = partitions.csv
monitor_filters = default, esp32_exception_decoder
monitor_speed = 115200
upload_protocol = esptool
upload_speed = 921600
[common]
build_flags =
-Os
-DARDUINO_ARCH_ESP32=y
-DARDUINO=100
-DESP32=1
-DSMOOTH_FONT=1
-DUSE_CONFIGURABLE_DNS=0
-DUSE_STATIC_IP_CONFIG_IN_CP=0
-DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_INFO
!echo "-DGIT_VERSION='\""$(git describe --match="" --dirty --always)"\"'"
! [ "$GITHUB_REF_TYPE" = "tag" ] && echo "-DKNOBBY_VERSION='\""$GITHUB_REF_NAME"\"'" || echo "-DKNOBBY_VERSION='\""$(git describe --match="" --dirty --always)"\"'"
-DPLATFORMIO_ENV='"$PIOENV"'
-DKNOBBY_FIRMWARE_BUCKET='"https://knobby.s3.us-west-2.amazonaws.com/"'
-DKNOBBY_FIRMWARE_PATH='"firmware/" "$PIOENV" ".bin"'
lib_deps =
ArduinoJson=https://github.com/bblanchon/ArduinoJson.git#6.x
bodmer/TJpg_Decoder@ ^1.1.0
esphome/Improv @ ^1.2.2
TFT_eSPI=https://github.com/quadule/TFT_eSPI.git#066c4adcd95679da94e87221c30ab973048d71e4
ESP Async WebServer=https://github.com/quadule/ESPAsyncWebServer.git#431f854fb9dca1442d44fe7c00dd5a1ffe2a6924
madhephaestus/ESP32Encoder @ ^0.9.0
ESPAsync_WiFiManager=https://github.com/quadule/ESPAsync_WiFiManager.git#673dcded29336a8a88f4b7d87b519497aacf9261
ESPAsyncDNSServer=https://github.com/khoih-prog/ESPAsyncDNSServer.git#119dd3ce1b639a5314aac219cf5a00d29946ea47
OneButton=https://github.com/mathertel/OneButton.git#eb583d713a0f83446ad8cb7343d0d204652b8871
[env:knobby]
build_flags =
${common.build_flags}
-DSPI_FREQUENCY=40000000
-DSPI_READ_FREQUENCY=6000000
-DADC_EN=14
-DADC_PIN=34
-DROTARY_ENCODER_A_PIN=12
-DROTARY_ENCODER_B_PIN=13
-DROTARY_ENCODER_BUTTON_PIN=15
-DROTARY_ENCODER_PULSE_COUNT=4
-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
lib_deps =
${common.lib_deps}
[env:tdisplay-s3]
board = lilygo-t-display-s3
build_flags =
${common.build_flags}
-DARDUINO_USB_CDC_ON_BOOT=1
-DADC_EN=-1
-DADC_PIN=4
-DBOARD_HAS_PSRAM=1
-DCONFIG_IDF_TARGET_ESP32S3=1
-DPOWER_ON_PIN=15
-DROTARY_ENCODER_A_PIN=2
-DROTARY_ENCODER_B_PIN=3
-DROTARY_ENCODER_BUTTON_PIN=1
-DROTARY_ENCODER_PULSE_COUNT=4
-DUSER_SETUP_LOADED=1
-DST7789_DRIVER=1
-DTFT_INVERSION_ON=1
-DTFT_PARALLEL_8_BIT=1
-DTFT_WIDTH=170
-DTFT_HEIGHT=320
-DTFT_D0=39
-DTFT_D1=40
-DTFT_D2=41
-DTFT_D3=42
-DTFT_D4=45
-DTFT_D5=46
-DTFT_D6=47
-DTFT_D7=48
-DTFT_WR=8
-DTFT_RD=9
-DTFT_CS=6
-DTFT_DC=7
-DTFT_RST=5
-DTFT_BL=38
lib_deps =
${common.lib_deps}
[env:tembed]
board = lilygo-t-display-s3
build_flags =
${common.build_flags}
-DARDUINO_USB_CDC_ON_BOOT=1
-DLILYGO_TEMBED_S3=1
-DSPI_FREQUENCY=40000000
-DSPI_READ_FREQUENCY=20000000
-DADC_EN=-1
-DADC_PIN=4
-DBOARD_HAS_PSRAM=1
-DCONFIG_IDF_TARGET_ESP32S3=1
-DPOWER_ON_PIN=46
-DROTARY_ENCODER_A_PIN=1
-DROTARY_ENCODER_B_PIN=2
-DROTARY_ENCODER_BUTTON_PIN=0
-DROTARY_ENCODER_PULSE_COUNT=2
-DUSE_FSPI_PORT=1
-DUSER_SETUP_LOADED=1
-DST7789_DRIVER=1
-DTFT_RGB_ORDER=1
-DTFT_BACKLIGHT_ON=1
-DTFT_INVERSION_ON=1
-DTFT_WIDTH=170
-DTFT_HEIGHT=320
-DTFT_MISO=-1
-DTFT_MOSI=11
-DTFT_SCLK=12
-DTFT_CS=10
-DTFT_DC=13
-DTFT_RST=9
-DTFT_BL=15
lib_deps =
${common.lib_deps}
[env:twatch]
build_flags =
${common.build_flags}
-Wno-error=maybe-uninitialized
-Wno-error=unused-const-variable
-Wno-error=class-memaccess
-DLILYGO_WATCH_2019_WITH_TOUCH=1
-DLILYGO_WATCH_HAS_DISPLAY=1
-DEXTERNAL_TFT_ESPI_LIBRARY=1
-DSPI_FREQUENCY=40000000
-DSPI_READ_FREQUENCY=6000000
-DADC_EN=-1
-DADC_PIN=-1
-DROTARY_ENCODER_A_PIN=33
-DROTARY_ENCODER_B_PIN=26
-DROTARY_ENCODER_BUTTON_PIN=34
-DROTARY_ENCODER_PULSE_COUNT=2
-DUSER_SETUP_LOADED=1
-DST7789_DRIVER=1
-DTFT_WIDTH=240
-DTFT_HEIGHT=240
-DTFT_MISO=-1
-DTFT_MOSI=19
-DTFT_SCLK=18
-DTFT_CS=5
-DTFT_DC=27
-DTFT_RST=-1
-DTFT_BL=12
lib_deps =
${common.lib_deps}
xinyuan-lilygo/TTGO TWatch Library @ ^1.4.1