alastair / l8-python

Python bindings for the L8 Smartlight

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Python bindings for the L8 Smartlight

License:BSD 2-Clause "Simplified" License


Languages

Language:Python 100.0%