-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathplatformio.ini
135 lines (119 loc) · 3.03 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
; 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]
platform = espressif32@6.6.0 ; TODO: Update to the latest version once TFT_eSPI is fixed
build_type = release
monitor_speed = 115200
monitor_filters =
default
esp32_exception_decoder
colorize
lib_deps =
thijse/ArduinoLog
fbiego/CST816S
lvgl/lvgl
Bodmer/TFT_eSPI
fbiego/ESP32Time
ArduinoJson
jchristensen/movingAvg
lewisxhe/SensorLib
build_unflags =
-DCONFIG_ESP32_REV_MIN
build_flags =
-DCONFIG_ESP32_REV_MIN=3
-D DISABLE_ALL_LIBRARY_WARNINGS
-Wl,--gc-sections
-Os
[env:LilyGo_TWatch_2021]
board = esp32dev
framework = arduino, espidf
board_build.partitions = twatch2021_8MB.csv
board_build.f_flash = 80000000L
board_build.flash_mode = qio
board_build.f_cpu = 240000000L
board_upload.flash_size = 8MB
board_upload.maximum_size = 8388608
lib_deps =
lewisxhe/PCF8563_Library
thijse/ArduinoLog
fbiego/CST816S
lvgl/lvgl
Bodmer/TFT_eSPI
fbiego/ESP32Time
ArduinoJson
jchristensen/movingAvg
lewisxhe/SensorLib
build_flags =
-D LILYGO_TWATCH_2021=1
-D LV_LVGL_H_INCLUDE_SIMPLE
-I ./include # For lv_conf.h
; -D LV_CONF_INCLUDE_SIMPLE
; -D BOARD_HAS_PSRAM
#-mfix-esp32-psram-cache-issue
; -DCONFIG_SPIRAM_ALLOW_NOINIT_SEG_EXTERNAL_MEMORY=1
-D USER_SETUP_LOADED=1 # For TFT_eSPI
-D GC9A01_DRIVER=1
-D TFT_WIDTH=240
-D TFT_HEIGHT=240
-D SPI_FREQUENCY=80000000
-D TFT_MISO=-1
-D TFT_MOSI=13
-D TFT_SCLK=14
-D TFT_CS=15
-D TFT_DC=19
-D TFT_RST=27
-D TFT_LED=21
-D IIC_SDA=26
-D IIC_SCL=25
-D TP_INT=32
-D TP_RST=33
-D BAT_ADC=36
-D IMU_INT1=22
-D IMU_INT2=39
-D MOTOR_PIN1=4
-D CONFIG_PM_ENABLE
[env:Waveshare_ESP32_LCD]
board = esp32-s3-devkitc-1
framework = arduino, espidf
board_build.mcu = esp32s3
board_build.partitions = twatch2021_8MB.csv
board_build.f_flash = 80000000L
board_build.flash_mode = qio
board_build.f_cpu = 240000000L
board_upload.flash_size = 8MB
board_upload.maximum_size = 8388608
build_flags =
-D WAVESHARE_ESP32_LCD=1
-D LV_LVGL_H_INCLUDE_SIMPLE
-I ./include # For lv_conf.h
; -D LV_CONF_INCLUDE_SIMPLE
-D USER_SETUP_LOADED=1 # For TFT_eSPI
-D GC9A01_DRIVER=1
-D TFT_WIDTH=240
-D TFT_HEIGHT=240
-D SPI_FREQUENCY=80000000
-D TFT_MISO=12
-D TFT_MOSI=11
-D TFT_SCLK=10
-D TFT_CS=9
-D TFT_DC=8
-D TFT_RST=14
-D TFT_LED=2
-D IIC_SDA=6
-D IIC_SCL=7
-D TP_INT=5
-D TP_RST=13
-D IMU_INT1=4
-D IMU_INT2=3
-D BAT_ADC=1
; Two battery pins because ESP32-S3 gpios can only do 40mA, and vibration motor is 100mA, so motor is connected to both
-D MOTOR_PIN1=21
-D MOTOR_PIN2=33
-D CONFIG_PM_ENABLE