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.
We've launched our new site at www.openlighting.org. This wiki will remain and be updated with more technical information.
OLA Python API: Difference between revisions
From wiki.openlighting.org
No edit summary |
No edit summary |
||
| 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 15: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)