Skip to content

Commit

Permalink
Expose the rainbow UDP endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
matael committed Jul 27, 2016
1 parent 915f2aa commit 22ff4d9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions python/laumio/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ def colorWipe(self, r, g, b, delay):
payload = bytearray([ 0x0b, r, g, b, delay ])
return self._send(payload)

def rainbow(self):
""" Start Rainbow animation """
payload = bytearray([ 0x0a ])
return self._send(payload)

def status(self):
""" Get the JSON Laumio status """
return urllib.request.urlopen(self.__url).read().decode()
Expand Down

0 comments on commit 22ff4d9

Please sign in to comment.