Closed Jens1985 closed 3 years ago
If you get that error, you're probably using an older version of the library. led_on()
was added in 4.2.0. Update to the latest version.
I am using adafruit-circuitpython-hid-6.x-mpy-5.0.0.zip
on Adafruit CircuitPython 6.2.0 on 2021-04-05; Adafruit NeoPixel Trinkey M0 with samd21e18
Ah. The NeoPixel Trinkey has HID frozen in, but the version frozen in is older and does not have led_on()
. This will be fixed in 6.3.0, but for now, you can put the latest adafruit_hid
in /
instead of /lib
, and it will override using the frozen library.
>>> import sys
>>> sys.path
['', '/', '.frozen', '/lib']
.frozen
comes before /lib
, but after /
.
Thank you. It work now :)
My Code:
The Ouput:
I think Keyboard has an attribute for led_on.