Add function to set LED visibility
This commit is contained in:
parent
f488869f3d
commit
3755f26081
|
@ -113,6 +113,14 @@ class SEMSocket():
|
||||||
success = msg.send()
|
success = msg.send()
|
||||||
return success
|
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
|
@property
|
||||||
def name(self):
|
def name(self):
|
||||||
self._name = self._name_char.read().decode("UTF-8")
|
self._name = self._name_char.read().decode("UTF-8")
|
||||||
|
|
Loading…
Reference in a new issue