Pikio 2 - Pico 2 Keystroke Automator

What is Pikio 2?

'Pikio', pronounced /'pikkjo/, the Italian name for woodpecker, is a Pico 2 based computer gadget that repeats keystrokes, like a woodpecker hitting the keyboard. You can use it to automate tasks by configuring the key to be pressed, by default ENTER, on the code.py attached.
The system consists of a Pico 2 board, a simple program, a container for the board printed in 3D in the shape of a small keyboard, the USB connection cable. Thanks to Pico 2 small footprint is similar in size to an Amanzon Firestick. The project was originally born from the need to automate the repeated pressing of the 'Carriage Return' button with repetition every second.
Version 2 with Pico 2 as Hardware and Circuit Pyhton as software is part of the 2026 #PicoBuilders challenge.
Version 1, which is based on Arduino and comes with a larger box, is still available; see https://www.thingiverse.com/thing:5660891.

How to use it?

Print the 2 pieces mini-keyboard shaped box and put inside the Pico 2. The Pico 2 needs to be initially set up with circuitpython-raspberry_pi_pico2. Copy the uf2 file on the main root folder and wait for reboot. Then load the pico.py file in the new main root folder and unzip adafruit_hid library files in the new library folder. More info on standard Pico 2 setup are available on circuitpython.org. Be careful that just 5 seconds after you've configured the device, and every time you connect it via usb to a PC, it starts sending keystrokes, so if you need to change the program you have to stop execution before.
Also note that once the casing is closed by inserting the In part into the Out part, the result is very compact and difficult to disassemble. If necessary, you can use two toothpicks to push the In part out of the Out part through the holes next to the USB.