mirror of
https://github.com/KevinMidboe/python-gpiozero.git
synced 2025-10-29 17:50:37 +00:00
Replace tab with spaces
This commit is contained in:
@@ -251,7 +251,7 @@ the Raspberry Pi when the button is held for 2 seconds::
|
||||
from signal import pause
|
||||
|
||||
def shutdown():
|
||||
check_call(['sudo', 'poweroff'])
|
||||
check_call(['sudo', 'poweroff'])
|
||||
|
||||
shutdown_btn = Button(17, hold_time=2)
|
||||
shutdown_btn.when_held = shutdown
|
||||
|
||||
Reference in New Issue
Block a user