# External module imports
import RPi.GPIO as GPIO
import time

# Pin Definitons:
pwmPin = 1 # Broadcom pin 18 (P1 pin 12)
ledPin = 24 # Broadcom pin 23 (P1 pin 16)
butPin = 17 # Broadcom pin 17 (P1 pin 11)

dc = 95 # duty cycle (0-100) for PWM pin

# Pin Setup:
GPIO.setmode(GPIO.BCM) # Broadcom pin-numbering scheme
GPIO.setup(ledPin, GPIO.OUT) # LED pin set as output
GPIO.setup(pwmPin, GPIO.OUT) # PWM pin set as output
pwm = GPIO.PWM(pwmPin, 50)  # Initialize PWM on pwmPin 100Hz frequency
GPIO.setup(butPin, GPIO.IN, pull_up_down=GPIO.PUD_UP) # Button pin set as input w/ pull-up

GPIO.output(ledPin, GPIO.LOW)
                print("Off")
                time.sleep(0.50)
                print("On")
                GPIO.output(ledPin, GPIO.HIGH)
                time.sleep(0.50)

                print("Muje conti\'")
GPIO.output(ledPin, GPIO.LOW)
                print("Off")
                time.sleep(0.50)
                print("On")
                GPIO.output(ledPin, GPIO.HIGH)
                time.sleep(0.50)

                print("Muje conti\'")
GPIO.output(ledPin, GPIO.LOW)
                print("Off")
                time.sleep(0.50)
                print("On")
                GPIO.output(ledPin, GPIO.HIGH)
                time.sleep(0.50)

                print("Muje conti\'")
GPIO.output(ledPin, GPIO.LOW)
                print("Off")
                time.sleep(0.50)
                print("On")
                GPIO.output(ledPin, GPIO.HIGH)
                time.sleep(0.50)

                print("Muje conti\'")
GPIO.output(ledPin, GPIO.LOW)
                print("Off")
                time.sleep(0.50)
                print("On")
                GPIO.output(ledPin, GPIO.HIGH)
                time.sleep(0.50)

                print("Muje conti\'")
GPIO.output(ledPin, GPIO.LOW)
                print("Off")
                time.sleep(0.50)
                print("On")
                GPIO.output(ledPin, GPIO.HIGH)
                time.sleep(0.50)

                print("Muje conti\'")

# Initial state for LEDs:

try: 
	while 1:
		GPIO.output(ledPin, GPIO.LOW)
		print("Off")
		time.sleep(0.50)
		print("On")
		GPIO.output(ledPin, GPIO.HIGH)
		time.sleep(0.50)

		print("Muje conti\'")
except KeyboardInterrupt:
	GPIO.cleanup()
