mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-29 00:51:53 +08:00
gpio: fixed set_output initial
This commit is contained in:
@@ -22,7 +22,6 @@ def bcm() -> Generator[None, None, None]:
|
|||||||
|
|
||||||
def set_output(pin: int, initial: bool=False) -> int:
|
def set_output(pin: int, initial: bool=False) -> int:
|
||||||
GPIO.setup(pin, GPIO.OUT, initial=initial)
|
GPIO.setup(pin, GPIO.OUT, initial=initial)
|
||||||
GPIO.output(pin, False)
|
|
||||||
return pin
|
return pin
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user