-
Notifications
You must be signed in to change notification settings - Fork 6
/
platformio.ini
211 lines (171 loc) · 4.57 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
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
; 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 = seedlabs_devkit
src_dir = firmware/src
lib_dir = firmware/lib
include_dir = firmware/include
test_dir = firmware/test
data_dir = firmware/data
[env:seedlabs_devkit]
build_flags =
${env.build_flags}
-D SK_ALS=1
-D SK_PROXIMITY=1
-D PIN_SDA=39
-D PIN_SCL=38
-D SK_MQTT_BUFFER_SIZE=2048
-D SK_DISPLAY_ROTATION=0
-D PIN_LED_DATA=12
-D NUM_LEDS=72
-D PIN_UH=8
-D PIN_UL=16
-D PIN_VH=18
-D PIN_VL=7
-D PIN_WH=17
-D PIN_WL=15
-D PIN_MT_DATA=14
-D PIN_MT_CSN=11
-D TFT_RST=10
-D PIN_STRAIN_DO=21
-D PIN_STRAIN_SCK=1
-D DO_AUTOMATIC_MOTOR_CALIBRATION=0
[env]
platform = [email protected]
framework = arduino
board = esp32-s3-devkitc-1-n16r8v
board_build.partitions = ./firmware/partitions-16MB-custom.csv
board_build.filesystem = fatfs
upload_speed = 921600
monitor_speed = 115200
monitor_filters = esp32_exception_decoder
debug_speed = 1200
debug_tool = esp-builtin
lib_deps =
infineon/TLV493D-Magnetic-Sensor @ 1.0.3
bakercp/PacketSerial @ 1.4.0
nanopb/Nanopb @ 0.4.7
fastled/FastLED @ 3.5.0
bogde/HX711 @ 0.7.5
adafruit/Adafruit VEML7700 Library @ 1.1.1
askuric/Simple [email protected]
adafruit/Adafruit_VL53L0X@^1.2.2
knolleary/PubSubClient@^2.8
ayushsharma82/ElegantOTA@^3.1.0
lvgl/lvgl@^8.4.0
lovyan03/LovyanGFX@^1.1.12
https://github.com/carlhampuswall/logging#0.1.0
build_flags =
-D SK_WIFI=1
-D SK_MQTT=1
-D SK_DISPLAY=1
-D SK_LEDS=1
-D SK_STRAIN=1
-D SENSOR_MT6701=1
-D SK_INVERT_ROTATION=1
-D MOTOR_WANZHIDA_ONCE_TOP=1
-D PIN_MT_CLOCK=13
-D ELEGANTOTA_USE_ASYNC_WEBSERVER=0
-D SK_UI_BOOT_MODE=0
-D MONITOR_SPEED=115200
-D SK_FORCE_UART_STREAM=0
-D CONFIG_AUTOSTART_ARDUINO=1
-D PIN_LCD_BACKLIGHT=5
-D TFT_MISO=-1
-D TFT_MOSI=3
-D TFT_SCLK=4
-D TFT_CS=9
-D TFT_DC=2
-D TFT_BL=-1
-D TFT_WIDTH=240
-D TFT_HEIGHT=240
-D USER_SETUP_LOADED=1
-D GC9A01_DRIVER=1
-D CGRAM_OFFSET=1
-D LOAD_GFXFF=1
-D SPI_FREQUENCY=70000000
-D SPI_READ_FREQUENCY=70000000
-D SK_BACKLIGHT_BIT_DEPTH=12
-D MQTT_MAX_PACKET_SIZE=256
-D CORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_NONE
; Not certain why these were here please double check if they are needed, does compile and flash without them
; -D FASTLED_UNUSABLE_PIN_MASK=0x100740LL
; -D SOC_GPIO_VALID_GPIO_MASK=0xFF0EFFFFFF
; -D SOC_GPIO_VALID_OUTPUT_GPIO_MASK=0x30EFFFFFF
-D SK_ELEGANTOTA_PRO=0
-D SOFT_RESET_SECONDS=5
-D HARD_RESET_SECONDS=15
-D RELEASE_VERSION='"DEV"'
-D CALIBRATION_WEIGHT=272
-D PRESS_WEIGHT=250
; Needed for DMA
; -D ESP32_DMA=1 ; already defined in tft_espi add back when remiving tft_espi
-D USE_HSPI_PORT=1
; LVGL
-I ./firmware/src/display
-D LV_CONF_INCLUDE_SIMPLE=1
-D LV_LVGL_H_INCLUDE_SIMPLE=1
-D CONFIG_ESP_COREDUMP_ENABLE_TO_NONE=y
; KNOB ENGAGED TIMEOUT MILISECONDS
-D KNOB_ENGAGED_TIMEOUT_NONE_PHYSICAL=8000
-D KNOB_ENGAGED_TIMEOUT_PHYSICAL=30000
-D MODEL='"SmartKnob DevKit v0.1"'
-D ENABLE_LOGGING=1
-D LOGGING_CUSTOM_INIT_TITLE=MODEL
-D LOGGING_DELAY=1000
[env:seedlabs_devkit_inverted_display]
build_flags =
${env:seedlabs_devkit.build_flags}
-D SK_ALS=0
[env:seedlabs_devkit_github_action_release]
build_flags =
${env:seedlabs_devkit.build_flags}
-D SK_ELEGANTOTA_PRO=1
-D DO_AUTOMATIC_MOTOR_CALIBRATION=1
!echo '-D RELEASE_VERSION=\\"'$RELEASE_VERSION'\\"'
!echo '-D COMMIT_HASH=\\"'$COMMIT_HASH'\\"'
!echo '-D BUILD_TIMESTAMP=\\"'$BUILD_TIMESTAMP'\\"'
lib_deps =
[email protected]:SeedLabs-it/skdk-ota-pro.git
infineon/TLV493D-Magnetic-Sensor @ 1.0.3
bakercp/PacketSerial @ 1.4.0
nanopb/Nanopb @ 0.4.7
fastled/FastLED @ 3.5.0
bogde/HX711 @ 0.7.5
adafruit/Adafruit VEML7700 Library @ 1.1.1
askuric/Simple [email protected]
adafruit/Adafruit_VL53L0X@^1.2.2
knolleary/PubSubClient@^2.8
lvgl/lvgl@^8.4.0
lovyan03/LovyanGFX@^1.1.12
https://github.com/carlhampuswall/logging#0.1.0
[env:seedlabs_legacy]
build_flags =
${env.build_flags}
-D SK_ALS=0
-D SK_PROXIMITY=0
-D SK_DISPLAY_ROTATION=0
-D NUM_LEDS=8
-D PIN_STRAIN_DO=38
-D PIN_UH=20
-D PIN_UL=19
-D PIN_VH=21
-D PIN_VL=17
-D PIN_WH=12
-D PIN_WL=18
-D PIN_LED_DATA=7
-D PIN_SDA=15
-D PIN_SCL=8
-D PIN_MT_DATA=37
-D PIN_MT_CSN=14
-D TFT_RST=6
-D STRAIN_DO=38
-D STRAIN_SCK=2
-D DO_AUTOMATIC_MOTOR_CALIBRATION=0