Correct LED colors for HID actions
This commit is contained in:
@@ -9,7 +9,7 @@ A deliberately limited MicroPython awareness-training firmware for an ESP32 USB
|
||||
|
||||
The authenticated web page also provides manual **Volume up** and **Volume down** controls for a clearly observable, non-destructive HID demonstration.
|
||||
|
||||
A password-protected local web page changes the enabled event types, mouse movement distance, and timing. The device connects to one preconfigured Wi-Fi network; it does not create an access point. On the T-Dongle-S3, its onboard RGB LED briefly flashes red for a Return press, green for mouse jitter, and blue for a volume action.
|
||||
A password-protected local web page changes the enabled event types, mouse movement distance, and timing. The device connects to one preconfigured Wi-Fi network; it does not create an access point. On the T-Dongle-S3, its onboard RGB LED briefly flashes red for a Return press, blue for mouse jitter, and green for a volume action.
|
||||
|
||||
## Hardware and firmware requirement
|
||||
|
||||
|
||||
@@ -147,7 +147,7 @@ def main():
|
||||
hid.press_volume_up()
|
||||
else:
|
||||
hid.press_volume_down()
|
||||
activity_led.pulse(0, 0, 255, now)
|
||||
activity_led.pulse(0, 255, 0, now)
|
||||
consumer_release_at = time.ticks_add(now, KEY_HOLD_MS)
|
||||
|
||||
if (settings["enabled"] and settings["return_enabled"] and
|
||||
@@ -168,7 +168,7 @@ def main():
|
||||
if x == 0 and y == 0:
|
||||
x = distance
|
||||
hid.move(x, y)
|
||||
activity_led.pulse(0, 255, 0, now)
|
||||
activity_led.pulse(0, 0, 255, now)
|
||||
next_mouse = choose_due(
|
||||
now, settings["mouse_min_seconds"], settings["mouse_max_seconds"]
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user