Skip to content

Instantly share code, notes, and snippets.

@MrJackus1
MrJackus1 / text2Keyboard.py
Created June 13, 2024 00:24
Converting .txt files into Keyboard presses
import time
import usb_hid
from adafruit_hid.keyboard import Keyboard
#You may have to change this layout depending on your keyboard layout
from keyboard_layout_win_uk import KeyboardLayout
#from keyboard_layout_win_fr import KeyboardLayout #This is for a french keyboard for example.
from keycode_win_uk import Keycode
import digitalio
import board