This lib allow you config different light strip anima by json or code.
Thanks Configor writen by Nomango, Which is very easy and lightful json lib use MIT lincense.
LED_anima use it to parse the json string.
LED_anima is divide animation into two categories,one is ColorAnima, anthor one is LEDsAnima.
LED strip will be group to diffierent area(one LED can belong more than one area). In single frame,ColorAnima is the first calculate(or update).
ColorAnima will provide the frame color.And than, LEDsAnima will organize the LEDs show some Anima that color is base ColorAnima provide.
In some LEDsAnima, it maybe modify the frame color.
More infomation in the README and code. also see the website:LED-anima.sethome.cc
test json:
{
"area1":
{
"LED_id":[0,1,2,3,4,5,6,7,8],
"setColor":11162881,
"anima":
{
"color":
{
"1":
{
"name":"colorFlow",
"argv":{"frame":"50"}
}
}
"LEDs":
{
"1":
{
"name":"flow",
"argv":{"frame":"500"}
}
}
}
}
}
Please see the smallest example:
- alwaysON It will show the color is you set.
- rainbow Seven colors of the rainbow.
- flow
TO DO: Organize the code to more expansive and understandble.
Ver 0.1:
- Basic functions ware verify, no menmoy link.