ps/2 keyboard prototype

This commit is contained in:
Devaev Maxim
2018-06-28 18:58:52 +03:00
parent 65bee96fef
commit 54430fed31
7 changed files with 92 additions and 7 deletions

View File

@@ -21,8 +21,8 @@ def bcm() -> Generator[None, None, None]:
_logger.info("GPIO cleaned")
def set_output_zeroed(pin: int) -> int:
GPIO.setup(pin, GPIO.OUT)
def set_output(pin: int, initial: bool=False) -> int:
GPIO.setup(pin, GPIO.OUT, initial=initial)
GPIO.output(pin, False)
return pin