def setup(): loop = asyncio.get_event_loop() tft = TFT_G("SSD1963", "LB04301", LANDSCAPE) touch = TOUCH("XPT2046", True, confidence = 50, margin = 50) # (-3886,-0.1287,-3812,-0.132,-3797,-0.07685,-3798,-0.07681)) tft.backlight(100) # light on: remove this line if you don't have backlight control hardware Screen.setup(tft, touch)
def setup(): objsched = Sched( True, 1) # Instantiate the scheduler with GC and heartbeat on red LED tft = TFT_G("SSD1963", "LB04301", LANDSCAPE) touch = TOUCH("XPT2046", objsched, confidence=50, margin=50) # (-3886,-0.1287,-3812,-0.132,-3797,-0.07685,-3798,-0.07681)) tft.backlight( 100 ) # light on: remove this line if you don't have backlight control hardware Screen.setup(objsched, tft, touch)