Mercurial > code > home > repos > light9
annotate bin/bcf_puppet_demo @ 2333:447f25b2712d
checkpoint show data
author | drewp@bigasterisk.com |
---|---|
date | Fri, 02 Jun 2023 09:59:52 -0700 |
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() |