From ccfe496912a3392d026ae7f1b7c529e8e76651c2 Mon Sep 17 00:00:00 2001 From: csev1755 <49533775+csev1755@users.noreply.github.com> Date: Thu, 1 May 2025 14:43:10 -0500 Subject: [PATCH] Add LED control --- src/mebo/robot.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/mebo/robot.py b/src/mebo/robot.py index da4f0a3..5981d93 100644 --- a/src/mebo/robot.py +++ b/src/mebo/robot.py @@ -320,6 +320,20 @@ def add_router(self, auth_type, ssid, password, index=1): index=index, ) + def eye_led(self, value): + """Sets the eye LED to the specified value + + 1 is on and 0 is off + """ + self._request(req="set_eye_led_brightness", value=value) + + def mouth_led(self, value): + """Sets the mouth LED to the specified value + + 1 is on and 0 is off + """ + self._request(req="set_mouth_led_brightness", value=value) + def set_scan_timer(self, value=30): self._request(req="set_scan_timer", value=value)