示例#1
0
        static void Main(string[] args)
        {
            Console.Write("refreash seq ( eg. '010101...' or 'f' for full update) ? ");
            var a = Console.ReadLine().ToLower();

            var epd = new EPD2in13Hat(17, 25, 8, 24, a == "f");

            while (true)
            {
                for (var i = 0; i < 10; i++)
                {
                    if (a != "f")
                    {
                        foreach (var c in a)
                        {
                            if (c == '0')
                            {
                                epd.ClearScreen(0x00);
                            }
                            if (c == '1')
                            {
                                epd.ClearScreen(0xFF);
                            }
                        }
                    }
                    epd.FillScreen($"./img/{i}.bmp");
                }
            }
        }
示例#2
0
 public static void FillScreen(this EPD2in13Hat epd, string filename)
 {
     epd.FillScreen(LoadMonochromeBitmap(filename));
 }