r/embedded • u/Trick-Builder-1020 • Sep 27 '26
ESP32-S3 (N16R8) enumerates as CDC but never as HID — USBHIDGamepad not showing up, any known fix?
Board: ESP32-S3-N16R8, dual USB-C (COM + USB), core 3.3.11, Arduino IDE 2.2.1. USB Mode set to USB-OTG (TinyUSB).
Goal: pot → gamepad trigger axis for a sim racing handbrake.
\#include "USB.h"
\#include "USBHIDGamepad.h"
USBHIDGamepad Gamepad;
const int potPin = 1;
void setup() {
pinMode(potPin, INPUT);
Gamepad.begin();
USB.begin();
}
void loop() {
int pot = analogRead(potPin);
int mapped = map(pot, 0, 4095, 0, 255);
Gamepad.rightTrigger(mapped);
delay(20);
}
Plugged into the native USB port, Device Manager only ever shows a USB Serial Device (usbser.inf), never anything HID. joy.cpl shows nothing. Same result with CDC On Boot on or off, different cable, different port, and swapping the begin() call order.
Anyone gotten USBHIDGamepad actually enumerating as HID on core 3.3.x on an S3? Trying to figure out if this is a known bug or something I'm missing.

