From f12f1fc65d2c231bbf104cf8eacfcab3dee0666e Mon Sep 17 00:00:00 2001 From: Commander1024 Date: Thu, 27 Aug 2026 21:38:51 +0200 Subject: [PATCH] Correct LED colors for HID actions --- README.md | 2 +- main.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index d2ddcfd..ec2f86b 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/main.py b/main.py index 53e4024..42e3cb1 100644 --- a/main.py +++ b/main.py @@ -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"] )