MCPcopy Create free account
hub / github.com/RetiredWizard/PyDOS / __init__

Method __init__

cpython/lib/optional/pydos_ui_lilygokbd.py:12–34  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

10class PyDOS_UI:
11
12 def __init__(self):
13 self.trackevent = None
14 self.scrollable = False
15 self.arrow = ""
16 self._cmdhistlock = False
17 self._seqCnt = 0
18 self._key = bytearray(1)
19 self._touched = False
20 _ADDRESS_KBD = 0x55
21
22 self.commandHistory = [""]
23
24 self._i2c = I2CDevice(Pydos_hw.I2C(), _ADDRESS_KBD)
25 self.trackball = keypad.Keys(
26 [
27 board.TRACKBALL_CLICK,
28 board.TRACKBALL_UP,
29 board.TRACKBALL_DOWN,
30 board.TRACKBALL_LEFT,
31 board.TRACKBALL_RIGHT
32 ],
33 value_when_pressed=False
34 )
35
36 def get_screensize(self,disp=None):
37 return (19,51)

Callers

nothing calls this directly

Calls 1

I2CMethod · 0.80

Tested by

no test coverage detected