annotate light8/io.py @ 16:7dbe8067acea

fixed bug with channel levels not displaying fixed bug with channel levels not displaying moved an import from rsn to io
author drewp
date Sun, 07 Jul 2002 06:33:29 +0000
parents 7adc65771676
children f595fdd4c548
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
16
7dbe8067acea fixed bug with channel levels not displaying
drewp
parents: 12
diff changeset
1
7dbe8067acea fixed bug with channel levels not displaying
drewp
parents: 12
diff changeset
2
7dbe8067acea fixed bug with channel levels not displaying
drewp
parents: 12
diff changeset
3 from parport import *
0
45b12307c695 Initial revision
drewp
parents:
diff changeset
4
12
7adc65771676 big restructuring - moved lots of things (including most panels) to other files
drewp
parents: 0
diff changeset
5 DUMMY=1
0
45b12307c695 Initial revision
drewp
parents:
diff changeset
6
12
7adc65771676 big restructuring - moved lots of things (including most panels) to other files
drewp
parents: 0
diff changeset
7 def init(DUMMY_in):
7adc65771676 big restructuring - moved lots of things (including most panels) to other files
drewp
parents: 0
diff changeset
8 global DUMMY
7adc65771676 big restructuring - moved lots of things (including most panels) to other files
drewp
parents: 0
diff changeset
9 if not DUMMY_in:
16
7dbe8067acea fixed bug with channel levels not displaying
drewp
parents: 12
diff changeset
10
12
7adc65771676 big restructuring - moved lots of things (including most panels) to other files
drewp
parents: 0
diff changeset
11 getparport()
7adc65771676 big restructuring - moved lots of things (including most panels) to other files
drewp
parents: 0
diff changeset
12 DUMMY=0
0
45b12307c695 Initial revision
drewp
parents:
diff changeset
13
12
7adc65771676 big restructuring - moved lots of things (including most panels) to other files
drewp
parents: 0
diff changeset
14 def sendlevels(levels):
7adc65771676 big restructuring - moved lots of things (including most panels) to other files
drewp
parents: 0
diff changeset
15 if DUMMY: return
7adc65771676 big restructuring - moved lots of things (including most panels) to other files
drewp
parents: 0
diff changeset
16 levels = list(levels) + [0]
7adc65771676 big restructuring - moved lots of things (including most panels) to other files
drewp
parents: 0
diff changeset
17 if levels[14] > 0: levels[14] = 100
7adc65771676 big restructuring - moved lots of things (including most panels) to other files
drewp
parents: 0
diff changeset
18 # print "levels", ' '.join(["%3.1f" % l for l in levels])
7adc65771676 big restructuring - moved lots of things (including most panels) to other files
drewp
parents: 0
diff changeset
19 outstart()
7adc65771676 big restructuring - moved lots of things (including most panels) to other files
drewp
parents: 0
diff changeset
20 for p in range(1,70):
7adc65771676 big restructuring - moved lots of things (including most panels) to other files
drewp
parents: 0
diff changeset
21 outbyte(levels[p-1]*255/100)