Mercurial > code > home > repos > light9
view light8/io.py @ 15:c76b62eccdec
put **kw back in, they now go to the scale and can override the defaults.
put **kw back in, they now go to the scale and can override the defaults.
for our purposes, we probably want to edit the defaults so we don't have
them in every call.
author | dmcc |
---|---|
date | Sun, 07 Jul 2002 06:18:40 +0000 |
parents | 7adc65771676 |
children | 7dbe8067acea |
line wrap: on
line source
DUMMY=1 def init(DUMMY_in): global DUMMY if not DUMMY_in: getparport() DUMMY=0 def sendlevels(levels): if DUMMY: return levels = list(levels) + [0] if levels[14] > 0: levels[14] = 100 # print "levels", ' '.join(["%3.1f" % l for l in levels]) outstart() for p in range(1,70): outbyte(levels[p-1]*255/100)