#!/usr/bin/python3
import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BCM)
MOTOR_PIN = 18
GPIO.setup(MOTOR_PIN, GPIO.OUT)
try:
# Turn the motor on
print("Feeding Fish!")
GPIO.output(MOTOR_PIN, GPIO.HIGH)
# Wait for 15 seconds
time.sleep(15)
# Turn the motor off
print("Feeding Complete")
GPIO.output(MOTOR_PIN, GPIO.LOW)
finally:
# Clean up GPIO settings
GPIO.cleanup()
print("Sleeping...")