Skip to content

Instantly share code, notes, and snippets.

@JeremySCook
Created October 4, 2022 19:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JeremySCook/616bed8f1a7ee9b6d76f744c4471c590 to your computer and use it in GitHub Desktop.
Save JeremySCook/616bed8f1a7ee9b6d76f744c4471c590 to your computer and use it in GitHub Desktop.
import time
import usb_hid
from adafruit_hid.mouse import Mouse
mouse = Mouse(usb_hid.devices)
while True:
mouse.click(Mouse.LEFT_BUTTON)
time.sleep(1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment