Skip to content

Commit 241309b

Browse files
Merge pull request #11 from sauloverissimo/esp32-s3/fixes-and-example
2 parents a13bc01 + 23a6422 commit 241309b

37 files changed

Lines changed: 4930 additions & 7 deletions

.gitignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Build artifacts
2+
.pio/
3+
build/
4+
*.o
5+
*.a
6+
*.elf
7+
*.bin
8+
*.map
9+
10+
# IDE
11+
.vscode/
12+
*.swp
13+
*~
14+
15+
# Python
16+
*.pyc
17+
__pycache__/
18+
19+
# Internal working documents (not for upstream)
20+
tusb_ump_esp32s3_handoff.md
21+
tusb_ump_rp2040_handoff.md
22+
*_handoff.md
23+
CHANGES.md
24+
CHANGES_pt-BR.md
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# USB MIDI 2.0 Device — Arduino IDE
2+
3+
ESP32-S3 USB MIDI 2.0 device example using tusb_ump.
4+
Tested on LilyGO T-Display-S3.
5+
6+
## Setup
7+
8+
1. **Board:** ESP32S3 Dev Module
9+
2. **Tools > USB Mode:** USB-OTG (TinyUSB)
10+
3. **Tools > USB CDC On Boot:** Disabled
11+
4. **LovyanGFX:** install via Library Manager
12+
5. **tusb_ump:** copy repo into `~/Arduino/libraries/tusb_ump/`
13+
6. **Build flags:** copy `platform.local.txt.example` as `platform.local.txt` to:
14+
- Linux: `~/.arduino15/packages/esp32/hardware/esp32/<version>/`
15+
- macOS: `~/Library/Arduino15/packages/esp32/hardware/esp32/<version>/`
16+
- Windows: `%LOCALAPPDATA%\Arduino15\packages\esp32\hardware\esp32\<version>\`
17+
7. **Restart Arduino IDE**, then open `tdisplay_s3_midi2.ino` and upload.
18+
19+
## Files
20+
21+
| File | Description |
22+
|------|-------------|
23+
| `tdisplay_s3_midi2.ino` | Main sketch (setup/loop, buttons, UMP RX/TX) |
24+
| `usb_descriptors.cpp` | USB MIDI 2.0 config descriptor (dual alt settings) |
25+
| `UMPDisplay.h` | LovyanGFX display handler |
26+
| `mapping.h` | Pin assignments, colours, layout |
27+
| `platform.local.txt.example` | Build flags template for Arduino IDE |
28+
29+
## Controls
30+
31+
| Button | Action |
32+
|--------|--------|
33+
| BTN1 (GPIO0) | Toggle NoteOn / NoteOff (C5) |
34+
| BTN2 (GPIO14) | Cycle velocity: 32 > 64 > 96 > 127 |
35+
36+
See the [PlatformIO version](../../platformio/tdisplay_s3_midi2/) for an
37+
alternative build setup that doesn't require `platform.local.txt`.

0 commit comments

Comments
 (0)