-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathREADME
More file actions
11 lines (8 loc) · 939 Bytes
/
Copy pathREADME
File metadata and controls
11 lines (8 loc) · 939 Bytes
1
2
3
4
5
6
7
8
9
10
11
Title: ck-controller
Description: An object-oriented approach to writing UDP packets to Color Kinetics products for lighting control.
Last Modified: 2013 Jan
http://www.asymptoticdesign.org/
==USAGE==
Use Power_Supply() to create an object for every physical power supply you have. Then attach lights to each power supply using the addLight() method and the appropriate light class (right now there's a class for Colorblasts and another for Flex lights). Set the state attribute of each light to the desired color and then write the data using the Power_Supply class's write() method.
While this seems a bit convoluted at first, this makes sense because it allows you to program what you want each light to do without thinking about what power supply its attached to, and then allows the power supply to do all of the DMX formatting for you.
Two examples are in examples.py, while a non-object oriented script is in example-script.py.