Working automatic mode.No DB stuff yet.
This commit is contained in:
@@ -14,16 +14,6 @@ def get_pin_input():
|
||||
RELAY2_PIN = 20 # Unassigned
|
||||
RELAY3_PIN = 21 # Lamp
|
||||
|
||||
# Setup the Inputs to use the internal pull-down.
|
||||
GPIO.setup(PB1_BCM, GPIO.IN, pull_up_down=GPIO.PUD_DOWN)
|
||||
GPIO.setup(PB2_BCM, GPIO.IN, pull_up_down=GPIO.PUD_DOWN)
|
||||
GPIO.setup(PB3_BCM, GPIO.IN, pull_up_down=GPIO.PUD_DOWN)
|
||||
|
||||
# Setup the Outputs.
|
||||
GPIO.setup(RELAY1_PIN, GPIO.OUT)
|
||||
GPIO.setup(RELAY2_PIN, GPIO.OUT)
|
||||
GPIO.setup(RELAY3_PIN, GPIO.OUT)
|
||||
|
||||
# Get current time.
|
||||
now = datetime.now()
|
||||
hour = now.hour
|
||||
|
||||
Reference in New Issue
Block a user