A simple USB HID keyboard emulator using ESP32-S3. Press the BOOT button to automatically type predetermined text.
- USB HID keyboard emulation
- Single button operation (built-in BOOT button)
- LED feedback
- Customizable text output
- Board: ESP32-S3 DevKit
- Button: GPIO 0 (built-in BOOT button)
- LED: GPIO 2 (built-in LED)
Press the BOOT button and the device will type:
git add . && git commit -m 'auto-save' && git push
- PlatformIO
- ESP32-S3 board
- Clone this repository
- Connect your ESP32-S3 via USB
- Build and upload:
pio run --target upload
If the automatic upload fails, manually put the ESP32-S3 into bootloader mode:
- Hold down the BOOT button (GPIO 0)
- While holding BOOT, press and release the RESET (EN) button
- Release the BOOT button after 1-2 seconds
- The device is now in bootloader mode
- Immediately run the upload command:
pio run --target upload
Tip: You'll see "Connecting...." dots when esptool is trying to connect - that's when you should enter boot mode.
To change the text that gets typed, edit src/main.cpp line 13:
const char* TEXT_TO_TYPE = "your custom text here";Then rebuild and upload:
pio run --target upload- Plug the ESP32-S3 into your computer
- Wait for the LED to blink 3 times (device ready)
- Open any text editor or terminal
- Press the BOOT button
- The device will type your predetermined text
- Platform: ESP32-S3
- Framework: Arduino
- USB Mode: HID Keyboard
- Flash Usage: 8.8% (292,837 bytes)
- RAM Usage: 9.4% (30,732 bytes)
See platformio.ini for build configuration.
MIT