public void Run(IBackgroundTaskInstance taskInstance) { // // TODO: Insert code to perform background work // // If you start any asynchronous methods here, prevent the task // from closing prematurely by using BackgroundTaskDeferral as // described in http://aka.ms/backgroundtaskdeferral // using (var screen = new AdaFruitSSD1306()) { screen.Initialize(VccType.SWITCHCAPVCC); screen.ClearScreen(); screen.InvertDisplay(true); drawHalfMoose(screen); //screen.DrawString(1, 1, "hello, ssd1306"); //screen.DrawRectangle(1, 1, 10, 3, Color.Black); } }