CircuitPython version
Adafruit CircuitPython 8.0.4 on 2023-03-15; Raspberry Pi Zero W with bcm2835
Code/REPL
import time
import usb_hid
from adafruit_hid.keyboard import Keyboard
kbd = Keyboard(usb_hid.devices)
while True:
print(kbd.led_on(Keyboard.LED_CAPS_LOCK))
time.sleep(0.1)
Behavior
adafruit_hid.keyboard.Keyboard.led_on only reports True once and not the whole time the LED is on.
The above code should print out True while caps lock is on and False otherwise. Testing this code in a RPi Pico confirms this behavior. On the RPi Zero though True is only printed once per loop then immediately returns back to False even though the caps lock is still on.
Description
No response
Additional information
No response