Skip to content

Latest commit

 

History

History
81 lines (69 loc) · 2.01 KB

README.md

File metadata and controls

81 lines (69 loc) · 2.01 KB

LED_anima

This lib allow you config different light strip anima by json or code. LED_animaLogo


Thanks 3rd Libs and Their Author(s)

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.

GitHub link


How it work?

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"}  
                }
            }
        }
     }
}

How to use?

Please see the smallest example:


ColorAnima Info

  1. alwaysON It will show the color is you set.
  2. rainbow Seven colors of the rainbow.

LEDsAnima Info

  1. flow

Version List

TO DO: Organize the code to more expansive and understandble.

Ver 0.1:

  1. Basic functions ware verify, no menmoy link.