I am doing a school project, which involves making a program that with the help of a Rasbperry pi pico and some push buttons, make a mouse. But apparently I need the usb_hid library to host my usb but I can't find it.
I've been looking for the library for days to do the pip install, but I can't find it anywhere
from machine import Pin
import usb_hid <----
import time as t
from adafruit_hid.mouse import Mouse
pulsador_uno = Pin(3, Pin.IN, Pin.PULL_UP) #declaramos la ubicacion del pin del pulsador uno pulsador_dos = Pin(7, Pin.IN, Pin.PULL_UP)
#declaramos la ubicacion del pin del pulsador dos pulsador_tres = Pin(11, Pin.IN, Pin.PULL_UP) #declaramos la ubicacion del pin del pulsador tres
LEFT_BUTTON= 1 m = Mouse(usb_hid.devices) #creamos un objeto de mouse, para luego utilizarlo en el main()
def main():
if not pulsador_uno.value() or not pulsador_dos.value() or not pulsador_tres.value():
print('Button pressed!')
m.click(Mouse.LEFT_BUTTON)
else:
print('Button not pressed!')
t.sleep(3)
while True:
main()
result:
ImportError: no module named 'usb_hid'