-
-
Notifications
You must be signed in to change notification settings - Fork 48
/
platformio.ini
155 lines (143 loc) · 4.45 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
; 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]
; lilygo_t5_47 | epdiy | native | m5_paper
default_envs = lilygo_t5_47
[common]
platform = espressif32 @ 3.3.2
framework = espidf
board = esp32dev
;upload_port = /dev/cu.SLAB_USBtoUART
;monitor_port = /dev/cu.SLAB_USBtoUART
monitor_speed = 115200
monitor_filters = esp32_exception_decoder
lib_deps =
https://github.com/leethomason/tinyxml2.git
build_flags =
; maximim speed
-Ofast
; needed to stop the png library tying to pull in Arduino.h
-D__MCUXPRESSO
; stop miniz conflicting with zlib which is used by the png library
-DMINIZ_NO_ZLIB_COMPATIBLE_NAMES
; device has PRSRAM
; and should be used for ram intensive display work
-DBOARD_HAS_PSRAM
; Logging. Leave enabled for first builds and debugging. Comment to disable
-D LOG_ENABLED
[esp32_common]
platform = ${common.platform}
framework = ${common.framework}
board = ${common.board}
;upload_port = ${common.upload_port}
;monitor_port = ${common.monitor_port}
monitor_speed = ${common.monitor_speed}
monitor_filters = ${common.monitor_filters}
build_flags = ${common.build_flags}
lib_deps = ${common.lib_deps}
board_build.partitions = partitions.csv
[env:lilygo_t5_47]
extends = esp32_common
build_flags =
${common.build_flags}
; Based on the EPDIY with some minor changes
-DBOARD_TYPE_LILIGO_T5_47
; Setup display format and model via build flags
-DCONFIG_EPD_DISPLAY_TYPE_ED047TC2
-DCONFIG_EPD_BOARD_REVISION_LILYGO_T5_47
; setup the pins for the SDCard
-DSD_CARD_PIN_NUM_MISO=GPIO_NUM_14
-DSD_CARD_PIN_NUM_MOSI=GPIO_NUM_13
-DSD_CARD_PIN_NUM_CLK=GPIO_NUM_15
-DSD_CARD_PIN_NUM_CS=GPIO_NUM_12
; the adc channel that is connected to the battery voltage divider - this is GPIO_NUM_36
-DBATTERY_ADC_CHANNEL=ADC1_CHANNEL_0
; use SPIFFS - experimental feature
-D USE_SPIFFS
; Touch configuration
-D USE_L58_TOUCH
-D CONFIG_TOUCH_SDA=15
-D CONFIG_TOUCH_SDL=14
-D CONFIG_TOUCH_INT=13
-D CONFIG_I2C_MASTER_FREQUENCY=50000
-D CONFIG_FT6X36_DEBUG=0
[env:epdiy]
extends = esp32_common
build_flags =
${common.build_flags}
; It's an EPDIY board
-DBOARD_TYPE_EPDIY
; Setup display format and model via build flags
-D CONFIG_EPD_DISPLAY_TYPE_ED060XC3
-D CONFIG_EPD_BOARD_REVISION_V6
-D CONFIG_EPD_DRIVER_V6_VCOM=1580
; use SPIFFS - experimental feature
; IMPORTANT: If this parameter is commented then it defaults to use SD Card and 4 GPIOs need to be used for SPI
-D USE_SPIFFS
; setup the pins for the SDCard
-DSD_CARD_PIN_NUM_MISO=GPIO_NUM_36
-DSD_CARD_PIN_NUM_MOSI=GPIO_NUM_0
-DSD_CARD_PIN_NUM_CLK=GPIO_NUM_13
-DSD_CARD_PIN_NUM_CS=GPIO_NUM_14
; Adc channel that is connected to the battery voltage divider - this is GPIO_NUM_34 in EPDiy V6
; Commenting this it will not show the battery level indicator
-D BATTERY_ADC_CHANNEL=ADC1_CHANNEL_6
; Touch configuration
; V6: Disable touch for this test and update Board
;-D USE_L58_TOUCH
-D CONFIG_TOUCH_SDA=0
-D CONFIG_TOUCH_SDL=0
-D CONFIG_TOUCH_INT=0
-D CONFIG_I2C_MASTER_FREQUENCY=50000
-D CONFIG_FT6X36_DEBUG=0
lib_ignore =
touch
FT6X36
[env:m5_paper]
extends = esp32_common
build_flags =
${common.build_flags}
; This is an M5 EPD display
-DBOARD_TYPE_M5_PAPER
; Setup display format and model via build flags - we're only using part of the epdiy codebase
; mainly the drawing code - but these settings will get us to compile and give us the correct
; display size
-DCONFIG_EPD_DISPLAY_TYPE_ED047TC2
-DCONFIG_EPD_BOARD_REVISION_LILYGO_T5_47
; setup the pins for the SDCard
-DSD_CARD_PIN_NUM_MISO=GPIO_NUM_13
-DSD_CARD_PIN_NUM_MOSI=GPIO_NUM_12
-DSD_CARD_PIN_NUM_CLK=GPIO_NUM_14
-DSD_CARD_PIN_NUM_CS=GPIO_NUM_4
; the adc channel that is connected to the battery voltage divider - this is GPIO_NUM_35
-DBATTERY_ADC_CHANNEL=ADC1_CHANNEL_7
; use SPIFFS - experimental feature
;-D USE_SPIFFS
lib_ignore =
touch
FT6X36
[env:native]
platform = native
test_build_project_src = false
targets = test
# enable C++11 extensions
build_flags =
-std=c++11
-D__MCUXPRESSO
lib_deps =
https://github.com/leethomason/tinyxml2.git
lib_ignore =
touch
epdiy
sd_card
spiffs
FT6X36
m5Paper
debug_test = *