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

Method __init__

cpython/kbdFeatherWing/lib/pydos_ui_kfw.py:40–57  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

38 #_kbd = None
39
40 def __init__(self):
41 # Release any resources currently in use for the displays
42 displayio.release_displays()
43
44 _tft_cs = board.D9
45 _tft_dc = board.D10
46 _display_bus = fourwire.FourWire(Pydos_hw.SPI(), command=_tft_dc, chip_select=_tft_cs)
47 _display = adafruit_ili9341.ILI9341(_display_bus, width=320, height=240)
48
49 self.kbd = BBQ10Keyboard(Pydos_hw.I2C(),BBQI2CDevice=Pydos_hw.I2CbbqDevice)
50
51 self._contrl_seq = []
52
53 self.shift_Lock = False
54 self.shift_Mode = self.SHIFT # Default Cap lock/Long Press mode
55
56 self.lastCmdLine = ""
57 self.commandHistory = []
58
59 def serial_bytes_available(self):
60 # Does the same function as supervisor.runtime.serial_bytes_available

Callers

nothing calls this directly

Calls 3

BBQ10KeyboardClass · 0.90
SPIMethod · 0.80
I2CMethod · 0.80

Tested by

no test coverage detected