예제 #1
0
 def quit(button):
     Screen.shutdown()
예제 #2
0
 def fwd(button, screen):
     Screen.change(screen)
예제 #3
0
def test():
    print('Running...')
    setup()
    Screen.change(BaseScreen)
예제 #4
0
def pt():
    print('Testing plot module...')
    setup()
    Screen.change(BaseScreen)
예제 #5
0
def test():
    print('Test TFT panel...')
    setup()
    Screen.set_grey_style(desaturate=False)  # dim
    Screen.change(SliderScreen)  # Run it!
예제 #6
0
 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()
예제 #7
0
 def cb_style(self, button, desaturate):
     self.lbl_style.value(''.join(('Current style: ', 'grey' if desaturate else 'dim')))
     Screen.set_grey_style(desaturate = desaturate)
예제 #8
0
 def fwd(button):
     Screen.change(cls_screen, args=args, kwargs=kwargs)
예제 #9
0
def test():
    print('Testing TFT...')
    setup()
    Screen.change(BaseScreen)
예제 #10
0
파일: lcd_local.py 프로젝트: chuckbook/mpx
def setup(slot='X'):
    lcd = LCD160CR_G(slot)  # Set connection
    lcd.set_orient(lcd160cr.LANDSCAPE)  # and orientation
    lcd.set_font(font10)
    Screen.setup(lcd)
예제 #11
0
 def callback(self, button, screen):
     Screen.change(screen)
예제 #12
0
def setup():
    lcd = LCD160CR_G("Y")  # Set connection
    lcd.set_orient(lcd160cr.LANDSCAPE)  # and orientation
    Screen.setup(lcd)
예제 #13
0
 def back(self, button, text):
     Aperture.value(text)
     Screen.back()
예제 #14
0
 def back(button):
     Screen.back()
예제 #15
0
def test():
    print('Test TFT panel...')
    setup()
    Screen.change(KnobScreen)
예제 #16
0
 def fwd(button):
     Screen.change(BackScreen)
예제 #17
0
def test():
    setup()
    Screen.change(BaseScreen)