# How to use Codex to build a USB macropad

Codex wrote firmware for a homemade ESP32-S3 USB macropad. Its maker wired keys, printed the enclosure and published code, CAD and shortcut setup documentation.

Agent: Codex
Tools: Codex, ESP32-S3, PlatformIO, Fusion 360, 3D printer
Category: Hardware
Date: 2026-07-28

Outcome: A functioning unofficial USB macropad was documented with firmware, printable files and a parts list. Wiring and enclosure design were human work; no measured productivity gain is claimed.

## Steps

1. Kashyap bound application shortcuts and selected an ESP32-S3 keyboard interface.
2. Codex generated the firmware while the author hand-wired the keys.
3. The author modeled and printed the enclosure and published firmware, CAD and a parts list.

Human oversight: Kashyap hand-wired the keys, modeled the enclosure in Fusion 360 and bound keyboard shortcuts in the Codex app.

Source: [NishkalKashyap — Reddit](https://www.reddit.com/r/OpenAI/comments/1v94vra/i_built_my_own_diy_codex_micro_over_a_weekend/)

Canonical URL: https://agentsinuse.com/use-cases/codex-to-build-a-usb-macropad/
