Harvie / ps2dev

Arduino library to emulate PS2 keyboard/mouse
MIT License
114 stars 27 forks source link

Arduino not working/detected #14

Open Vincenzopaolo opened 3 years ago

Vincenzopaolo commented 3 years ago

Hi, i'm currently using an arduino pro micro with the ps2_keyboard_numeric example, but it's not working... I checked in the motherboard bios (MSI X570-A-PRO) and it shows that ps/2 is not connected... I'm currently using pin 3 and 2 for for clock and data ( I even tryed swap them but nothing)... If I understood it well, the example prints the digits infinitely right? Anyway I searched online and is it possible that may I have a different initialization?

Harvie commented 3 years ago

Hi! To be honest i don't remember. Some examples might be broken.

I think you should call keyboard.keyboard_init(); and then keyboard.keyboard_handle(&leds); every 10ms or so, to get everything working properly. it is mentioned in readme.

Harvie commented 3 years ago

if you manage to fix it, please make pull request with fixed example.