Beispiel #1
0
        public static void ShowKloutSplashScreen()
        {
            tftBacklight.SetPulse(0, 0);
            var background = new VirtualFrame(40960, 32, @"SD\Bitmaps\KLOUTSplashScreen.bin");

            background.Width  = 160;
            background.Height = 128;
            vm.Copy(background);
            tft.Refresh();
            BreatheTFT(BreatheInPulses);
            background.Dispose();
            background = null;
            Debug.GC(true);
            Thread.Sleep(2000);
        }
Beispiel #2
0
 public static void ReadPicture(string filename, int delay = 1000)
 {
     using (var filestream = new FileStream(filename, FileMode.Open)) {
         filestream.Read(tft.SpiBuffer, 0, tft.SpiBuffer.Length);
         tft.Refresh();
         Thread.Sleep(delay);
     }
 }