annotate bin/bcf_puppet_demo @ 1436:d0d5900a8031
collector run the blocking dmx output calls in another thread, so they don't add delay to our http server
Ignore-this: b5385085b654e1ac0b8018e6813f36e
author |
drewp@bigasterisk.com |
date |
Sat, 11 Jun 2016 20:30:34 +0000 |
parents |
e0a1e2031de5 |
children |
7772cc48e016 |
rev |
line source |
567
|
1 #!/usr/bin/python
|
|
2 """
|
|
3 tiny bcf2000 controller demo
|
|
4 """
|
|
5 from bcf2000 import BCF2000
|
|
6 from twisted.internet import reactor
|
|
7
|
|
8 class PuppetSliders(BCF2000):
|
|
9 def valueIn(self, name, value):
|
|
10 if name == 'slider1':
|
|
11 self.valueOut('slider5', value)
|
|
12
|
|
13
|
|
14
|
|
15 b = PuppetSliders()
|
|
16 reactor.run()
|