From 948bf7084c653f7321cc22047246858b1873efdc Mon Sep 17 00:00:00 2001 From: hassleschroff <59000692+hassleschroff@users.noreply.github.com> Date: Sat, 8 Feb 2020 13:59:20 -0500 Subject: [PATCH] Update shutdown.py Line 3 (import time import os) was giving me an error when trying to run, so I split it into two lines and all seems to be working now. (Tested on Raspberry Pi Zero W) --- shutdown.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shutdown.py b/shutdown.py index 88531e2..0f8a8c9 100644 --- a/shutdown.py +++ b/shutdown.py @@ -1,6 +1,7 @@ # put this file into the Desktop import RPi.GPIO as GPIO -import time import os +import time +import os buttonPin = 21 GPIO.setmode(GPIO.BCM) GPIO.setup(buttonPin, GPIO.IN, pull_up_down=GPIO.PUD_UP)