blob: 5abe2c1b65afe19bf4f00d95817e38896be19c96 (
plain)
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
|
# hello-t-energy-s3
Minimal test sketch for LilyGo T-Energy-S3 board.
## Setup (one-time)
```bash
# Add ESP32 board manager
arduino-cli config init
arduino-cli config add board_manager.additional_urls https://espressif.github.io/arduino-esp32/package_esp32_index.json
# Install ESP32 core
arduino-cli core update-index
arduino-cli core install esp32:esp32
```
## Build & Upload
```bash
# Find your port
arduino-cli board list
# Compile
arduino-cli compile --fqbn "esp32:esp32:esp32s3:CDCOnBoot=cdc,FlashSize=16M,PSRAM=opi" .
# Upload (replace /dev/ttyACM0 with your port)
arduino-cli upload --fqbn "esp32:esp32:esp32s3:CDCOnBoot=cdc,FlashSize=16M,PSRAM=opi" --port /dev/ttyACM0 .
# Monitor
arduino-cli monitor --port /dev/ttyACM0 --config baudrate=115200
```
## Expected Output
```
Hello T-Energy-S3!
Battery: 4200 mV
Battery: 4200 mV
...
```
|