forked from kripthor/io433
-
Notifications
You must be signed in to change notification settings - Fork 1
/
platformio.ini
135 lines (126 loc) · 2.48 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
[platformio]
default_envs =
io433_StickCP2
io433_StickCP1_1
io433_T-Embed
[env:io433_StickCP2]
platform = [email protected]
board = m5stick-c
framework = arduino
lib_deps =
lennarthennigs/Button2@^1.6.1
bodmer/TFT_eSPI@^2.5.43
monitor_speed = 115200
build_flags =
-DCP2=1
-DBUTTON_UP=39
-DBUTTON_DOWN=37
-DUSER_SETUP_LOADED=1
-DST7789_2_DRIVER=1
-DTFT_RGB_ORDER=1
-DTFT_WIDTH=135
-DTFT_HEIGHT=240
-DTFT_BACKLIGHT_ON=1
-DTFT_CS=5
-DTFT_DC=14
-DTFT_RST=12
-DTOUCH_CS=-1
-DTFT_MOSI=15
-DTFT_SCLK=13
-DTFT_BL=27
-DLOAD_GFXFF=1
-DSMOOTH_FONT=1
-DSPI_FREQUENCY=20000000
-DSPI_READ_FREQUENCY=20000000
-DSPI_TOUCH_FREQUENCY=2500000
-DCCGDO0=25
-DCCGDO2=-1
-DCCSCK=0
-DCCMISO=33
-DCCMOSI=32
-DCCCSN=26
[env:io433_StickCP1_1]
platform = espressif32
board = m5stick-c
framework = arduino
lib_deps =
lennarthennigs/Button2@^1.6.1
bodmer/TFT_eSPI@^2.5.43
monitor_speed = 115200
build_flags =
-DCP1=1
-DBUTTON_UP=39
-DBUTTON_DOWN=37
-DUSER_SETUP_LOADED=1
-DST7789_2_DRIVER=1
-DTFT_RGB_ORDER=1
-DTFT_WIDTH=135
-DTFT_HEIGHT=240
-DTFT_BACKLIGHT_ON=0
-DTFT_CS=5
-DTFT_DC=23
-DTFT_RST=18
-DTOUCH_CS=-1
-DTFT_MOSI=15
-DTFT_SCLK=13
-DTFT_BL=-1
-DLOAD_GFXFF=1
-DSMOOTH_FONT=1
-DSPI_FREQUENCY=20000000
-DSPI_READ_FREQUENCY=20000000
-DSPI_TOUCH_FREQUENCY=2500000
-DCCGDO0=25
-DCCGDO2=-1
-DCCSCK=0
-DCCMISO=33
-DCCMOSI=32
-DCCCSN=26
[env:io433_T-Embed]
platform = [email protected]
board = lilygo-t-display-s3
monitor_filters = esp32_exception_decoder
framework = arduino
lib_deps =
lennarthennigs/Button2@^1.6.1
bodmer/TFT_eSPI@^2.5.43
https://github.com/lewisxhe/XPowersLib
monitor_speed = 115200
build_flags =
-DEMBED=1
-DBUTTON_UP=6
-DBUTTON_DOWN=0
;TFT_eSPI display
-DUSER_SETUP_LOADED=1
;-DUSE_HSPI_PORT=1
-DST7789_DRIVER=1
-DTFT_WIDTH=170
-DTFT_HEIGHT=320
-DTFT_INVERSION_ON
-DTFT_BL=21
-DTFT_MISO=10
-DTFT_MOSI=9
-DTFT_SCLK=11
-DTFT_CS=41
-DTFT_DC=16
-DTFT_RST=-1
-DTOUCH_CS=12
-DLOAD_GFXFF=1
-DSMOOTH_FONT=1
-DSPI_FREQUENCY=80000000
-DSPI_READ_FREQUENCY=20000000
-DSPI_TOUCH_FREQUENCY=2500000
-DCCGDO0=3
-DCCGDO2=3 # 38
-DCCSCK=11
-DCCMISO=10
-DCCMOSI=9
-DCCCSN=12