No0ne / ps2x2pico

USB keyboard/mouse to PS/2 interface converter using a Raspberry Pi Pico
MIT License
249 stars 41 forks source link

Debug press key #47

Closed destroyer-dcf closed 4 months ago

destroyer-dcf commented 4 months ago

Hello, great project. Please could you indicate more specifically the configurations, connections and hardware necessary to be able to debug when a key is pressed. Thank you

No0ne commented 4 months ago

You'll need a serial connection from GPIO0 (and GND) to another computer, either through a USB adapter cable or directly.

You can use a Debug Probe like this: https://www.raspberrypi.com/documentation/microcontrollers/debug-probe.html#serial-connections

Or you can use Raspberry Pi connected to GPIO15. Then enable the serial port via raspi-config, reboot and run this:

stty -F /dev/ttyS0 115200 raw
cat /dev/ttyS0

Or you can use another Pi Pico connected to GPIO17 and running this: https://github.com/Noltari/pico-uart-bridge

destroyer-dcf commented 4 months ago

Thank you!!!.. debug working.... Another question, would it be possible for it to work on rp2040 Zero board

No0ne commented 4 months ago

Cool! Yes, this should work with any rp2040 board. Maybe you have to compile it with your own different GPIOs.