-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplatformio.ini
More file actions
180 lines (172 loc) · 5.1 KB
/
Copy pathplatformio.ini
File metadata and controls
180 lines (172 loc) · 5.1 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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
; darksec-pager — WiFi IRC chat client for the LilyGo T-LoRa-Pager
; Joins #DarksecHQ on irc.libera.chat (TLS) — bridges to the darksec web chat.
[env:t-lora-pager]
platform = espressif32@6.5.0
board = esp32-s3-devkitc-1
framework = arduino
monitor_speed = 115200
upload_speed = 460800
; 8MB flash config is proven to boot on this exact chip (darkcell). The 16MB
; config reset-loops before setup(); the app is <1MB so 8MB is plenty.
board_build.flash_size = 8MB
board_build.partitions = default_8MB.csv
; T-Lora-Pager has OPI (octal) PSRAM. Quad flash + octal PSRAM = qio_opi.
; Without this the board builds as the "No PSRAM" variant: psram=0 on every
; boot, no display double-buffer, and less free internal RAM (fragile WiFi/BLE).
board_build.arduino.memory_type = qio_opi
; USB-CDC serial on boot for debug logs over USB.
build_unflags =
-DARDUINO_USB_MODE=0
-DARDUINO_USB_CDC_ON_BOOT=0
build_flags =
-DARDUINO_USB_MODE=1
-DARDUINO_USB_CDC_ON_BOOT=1
-DCORE_DEBUG_LEVEL=3
-DBOARD_HAS_PSRAM
; ---- T-LoRa-Pager hardware (from LilyGo board def) ----
-DPIN_POWER_ON=15
-DBK_BTN=0
-DI2C_SDA=3
-DI2C_SCL=2
-DXL9555_ADDR=0x20
-DKB_I2C_ADDRESS=0x34
-DBQ25896_I2C_ADDRESS=0x6B
; XL9555 expander channels (enable rails)
-DEXPANDS_KB_RST=2
-DEXPANDS_KB_EN=8
-DEXPANDS_SD_EN=12
-DSDCARD_CS=21
-DEXPANDS_LORA_EN=3
-DGPS_TX_PIN=12
-DGPS_RX_PIN=4
-DEXPANDS_GPS_RST=7
-DEXPANDS_GPS_EN=4
-DES8311_ADDR=0x18
-DI2S_DOUT_PIN=45
-DI2S_SDIN_PIN=17
-DI2S_MCLK_PIN=10
-DI2S_BCK_PIN=11
-DI2S_WS_PIN=18
-DEXPANDS_AMP_EN=1
; display (Arduino_GFX ST7796 over HWSPI)
-DTFT_MISO=33
-DTFT_MOSI=34
-DTFT_SCLK=35
-DTFT_CS=38
-DTFT_DC=37
-DTFT_RST=-1
-DTFT_BL=42
-DKEYBOARD_BL=46
; SD card shares the board SPI bus with display/LoRa/NFC.
-DLORA_CS=36
-DNFC_CS=39
-DTFT_WIDTH=222
-DTFT_HEIGHT=480
-DTFT_IPS=1
-DTFT_ROTATION=3
-DTFT_COL_OFS1=49
-DTFT_ROW_OFS1=0
-DTFT_COL_OFS2=49
-DTFT_ROW_OFS2=0
; encoder
-DENCODER_INA=40
-DENCODER_INB=41
-DENCODER_KEY=7
lib_ldf_mode = deep+
lib_deps =
adafruit/Adafruit TCA8418@^1.0.2
mathertel/RotaryEncoder@^1.5.3
moononournation/GFX Library for Arduino@~1.3.0
lewisxhe/XPowersLib@0.3.3
lewisxhe/SensorLib@0.4.1
h2zero/NimBLE-Arduino@^1.4.2
mikalhart/TinyGPSPlus@^1.0.3
ricmoo/QRCode@^0.0.1
[env:t-lora-pager-ota]
extends = env:t-lora-pager
upload_protocol = espota
upload_port = darksec-pager.local
upload_flags =
--auth=changeme
; darksec-pager on the LilyGo T-Deck (screen replacement for a broken T-Pager).
; Pins below are from LilyGo's own reference pinout (Xinyuan-LilyGO/T-Deck
; examples/UnitTest/utilities.h and TDECK_PINS.h).
;
; Flash config: this board's chip physically has 16MB flash (confirmed via
; `esptool.py flash_id`), but declaring flash_size=16MB + partitions=
; default_16MB.csv here reproducibly reset-loops the chip before setup() ever
; runs (esp32-s3-devkitc-1 board profile + espressif32@6.5.0 on this exact
; silicon rev) — the same failure the T-Pager env's comment above already
; documented on this project's other board. 8MB avoids it; the app is <1MB
; so the smaller declared size costs nothing.
[env:t-deck]
platform = espressif32@6.5.0
board = esp32-s3-devkitc-1
framework = arduino
monitor_speed = 115200
upload_speed = 460800
board_build.flash_size = 8MB
board_build.partitions = default_8MB.csv
; USB-CDC serial on boot for debug logs over USB (unverified on T-Deck; if
; the board doesn't enumerate as /dev/ttyACM0, drop these two flags and use
; the UART bridge's /dev/ttyUSB0 instead).
build_unflags =
-DARDUINO_USB_MODE=0
-DARDUINO_USB_CDC_ON_BOOT=0
build_flags =
-DARDUINO_USB_MODE=1
-DARDUINO_USB_CDC_ON_BOOT=1
-DCORE_DEBUG_LEVEL=3
-DBOARD_TDECK=1
; ---- T-Deck hardware (from LilyGo board def) ----
-DPIN_POWER_ON=10
-DI2C_SDA=18
-DI2C_SCL=8
-DKB_I2C_ADDR=0x55
-DKB_INT_PIN=46
-DBAT_ADC_PIN=4
; shared SPI bus peers that must be deselected at boot
-DSD_CS=39
-DSDCARD_CS=39
-DRADIO_CS=9
; display (Arduino_GFX ST7789 over HWSPI) — rotation/offsets are a first
; guess, tune via the on-device Calibrate Screen menu once flashed.
-DTFT_MISO=38
-DTFT_MOSI=41
-DTFT_SCLK=40
-DTFT_CS=12
-DTFT_DC=11
-DTFT_RST=-1
-DTFT_BL=42
-DTFT_WIDTH=240
-DTFT_HEIGHT=320
-DTFT_IPS=1
-DTFT_ROTATION=1
-DTFT_COL_OFS1=0
-DTFT_ROW_OFS1=0
-DTFT_COL_OFS2=0
-DTFT_ROW_OFS2=0
; 5-way trackball (4 direction pins + click, click doubles as BOOT/GPIO0)
-DTB_UP=3
-DTB_DOWN=15
-DTB_LEFT=1
-DTB_RIGHT=2
-DTB_CLICK=0
; PSRAM double-buffering (board_build.arduino.memory_type = qio_opi, like the
; T-Pager env above) is deliberately NOT enabled here yet — this chip's actual
; PSRAM type/presence hasn't been confirmed, and given the flash_size lesson
; above, an incorrect memory_type is a plausible new boot-loop risk. The app's
; existing psramFound() fallback means it runs fine without it (direct render,
; no double-buffer) until this is verified on real hardware and turned on.
lib_ldf_mode = deep+
lib_deps =
moononournation/GFX Library for Arduino@~1.3.0
h2zero/NimBLE-Arduino@^1.4.2
mikalhart/TinyGPSPlus@^1.0.3
ricmoo/QRCode@^0.0.1
[env:t-deck-ota]
extends = env:t-deck
upload_protocol = espota
upload_port = darksec-pager.local
upload_flags =
--auth=changeme