Releases: ValentinLibouton/Pico-Keystroke-Injection
Releases · ValentinLibouton/Pico-Keystroke-Injection
First version
Raspberry Pi Pico Keyboard Emulator
Description
This project provides a keyboard emulator for the Raspberry Pi Pico. It allows you to automate keyboard inputs using a Belgian keyboard layout. The emulator reads commands from a file and simulates keystrokes on a connected device.
Requirements
Python 3.x
usb_hid library
Adafruit HID library (for Keyboard functionality)
A supported microcontroller (e.g., Raspberry Pi Pico) with CircuitPython
Installation
- Install CircuitPython on your microcontroller: https://circuitpython.org/board/raspberry_pi_pico/
- Download adafruit_hid https://github.com/adafruit/Adafruit_CircuitPython_HID/tree/main/adafruit_hid
- Copy
adafruit_hid
folder,commands.py
,keyboard_layout.py
inlib
folder in Pico - Copy
code.py
inCIRCUITPY
folder - Create inject folder in
CIRCUITPY
folder - Copy the
inject.txt
file and the files you want to write with WRITE command ininject
folder
Usage
- Create a file named
inject.txt
in the./inject
directory and strings you want to process
Example
With a file named some_text.txt containing:
Dear Sir or Madam,
This is the text that will be written
Best regards,
In inject.txt, for example, write:
STRING Hello World!
ENTER
STRING After this key ENTER for a return to the line I greet you
ENTER
STRING Now i sleep during 1 seconds
ENTER
DELAY 1000
STRING and i continue
ENTER
REPLAY 2 5
WRITE some_text.txt
STRING End !