Skip to content

alastair/l8-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages