Python bindings for the L8 Smartlight
Python
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
l8
.gitignore
COPYING
README.md
example.py
example_bluetooth.py
opencv_example.py

README.md

Python bindings for the L8 Smartlight

This thing: http://www.l8smartlight.com/

Sample usage:

import l8
l = l8.L8Serial("/dev/ttyACM0")

l.back_light(l8.Colour(255, 255, 0))

l.set_light(4, 6, l8.Colour(50, 100, 10))

import random
mtx = [ [ l8.Colour(random.randrange(20,255), random.randrange(20, 255), random.randrange(0, 255)) for i in range(8) ] for j in range(8) ]
l.send_matrix(mtx)

l.send_clear()

License

This library is released under the simplified BSD license. See COPYING for details.