Ejemplo n.º 1
0
        public static void Main() {
            Debug.EnableGCMessages(true);
            Debug.Print("Available RAM: " + Debug.GC(true).ToString() + " bytes.");
            Debug.EnableGCMessages(false); 
            
            PowerUpDisplay();

            var canvas = new VirtualCanvas(TouchEventHandler, WidgetClickedHandler);
            canvas.Initialize(
                displaySpi: SPI.SPI_module.SPI1,
                displayChipSelect: Pins.GPIO_PIN_D9,
                displayGPIO: Pins.GPIO_PIN_D8,
                speedKHz: 5000);

            CalibrateTouchscreen(canvas);
            BmpImageTest(canvas);
            BasicUITest(canvas);
            MultiWidgetTest(canvas);
            BasicTouchEventTest(canvas);
            NonBlockingTouchEventTest(canvas);
            TouchscreenAlphanumericDialogTest(canvas);

            canvas.Reboot();
            Thread.Sleep(1000);

            canvas.Dispose();

        }