Skip to content

matefon/PicoS2

Repository files navigation

PicoS2

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!

Notes

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.

Building

Wiring.

You need a soldering iron, wire cutter and preferably a PS/2 jack to connect the keyboard. See the wiring folder for more info.

Code

  1. Install and set up Pico SDK (add to path!)
  2. clone the repo
  3. 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
  4. edit the CMakeLists.txt (if necessary)
  5. enable/disable modules by editing the macros below
  6. mkdir build, cd build
  7. cmake ..
  8. make
  9. copy the .uf2 file to the Pico (hold bootsel button and plug in)
  10. enjoy.

On Windows

  1. Install VS Code
  2. Install the Pi Pico SDK
  3. Open "Pico - Visual Studio Code" from the Start menu
  4. Install the "Raspberry Pi Pico" VS Code extension
  5. Import the project, wait for the SDK to install and configure
  6. Navigate to the extension, there you can configure CMake and build the project.
  7. For customizing the macro definitions see step 2 from the previous section.

Some info about PS/2 protocol: hungarian, english 1, english 2

Working keys

The keys that can be read from the PS/2 keyboard. Working keys

I accept any help and suggestions. ko-fi

About

RPi Pico macro-keyboard project which uses a PS/2 keyboard's input to send keystrokes to the computer.

Resources

Stars

Watchers

Forks

Packages

No packages published