public static void Main() { try { // Block GC Messages Debug.EnableGCMessages(false); _avail = Debug.GC(false); // What version and name string a = SystemInfo.Version.ToString(); // Setup the driver, init the text InitDisplay(); // Show some board info DisplayBoardInfo(); // Little block of 20 * 20 flip from left to right DisplayFlipBox(); // Fill the screen with mosaic blocks DisplayMosaic(); // Do incremental display DisplaySurprise(); // Blinky the TFT way for (; ;) { Thread.Sleep(500); tft.DrawRect(20, 28, 100, 112, Color565.LightBlue); Thread.Sleep(500); tft.DrawRect(20, 28, 100, 112, Color565.DarkBlue); } // Restore original screen //DisplayBoardInfo(); // Infinite loop to prevent from staling //for (; ; ) //{ // Thread.Sleep(1000); // _current = Debug.GC(false); // Thread.Sleep(2000); // tft.DrawString(121, 155, " ", Color565.Black, font); // tft.DrawString(25, 155, "Available . " + _current.ToString(), Color565.White, font); //} } catch (Exception ex) { // Do whatever pleases you with the exception caught Console.WriteLine(ex.ToString()); for (; ;) { Thread.Sleep(200); } } }