コード例 #1
0
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)
コード例 #2
0
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)
コード例 #3
0
ファイル: dialog.py プロジェクト: winxin/micropython-tft-gui
def test():
    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.change(BaseScreen)                                          # Run it!
コード例 #6
0
ファイル: dialog.py プロジェクト: winxin/micropython-tft-gui
 def back(self, button, text):
     Aperture.value(text)
     Screen.back()
コード例 #7
0
 def fwd(button):
     Screen.change(cls_screen)
コード例 #8
0
ファイル: knobtest.py プロジェクト: watrt/micropython-tft-gui
 def cb_style(self, button, desaturate):
     self.lbl_style.value(''.join(
         ('Current style: ', 'grey' if desaturate else 'dim')))
     Screen.set_grey_style(desaturate=desaturate)
コード例 #9
0
def test():
    print('Test TFT panel...')
    setup()
    Screen.change(KnobScreen)
コード例 #10
0
 def back(button):
     Screen.back()
コード例 #11
0
ファイル: ibt.py プロジェクト: peterhinch/micropython-tft-gui
def test():
    print('Testing TFT...')
    setup()
    Screen.change(IconButtonScreen)
コード例 #12
0
ファイル: hst.py プロジェクト: peterhinch/micropython-tft-gui
def test():
    print('Test TFT panel...')
    setup()
    Screen.change(HorizontalSliderScreen)
コード例 #13
0
 def fwd(button):
     Screen.change(cls_screen)
コード例 #14
0
def test():
    print('Test TFT panel...')
    setup()
    Screen.change(BaseScreen)  # Run it!
コード例 #15
0
 def back(button):
     Screen.back()
コード例 #16
0
 def quit(button):
     Screen.shutdown()
コード例 #17
0
ファイル: vst.py プロジェクト: winxin/micropython-tft-gui
def test():
    print('Test TFT panel...')
    setup()
    Screen.set_grey_style(desaturate=False)  # dim
    Screen.change(VerticalSliderScreen)  # Run it!
コード例 #18
0
 def fwd(button, screen):
     Screen.change(screen)
コード例 #19
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()
コード例 #20
0
 def quit(self, button):
     Screen.shutdown()
コード例 #21
0
 def quit(button):
     Screen.shutdown()
コード例 #22
0
ファイル: hst.py プロジェクト: winxin/micropython-tft-gui
def test():
    print('Test TFT panel...')
    setup()
    Screen.change(HorizontalSliderScreen)
コード例 #23
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)
コード例 #24
0
ファイル: knobtest.py プロジェクト: watrt/micropython-tft-gui
 def quit(self, button):
     Screen.shutdown()
コード例 #25
0
def test():
    print('Testing TFT...')
    setup()
    Screen.change(IconButtonScreen)
コード例 #26
0
ファイル: knobtest.py プロジェクト: watrt/micropython-tft-gui
def test():
    print('Test TFT panel...')
    setup()
    Screen.change(KnobScreen)
コード例 #27
0
ファイル: dialog.py プロジェクト: winxin/micropython-tft-gui
 def fwd(button):
     Screen.change(cls_screen, args = args, kwargs = kwargs)