mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 17:20:30 +08:00
gpio: fixed set_output initial
This commit is contained in:
parent
d77c88e25f
commit
0cfb3c5dbc
@ -22,7 +22,6 @@ def bcm() -> Generator[None, None, None]:
|
||||
|
||||
def set_output(pin: int, initial: bool=False) -> int:
|
||||
GPIO.setup(pin, GPIO.OUT, initial=initial)
|
||||
GPIO.output(pin, False)
|
||||
return pin
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user