BlueGamepad
Emulate a gamepad with ESP32 compatible to PC/Android/Switch
Install / Use
/learn @eolvera85/BlueGamepadREADME
BlueGamepad
Emulate a gamepad with ESP32 compatible to PC/Android/Switch
This project merges two source codes to form a single firmware to be compatible with both Nintendo Switch and PC/Android. To switch between Nintendo Switch mode and PC/Android mode can be done by two options:
- Pin 15 (Button to GND)
- Holding the (+) / START button for 10 seconds
Default GPIOs
| GPIO | Button | | ----------------- | ----- | | 3 | Stick Button Right / R3 | | 4 | Capture | | 5 | X | | 12 | ( - ) / SELECT | | 13 | ( + ) / START | | 14 | Dpad Right | | 15 | Sync | | 16 | Home | | 17 | Y | | 18 | A | | 19 | B | | 21 | Stick Button Left / L3 | | 22 | R / R1 | | 23 | L / L1 | | 25 | Dpad Up | | 26 | Dpad Down | | 27 | Dpad Left | | 32 | ZL / L2 | | 33 | ZR / R2 | | 34 | Right Stick X Axis | | 35 | Right Stick Y Axis | | 36 | Left Stick X Axis | | 39 | Left Stick Y Axis |
Soft-buttons:
To complement the miss of some buttons in the switch controller, virtual buttons are defined
| Emulated button | Obtained by pressing | | ----------------- | ----------------- | | L | (+) + B | | R | (+) + A | | ZL | (+) + L | | ZR | (+) + R | | Capture | (+) + Dpad Left | | Home | (+) + Dpad Right |
Resources used:
- https://github.com/HandHeldLegend/HOJA-LIB-ESP32
- https://github.com/lemmingDev/ESP32-BLE-Gamepad
- https://github.com/h2zero/esp-nimble-cpp
- https://github.com/h2zero/esp-nimble-component
Related Skills
node-connect
354.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
112.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
354.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
354.0kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
