annotate bin/bcf_puppet_demo @ 1884:5cde72dfdc22
change collector output code to use very specific types. Might fix bugs too.
Ignore-this: ce9f2586b03f5a773accab7ca3bf6c5d
author |
Drew Perttula <drewp@bigasterisk.com> |
date |
Tue, 28 May 2019 06:48:37 +0000 |
parents |
7772cc48e016 |
children |
|
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
|
1858
|
8
|
567
|
9 class PuppetSliders(BCF2000):
|
1858
|
10
|
567
|
11 def valueIn(self, name, value):
|
|
12 if name == 'slider1':
|
|
13 self.valueOut('slider5', value)
|
|
14
|
|
15
|
|
16 b = PuppetSliders()
|
|
17 reactor.run()
|