A usb, maybe bluetooth, based controller built from scratch. From scratch, like everything down to the chip. I know some controllers are based off the stm32 chips, like the 8bitdo NES30 Pros.
More specifically what I'm looking for, is to build a controller like a modern (DS3/4, XB360/One) controller, but with 6 action buttons. I'm looking to build this for a RetroPie build, so I don't have to map 3/6 button controllers (3do, N64, Genesis/Megadrive 3/6, and Saturn) to the shoulder buttons.
This is purely for ease of use in emulators, and for educational purposes in learning how to make a controller from scratch and programming it.