Nice example, although not sure if I'm missing something? I've connected a Model F AT keyboard to my RP2040, I can read the scancodes just fine, but when trying to send 0xED to set the LED, the keyboards response is 0xFE (Resend).
@brendenadamczak9283 Жыл бұрын
Interesting? Do you have a logic analyzer to grab whats happening?
@ErTnEc Жыл бұрын
@@brendenadamczak9283 thanks, I actually figured it out not long after my comment.. Whenever you call atk_send_command, you are only ever adding the parity bit when you send the LED state itself, but when you send initial commands (such as PS2_COMMAND_SET_LED), you're not adding the parity bit to the command, so the keyboard fails to acknowledge it.
@fredrikbergquist57342 жыл бұрын
Looking at Gist I can’t find the code for the PIO
@brendenadamczak92832 жыл бұрын
so the pio code is here github.com/brendena/atkPico/releases/tag/v0.1
@salmantechnologies282 Жыл бұрын
Here You are Using Pi_pico as a Device right and our pc will be the host or both host or device kindly tell me about i am learning USB protocol
@brendenadamczak9283 Жыл бұрын
Yep i'm using the pico as a device in this video. In USB there can be lots of usb device but only one host. So if you plugging a usb device into you pc then it's going to be a device.
@fredrikbergquist57342 жыл бұрын
Really nice! Is the timing dependent on clock speed? I am overclocking the Pico, will that be a problem?
@brendenadamczak92832 жыл бұрын
Should work at different speeds. The code has a clock to calc the proper divide.
@syrus3k5 ай бұрын
Lol, I've been bashing my head against a wall and it's very obvious now from your video that I'm putting 5v into the PICO's GPIO with clock and data pins hence it's not working.. whoops.
@csbluechip11 ай бұрын
Another awesome video ...sadly I want to pretend to be a PS/2 mouse/keyboard ...but much was learned :)
@brendenadamczak928311 ай бұрын
Got you covered here too! kzbin.info/www/bejne/d4Wqi3dodt55ocU