Add function to set LED visibility

feature/ring_led
sqozz 3 years ago
parent f488869f3d
commit 3755f26081
  1. 8
      sem6000.py

@ -113,6 +113,14 @@ class SEMSocket():
success = msg.send()
return success
def enableLED(self, status):
cmd = bytearray([0x0f])
payload = bytearray([0x00, 0x05, status, 0x00, 0x00, 0x00, 0x00])
msg = self.BTLEMessage(self, cmd, payload)
success = msg.send()
return success
@property
def name(self):
self._name = self._name_char.read().decode("UTF-8")

Loading…
Cancel
Save