Bonus: Is there a way for the OS to only recognize it as a mouse/keyboard? I don't even want it show as a "NeoPixel Trinkey M0" under the USB Bus tree. Can I rename it as "Marco's mouse" for example?
My code.py imports:
Code: Select all
import time
import board
import neopixel
import digitalio
import usb_hid
from adafruit_hid.mouse import Mouse
import random
Code: Select all
import usb_hid
import storage
storage.disable_usb_drive()
usb_hid.enable((usb_hid.Device.MOUSE,)) # Enable just MOUSE.