def quit(button): Screen.shutdown()
def fwd(button, screen): Screen.change(screen)
def test(): print('Running...') setup() Screen.change(BaseScreen)
def pt(): print('Testing plot module...') setup() Screen.change(BaseScreen)
def test(): print('Test TFT panel...') setup() Screen.set_grey_style(desaturate=False) # dim Screen.change(SliderScreen) # Run it!
def clear(self): tft = Screen.get_tft() self.curves = set() tft.fill_rectangle(self.x0, self.y0, self.x1, self.y1, self.bgcolor) self.show()
def cb_style(self, button, desaturate): self.lbl_style.value(''.join(('Current style: ', 'grey' if desaturate else 'dim'))) Screen.set_grey_style(desaturate = desaturate)
def fwd(button): Screen.change(cls_screen, args=args, kwargs=kwargs)
def test(): print('Testing TFT...') setup() Screen.change(BaseScreen)
def setup(slot='X'): lcd = LCD160CR_G(slot) # Set connection lcd.set_orient(lcd160cr.LANDSCAPE) # and orientation lcd.set_font(font10) Screen.setup(lcd)
def callback(self, button, screen): Screen.change(screen)
def setup(): lcd = LCD160CR_G("Y") # Set connection lcd.set_orient(lcd160cr.LANDSCAPE) # and orientation Screen.setup(lcd)
def back(self, button, text): Aperture.value(text) Screen.back()
def back(button): Screen.back()
def test(): print('Test TFT panel...') setup() Screen.change(KnobScreen)
def fwd(button): Screen.change(BackScreen)
def test(): setup() Screen.change(BaseScreen)