I have a raspberry pi pico w but i want to write some simple code using adafruit_hid to make a auto clicker for cookie clicker on my phone it needs to auto run when i plug it in with no buttons
here is my code at the moment i am new to python dont judge:
This is what i was trying :
import time
from adafruit_hid.mouse import Mouse
LEFT_BUTTON = 1
import usb_hid
mouse = Mouse(usb_hid.hid)
while True:
mouse.click(MouseButton.LEFT_BUTTON)
time.sleep(0.01)
I already have adafruit_hid installed on my lib folder on my rasbery pi pico
Thanks for your help.
Oscar
Oscar Gibson is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.