-
Notifications
You must be signed in to change notification settings - Fork 0
/
platformio.ini
122 lines (114 loc) · 2.3 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
; 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 = ttgo-lora32-v1
[common]
lib_deps =
build_flags =
-Ofast
[env]
platform = espressif32
framework = arduino
monitor_speed = 115200
upload_speed = 921600
build_type = debug
build_flags = ${common.build_flags}
lib_deps = ${common.lib_deps}
monitor_filters = esp32_exception_decoder
[env:heltec_wifi_kit_32]
board = heltec_wifi_kit_32
lib_deps =
${env.lib_deps}
U8g2
build_flags =
${env.build_flags}
-DDISPLAY_U8G2=1
-DOLED_CLOCK=15
-DOLED_DATA=4
-DOLED_RESET=16
[env:heltec_wifi_kit_32_v2]
board = heltec_wifi_kit_32_v2
lib_deps =
${env.lib_deps}
U8g2
build_flags =
${env.build_flags}
-DDISPLAY_U8G2=1
-DOLED_CLOCK=15
-DOLED_DATA=4
-DOLED_RESET=16
[env:ttgo-lora32-v1]
board = ttgo-lora32-v1
lib_deps =
${env.lib_deps}
TFT_eSPI
build_flags =
${env.build_flags}
-DDISPLAY_TFT_ESPI=1
-DUSER_SETUP_LOADED=1
-DST7789_DRIVER=1
-DTFT_WIDTH=135
-DTFT_HEIGHT=240
-DCGRAM_OFFSET=1
-DTFT_CS=5
-DTFT_DC=16
-DTFT_MOSI=19
-DTFT_SCLK=18
-DTFT_RST=23
-DTFT_BL=4
-DTFT_BACKLIGHT_ON=HIGH
-DLOAD_FONT2=1
-DSPI_FREQUENCY=40000000
-DSPI_READ_FREQUENCY=6000000
[env:esp-wrover-kit]
board = esp-wrover-kit
debug_tool = ftdi
upload_protocol = ftdi
debug_init_break =
lib_deps =
${env.lib_deps}
adafruit/Adafruit BusIO
adafruit/Adafruit GFX Library
espressif/WROVER KIT LCD
Wire
build_flags =
${env.build_flags}
-DDISPLAY_WROVER_KIT_LCD=1
-DLED_BUILTIN_RED=0
-DLED_BUILTIN_GREEN=2
-DLED_BUILTIN_BLUE=4
[env:esp-wrover-kit-tftespi]
board = esp-wrover-kit
debug_tool = ftdi
upload_protocol = ftdi
debug_init_break =
lib_deps =
${env.lib_deps}
TFT_eSPI
build_flags =
${env.build_flags}
-DDISPLAY_TFT_ESPI=1
-DLED_BUILTIN_RED=0
-DLED_BUILTIN_GREEN=2
-DLED_BUILTIN_BLUE=4
-DUSER_SETUP_LOADED=1
-DILI9341_DRIVER=1
-DTFT_WIDTH=320
-DTFT_HEIGHT=240
-DTFT_CS=22
-DTFT_DC=21
-DTFT_MOSI=23
-DTFT_SCLK=19
-DTFT_RST=18
-DTFT_BL=5
-DTFT_BACKLIGHT_ON=LOW
-DLOAD_FONT2=1
-DSPI_FREQUENCY=40000000
-DSPI_READ_FREQUENCY=6000000