Skip to content

Launch Voice Chat globally from the right C152 button - #1

Open
zhangyibing001 wants to merge 2 commits into
digitsisyph:mainfrom
zhangyibing001:contrib/right-mic-switch-act11
Open

Launch Voice Chat globally from the right C152 button#1
zhangyibing001 wants to merge 2 commits into
digitsisyph:mainfrom
zhangyibing001:contrib/right-mic-switch-act11

Conversation

@zhangyibing001

@zhangyibing001 zhangyibing001 commented Aug 14, 2026

Copy link
Copy Markdown

Summary

  • Preserve the existing Codex vendor HID collection and report ID 6 as the first top-level collection, so macOS and the ChatGPT bridge continue to identify Codex Micro by usage page 0xFF00.
  • Add a standard keyboard collection on report ID 1.
  • Make the right C152 button send Control-Option-Command-V on press and a zeroed release report. This lets the button invoke ChatGPT Voice Chat even when another app is in front, once the same global shortcut is registered in ChatGPT.
  • Keep the left ACT10 Push to talk action, Send ACT12 action, analog events, host RPC, and private quota GATT path unchanged.
  • Add a host-side keyboard-report test, CI coverage, and English/Chinese setup and architecture documentation.

Setup note

Because this changes the BLE HID report descriptor, existing users must forget Codex Micro in macOS Bluetooth settings and pair it again. If Keyboard Setup Assistant appears, it can be closed.

In ChatGPT, open Settings > Voice > Voice chat hotkey, capture the right-button shortcut, and keep ChatGPT running in the background.

Validation

  • All seven native simulator tests pass, including the new Voice Chat keyboard report test.
  • pio run -e m5stack-stopwatch succeeds.
  • The corrected firmware was flashed to a physical C152, verified against the built image, and emitted CODEX_MICRO_STOPWATCH_READY.
  • After a clean macOS re-pair, hidutil reports PrimaryUsagePage 65280 / PrimaryUsage 1.
  • IORegistry reports both device usage pairs: vendor 65280/1 and keyboard 1/6, with vendor report ID 6 and keyboard report ID 1.
  • End-to-end cross-application Voice Chat launch still requires a manual ChatGPT hotkey capture/runtime test; it is not claimed as automated validation.

No API tokens, account data, or request payloads are stored or transmitted by this change.

Preserve physical press and release timing for ACT11 so ChatGPT can distinguish Voice Chat tap and hold gestures.
@zhangyibing001 zhangyibing001 changed the title Map the right C152 button to the second microphone switch Launch Voice Chat globally from the right C152 button Aug 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant