示例#1
0
        private void Demo35Video()
        {
            //Configuration.LCD.EnableLCDBootupMessages(false);

            demo = new DemoManager(320, 240);
            demo.VideoDemo();
        }
示例#2
0
        private void Demo22SPI()
        {
            display = new DisplayS22(5);

            demo = new DemoManager(240, 320, delegate(Bitmap bitmap, Rect dirtyArea)
            {
                display.SimpleGraphics.DisplayImage(bitmap, (uint)dirtyArea.X, (uint)dirtyArea.Y, (uint)dirtyArea.X, (uint)dirtyArea.Y, (uint)dirtyArea.Width, (uint)dirtyArea.Height);
            });
            demo.QuickDemo();
        }
示例#3
0
        private void Run()
        {
            //bool reset = false;
            //if (reset)
            //    LCDManager.SetLCDConfiguration_800_480();
            //if (reset)
            //{
            //    Util.FlushExtendedWeakReferences();
            //    Microsoft.SPOT.Hardware.PowerState.RebootDevice(false);
            //}

            //demo = new Demo(800, 480);
            //demo.QuickDemo();

            demo = new DemoManager(320, 240);
            demo.LibraryDemo();
        }
示例#4
0
        private void Demo35()
        {
            //if (!Utils.IsEmulator)
            //{
            //    bool reboot = false;
            //    //reboot |= LCDManager.SetLCDConfiguration_800_480();
            //    reboot |= LCDManager.SetLCDConfiguration_320_240();
            //    //reboot |= LCDManager.SetBootLogo(null, 0, 0);
            //    reboot |= LCDManager.SetLCDBootupMessages(false);

            //    if (reboot)
            //    {
            //        Thread.Sleep(10000);
            //        Util.FlushExtendedWeakReferences();
            //        PowerState.RebootDevice(false);
            //    }
            //}

            demo = new DemoManager(320, 240);
            //demo.QuickDemo();
            demo.CrashDemo();
        }