forked from micropython/micropython
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Open
Labels
Milestone
Description
CircuitPython version
Adafruit CircuitPython 9.2.0 on 2024-10-28; Adafruit NeoPixel Trinkey M0 with samd21e18
Code/REPL
#import board
#import touchio
#import neopixel
#import time
#import storage
import supervisor
#import usb_cdc
#pixel_pin = board.NEOPIXEL
#num_pixels = 4
#top_touch = touchio.TouchIn(board.TOUCH1)
#bot_touch = touchio.TouchIn(board.TOUCH2)
#pixels = neopixel.NeoPixel(pixel_pin, num_pixels, brightness=0.01, auto_write=True)
supervisor.set_usb_identification('Logitech, Inc.', 'Unifying Receiver', 1133, 50475)
Behavior
boot.py output:
Traceback (most recent call last):
File "boot.py", line 15, in <module>
NotImplementedError:
Description
I wanted my Trinkey to pretend it's Unifying Receiver, so I used set_usb_identification
function as per documentation.
Documentation says:
This method must be called in boot.py to have any effect.
Not available on boards without native USB support.
which, I believe, both cases are fulfilled - I call it in boot.py
, and as far as I know samd21e18 has native hardware USB implementation.
Maybe CircuitPython uses some hacky USB stack for this MCU, digispark-like software instead of native hardware peripheral?
Additional information
No response