Skip to content

Instantly share code, notes, and snippets.

@rcarteraz
Forked from dglaude/code.py
Created October 15, 2022 18:58
Show Gist options
  • Save rcarteraz/2fc74b255f9bf09f37e3356ff3d316fe to your computer and use it in GitHub Desktop.
Save rcarteraz/2fc74b255f9bf09f37e3356ff3d316fe to your computer and use it in GitHub Desktop.
PASsive aggRESiVE writING with CirCUITPYthon (i diD IT oN A QT pY M0)
import usb_hid
from adafruit_hid.keyboard import Keyboard
from adafruit_hid.keycode import Keycode
import time
import random
# Initialize Keyboard
kbd = Keyboard(usb_hid.devices)
# Press and release CapsLock in loop.
while True:
kbd.send(Keycode.CAPS_LOCK)
time.sleep(random.random())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment