RPi Pico macro-keyboard project which uses a PS/2 keyboard's input to send keystrokes to the computer.
To build, you need Pico SDK in your path, arm compilers (see CMakeLists.txt) and copy pico_sdk_import.cmake in the folder, next to ps2_macro_keyboard.cpp!
The Windows USB descriptor problem is finally solved! It was an infinite loop problem, avoiding the attention of mine and all AIs I chatted with about the problem. Note: when multiple keys are pressed on the PS/2 keyboard, the display and the terminal is working correctly, but only 1 USB signal is sent. This is not affecting macro functionality, only means that only 1 macro can be sent at a time.
You need a soldering iron, wire cutter and preferably a PS/2 jack to connect the keyboard. See the wiring folder for more info.
- Install and set up Pico SDK (add to path!)
- clone the repo
- change the keyboard macro definitions by editing usb_codes.h (you can remove unnecessary keys by actually removing them from that list) - see example at F1 and F2
- edit the CMakeLists.txt (if necessary)
- enable/disable modules by editing the macros below
- mkdir build, cd build
- cmake ..
- make
- copy the .uf2 file to the Pico (hold bootsel button and plug in)
- enjoy.
- Install VS Code
- Install the Pi Pico SDK
- Open "Pico - Visual Studio Code" from the Start menu
- Install the "Raspberry Pi Pico" VS Code extension
- Import the project, wait for the SDK to install and configure
- Navigate to the extension, there you can configure CMake and build the project.
- For customizing the macro definitions see step 2 from the previous section.
Some info about PS/2 protocol: hungarian, english 1, english 2
