Personal tools
The Open Lighting Project has moved!

We've launched our new site at www.openlighting.org. This wiki will remain and be updated with more technical information.

Difference between revisions of "OLA Python API"

From wiki.openlighting.org

Jump to: navigation, search
 
Line 1: Line 1:
 
document this [simonn]
 
document this [simonn]
 +
 +
 +
A simple example to send DMX:
 +
 +
<pre>
 +
from lla import *
 +
 +
con = LlaClient()
 +
con.start()
 +
universe = 0
 +
 +
dmx = dmxBuffer(DMX_LEN)
 +
for i in range(0, DMX_LEN):
 +
  dmx[i] = i
 +
 +
con.send_dmx(universe, dmx, DMX_LEN)
 +
</pre>

Revision as of 07:11, 12 October 2007

document this [simonn]


A simple example to send DMX:

from lla import *

con = LlaClient()
con.start()
universe = 0

dmx = dmxBuffer(DMX_LEN)
for i in range(0, DMX_LEN):
  dmx[i] = i

con.send_dmx(universe, dmx, DMX_LEN)