Add function to set LED visibility #17

Manually merged
sqozz merged 2 commits from feature/ring_led into master 2020-05-08 20:34:16 +02:00
1 changed files with 8 additions and 0 deletions
Showing only changes of commit 3755f26081 - Show all commits

View File

@ -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")