mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-02-02 02:51:53 +08:00
ps/2 keyboard prototype
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user