Adafruit RP2040 USB Host
USB-to-USB convertor usingThis is based on Sekigon's Keyboard Quantizer mini-full branch
The change made here is 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();
}
Available keymaps
I made some layouts in info.json
and corresponding keymap.c
for DVORAK typist:
- Kinesis Advantage MPC (KB500) under
keymaps/ka500
- Generic ANSI 104 layout under
keymaps/ansi
, test on Topre Type Heaven - Pok3r as an example for 60% keyboard
How to use this repository
After setup your qmk envorinment, clone this repository to keyboards/converter
then run
git clone https://github.com/GongYiLiao/qmk_AdaFruitRp2040USBH.git _your_qmk_repo/keyboards/converter/adafruit_rp2040_usbh
cd _your_qmk_repo/keyboards/converter/adafruit_rp2040_usbh
git submodule update --init --recursive
cd ../../..
make converter/adafruit_rp2040_usbh:_your_choice:uf2
where _your_choice
can be ka500
for Kinesis Advantage MPC (KB500), ansi
for generic 104-key ANSI keyboard and pok3r
if you have a Pok3r keyboard
TODO:
- Make NeoPixel to indicate the current layer