-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathplatformio.ini
More file actions
152 lines (149 loc) · 3.28 KB
/
platformio.ini
File metadata and controls
152 lines (149 loc) · 3.28 KB
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
; 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:esp32-s3-devkitc-1]
platform = espressif32
board = esp32-s3-devkitc-1
framework = arduino
lib_deps =
SPI
SPIFFS
SD
FS
bodmer/TFT_eSPI
bodmer/JPEGDecoder
bitbank2/JPEGDEC
https://github.com/esp-arduino-libs/ESP32_JPEG
https://github.com/Bodmer/TJpg_Decoder
; board_build.arduino.memory_type = qio_opi
; board_build.arduino.memory_type = dio_opi
build_flags =
; -DBOARD_HAS_PSRAM
; maximum speed!
-Ofast
-DUSE_HSPI_PORT
-DTFT_POWER=GPIO_NUM_43
-DTFT_POWER_ON=LOW
; TFT_eSPI setup
-DUSER_SETUP_LOADED=1
-DTFT_WIDTH=240
-DTFT_HEIGHT=280
-DST7789_DRIVER=1
-DTFT_SCLK=41
-DTFT_MISO=-1
-DTFT_MOSI=40
-DTFT_RST=39
-DTFT_DC=44
-DTFT_CS=42
-DTFT_BL=0
-DLOAD_FONT2=1
-DSPI_FREQUENCY=80000000
; make sure serial output works
-DARDUINO_USB_MODE=1
-DARDUINO_USB_CDC_ON_BOOT=1
-L .pio/libdeps/esp32-s3-devkitc-1/ESP32_JPEG/src/esp32s3
-llibesp_codec.a
; decode exceptions
monitor_filters = esp32_exception_decoder
monitor_speed = 115200
[env:TinyS3]
platform = espressif32
board = um_tinys3
framework = arduino
lib_deps =
SPI
SPIFFS
SD
FS
bodmer/TFT_eSPI
bodmer/JPEGDecoder
bitbank2/JPEGDEC
https://github.com/esp-arduino-libs/ESP32_JPEG
https://github.com/Bodmer/TJpg_Decoder
board_build.arduino.memory_type = dio_opi
build_flags =
; maximum speed!
-Ofast
-DUSE_DMA
-DBOARD_HAS_PSRAM
; TFT_eSPI setup
-DUSER_SETUP_LOADED
-DTFT_WIDTH=240
-DTFT_HEIGHT=280
-DST7789_DRIVER=1
-DTFT_SCLK=6
-DTFT_MISO=8
-DTFT_MOSI=4
-DTFT_RST=5
-DTFT_DC=21
-DTFT_CS=8
-DTFT_BL=7
-DTOUCH_CS=-1
-DTFT_BACKLIGHT_ON=HIGH
-DLOAD_FONT2
-DSPI_FREQUENCY=80000000
; make sure serial output works
-DARDUINO_USB_MODE=1
-DARDUINO_USB_CDC_ON_BOOT=1
-L .pio/libdeps/TinyS3/ESP32_JPEG/src/esp32s3
-llibesp_codec.a
; decode exceptions
monitor_filters = esp32_exception_decoder
monitor_speed = 115200
[env:cheap-yellow-display]
platform = espressif32
board = esp-wrover-kit
framework = arduino
lib_deps =
SPI
SPIFFS
SD
FS
bodmer/TFT_eSPI
bodmer/JPEGDecoder
bitbank2/JPEGDEC
https://github.com/esp-arduino-libs/ESP32_JPEG
https://github.com/Bodmer/TJpg_Decoder
build_flags =
; maximum speed!
-Ofast
; TFT_eSPI setup
-DUSER_SETUP_LOADED=1
-DTFT_WIDTH=240
-DTFT_HEIGHT=320
-DILI9341_2_DRIVER=1
-DTFT_SCLK=14
-DTFT_MISO=12
-DTFT_MOSI=13
-DTFT_RST=-1
-DTFT_DC=2
-DTFT_CS=15
-DTFT_BL=21
-DTFT_BACKLIGHT_ON=HIGH
; -DLOAD_GLCD=1
-DLOAD_FONT2=1
; -DLOAD_FONT4=1
; -DLOAD_FONT6=1
; -DLOAD_FONT7=1
; -DLOAD_FONT8=1
; -DLOAD_GFXFF=1
; -DSMOOTH_FONT=1
-DSPI_FREQUENCY=55000000
-DSPI_READ_FREQUENCY=20000000
-DSPI_TOUCH_FREQUENCY=2500000
; audio settings
-DUSE_DAC_OUTPUT=1
-DDAC_CHANNEL=I2S_DAC_CHANNEL_LEFT_EN
-DSAMPLE_RATE=16000
; link against the jpeg libs
-L .pio/libdeps/cheap-yellow-display/ESP32_JPEG/src/esp32
-llibesp_codec.a
; decode exceptions
monitor_filters = esp32_exception_decoder
monitor_speed = 115200