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

Method get_pin

cpython/kbdFeatherWing/lib/bbq10keyboard.py:255–259  ·  view source on GitHub ↗
(self, pin)

Source from the content-addressed store, hash-verified

253 self._write_register(_REG_GIO, value)
254
255 def get_pin(self, pin):
256 if pin < 0 or pin > 7:
257 raise ValueError('Only pins 0-7 supported right now')
258
259 return DigitalInOut(pin, self)
260
261 def _read_register(self, reg):
262 with self._i2c as i2c:

Callers

nothing calls this directly

Calls 1

DigitalInOutClass · 0.85

Tested by

no test coverage detected