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(); }
public static void Main() { var canvas = new NwazetGoImaging.VirtualCanvas(TouchEventHandler, WidgetClickedHandler); canvas.Initialize(GoSockets.Socket5); CalibrateTouchscreen(canvas); // write your code here InitializeHerdRider(canvas); }