i am currently making an autoclicker script for an samsung galaxy A70 with my raspberry pi pico in micro-python.
This is my code:
import time
import usb_hid
from adafruit_hid.mouse import Mouse
import board
import digitalio
mouse = Mouse(usb_hid.devices)
led = digitalio.DigitalInOut(board.GP25)
led.direction = digitalio.Direction.OUTPUT
led.value = False
time.sleep(25)
mouse.move(y=360)
while True:
led.value = True
mouse.click(mouse.LEFT_BUTTON)
time.sleep(0.01)
The problem i currently have is that the mouse.move tag wont work, it keeps putting the cursor in the middle-bottom of my phone. i already tried using different values for the y coordinate but that doesnt seem to help it. does anyone have any idea how to fix this?