-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathplatformio.ini
79 lines (64 loc) · 3.13 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
[platformio]
; Set a path to a cache folder
build_dir = C:\PIO_BUILD
libdeps_dir = C:\PIO_LIBDEPS
[env]
platform = espressif32
board = esp32doit-devkit-v1
framework = arduino
board_build.partitions = partition_noOta_1Mapp_3Mspiffs.csv
upload_speed = 921600
; upload_port = COM18
;monitor_port = COM84
monitor_speed = 115200
monitor_filters = esp32_exception_decoder
monitor_echo = yes
build_flags =
-DCORE_DEBUG_LEVEL=5 ; Set to 0 for no debug; saves memory
; Set to 5 for full debug
-Os
lib_deps =
; Wire
SPI
; adafruit/Adafruit BusIO
; adafruit/Adafruit GFX Library
; adafruit/Adafruit ILI9341
; adafruit/Adafruit ST7735 and ST7789 Library
; adafruit/Adafruit SSD1306 ; OLED 128x64
bodmer/TFT_eSPI ; https://registry.platformio.org/libraries/bodmer/TFT_eSPI
; bodmer/TFT_eFEX ; https://registry.platformio.org/libraries/bodmer/TFT_eFEX
; bodmer/JPEGDecoder
FS
extra_scripts =
script_configure_tft_lib.py ; copy configuration files into TFT_eSPI library folder
platformio_version_increment/version_increment_pre.py ; https://github.com/sblantipodi/platformio_version_increment
; ================================================================================================================================
; ================================================================================================================================
; ================================================================================================================================
[env:display_DSP_ST7789]
upload_protocol = esptool
upload_port = COM24
monitor_port = COM24
build_flags =
${env.build_flags}
-D ST7789_DRIVER
; ================================================================================================================================
; ================================================================================================================================
; ================================================================================================================================
[env:display_RELEASE]
upload_protocol = esptool
; ================================================================================================================================
; ================================================================================================================================
; ================================================================================================================================
[env:display_JLINK_debug]
build_type = debug
; https://docs.platformio.org/en/latest/plus/debug-tools/jlink.html
; https://docs.espressif.com/projects/esp-idf/en/v4.2/esp32/api-guides/jtag-debugging/index.html
; https://www.youtube.com/watch?v=psMqilqlrRQ
debug_tool = jlink ; debug over j-link
debug_speed = 5000 ; clock frequency kHz
upload_protocol = jlink ; use jlink also for program upload - comment for EspTool serial connection
debug_init_break = tbreak setup ; stop at the beginning of the program
build_flags =
${env.build_flags}
-D FREE_JTAG_PINS ; reserve pins 12, 13, 14, 15 = skip initialization of the LCD