Пример #1
0
        private static void Animations(InoCreator ino)
        {
            ino.AddLine("// Instantiate Animations");
            ino.YieldInstances(ChristmasAnimations.Animations);

            ino.AddLine("StaticColor off(&strip, ToColor(0, 0, 0), 0x0000);");
            ino.AddLine("StaticColor redColor(&strip, ToColor(255, 0, 0), 0xaf00);");
            ino.AddLine("StaticColor greenColor(&strip, ToColor(0, 255, 0), 0xa0f0);");
            ino.AddLine("StaticColor blueColor(&strip, ToColor(0, 0, 255), 0xa00f);");

            var otherAnimations = new List <string> {
                "Off", "RedColor", "GreenColor", "BlueColor"
            };

            ino.YieldArrays("Animation", ChristmasAnimations.Animations.Concat(otherAnimations));
        }
Пример #2
0
 private static void Clearances(InoCreator ino)
 {
     ino.AddLine("// Instantiate Clearances");
     ino.YieldInstances(ChristmasAnimations.Clearances);
     ino.YieldArrays("Clearance", ChristmasAnimations.Clearances);
 }