Skip to content

Instantly share code, notes, and snippets.

@tlorens
Last active December 21, 2015 15:54
Show Gist options
  • Save tlorens/0f8e1c9976259187a730 to your computer and use it in GitHub Desktop.
Save tlorens/0f8e1c9976259187a730 to your computer and use it in GitHub Desktop.
Proof of concept XML configuration file for LightShowPi
<config>
<channels>
<channel id="1" title="red candy canes" pin="1" mode="onoff" />
<channel id="2" title="snowman" pin="4" mode="onoff">
<frequencies>
<frequency>
<min>1000</min>
<max>3000</max>
</frequency>
</frequencies>
</channel>
<channel id="3" title="green candy canes" pin="5" mode="onoff" />
<channel id="4" title="blue roof icicles" pin="4" mode="onoff">
<frequencies>
<frequency>
<min>4000</min>
<max>6000</max>
</frequency>
</frequencies>
</channel>
<channel id="5" title="white candy canes" pin="11" mode="onoff" />
</channels>
<scenes title="Advanced feature: layer channels for specific frequencies">
<scene id="1" title="red/green/white candy canes">
<channels>
<channel>1</channel>
<channel>3</channel>
<channel>5</channel>
</channels>
<frequencies>
<frequency>
<min>1000</min>
<max>3000</max>
</frequency>
</frequencies>
</scene>
</scenes>
</config>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment