# Esp32c3 Iine Gamepad

ESP32-C3 BLE host demo for the IINE L1241 gamepad, with a Chinese LCD interface, pairing, live input visualization and protocol tests.

把一块 ESP32-C3 工牌改成良值口袋手柄 Pro L1241 的测试台：工牌自己扫附近的 BLE 设备、用工牌上的实体键选中并配对，之后双摇杆、十字键和 12 个按键的状态实时画在 240×320 的彩屏上，短按还有浅蓝色提示。

- id: 1ikemcflurry-esp32c3-iine-gamepad
- author: 1ikeMcFlurry
- repository: https://github.com/1ikeMcFlurry/esp32c3-iine-gamepad
- license: MIT
- shape: square
- scenes: games, art
- boards: ESP32-C3
- browser_playable: no
- preview: Project screenshots
- html: https://esp32gallery.com/projects/1ikemcflurry-esp32c3-iine-gamepad/
- html_zh: https://esp32gallery.com/zh/projects/1ikemcflurry-esp32c3-iine-gamepad/
- json: https://esp32gallery.com/data/catalog/projects/1ikemcflurry-esp32c3-iine-gamepad.json

## Hardware

Supported hardware: ESP32-C3. Confirm the exact board revision and pin map in the upstream repository.

支持硬件：ESP32-C3。烧录前请在上游仓库核对板卡版本与引脚定义。

## English

```
An ESP32-C3 badge is turned into a bench for the IINE pocket controller Pro L1241: the badge scans for nearby BLE devices, a physical key picks and pairs one, and both sticks, the D-pad and twelve buttons are drawn live on a 240×320 colour screen with a pale blue hint on each press. A second press flips to a raw data page showing input bytes, changed bits and a receive counter. The controller speaks a private BLE input channel, verified only on this model and one identity string, and unknown devices keep their raw diagnostics rather than being forced into a known mapping. Confidence comes from 358 recorded input replays and 20,000 random HID descriptors, plus ASan and UBSan.
```

## 中文

```
把一块 ESP32-C3 工牌改成良值口袋手柄 Pro L1241 的测试台：工牌自己扫附近的 BLE 设备、用工牌上的实体键选中并配对，之后双摇杆、十字键和 12 个按键的状态实时画在 240×320 的彩屏上，短按还有浅蓝色提示。再按一下能翻到原始数据页，看输入字节、变化高亮和收包计数。L1241 走的是厂家私有的 BLE 输入通道，只在 L1241 这一款和特定身份串上验过，未知设备保留原始诊断而不硬套映射。断言不少：358 条实机输入回放、两万个随机 HID 描述符，再加 ASan 和 UBSan。
```
