This is based on Sekigon's Keyboard Quantizer mini-full branch and GongYiLiao's branch supporting the Adafruit RP2040 with USB Host
As GongYiLiao mentioned, the change from Sekigon's original code was to specify DP+
Pin as 16 (thus DP-
is 17) and the 5V pin (18) in c1_usbh.c
:
// Initialize USB host stack on core1
void c1_usbh(void) {
pio_usb_configuration_t pio_cfg = PIO_USB_DEFAULT_CONFIG;
pio_cfg.pin_dp = 16;
// pio_cfg.extra_error_retry_count = 10;
pio_cfg.skip_alarm_pool = true;
tuh_configure(1, TUH_CFGID_RPI_PIO_USB_CONFIGURATION, &pio_cfg);
gpio_init(18);
gpio_set_dir(18, GPIO_OUT);
gpio_put(18, 1);
tuh_init(1);
c1_start_timer();
}
GongYiLiao included layouts for:
and added custom DVORAK and other keymaps for those devices.
This distribution is generic, and includes layouts and generic keymaps for :
keymaps/ansi
keymaps/tartarus
After setup your qmk envorinment, clone this repository to keyboards/converter
then run
git clone https://github.com/whyaaronbailey/adafruitrp2040_usbh.git _your_qmk_repo/keyboards/converter/adafruit_rp2040_usbh
cd _your_qmk_repo/keyboards/converter/adafruit_rp2040_usbh
cd ../../..
make converter/adafruit_rp2040_usbh:_your_choice:uf2
where _your_choice
can be ansi
for generic 104-key ANSI keyboard and tartarus
for the Razer Tartarus V2