1 + 2


1 - 2


1 * 2


1 / 2


"""
Explanation: Raspberry PI Python Code
It's all standard Python but there is a special library used to talk to the GPIO pins.
Live Python Coding
Just type into a new cell basic math operations
End of explanation
"""


print("Hello Humans")

"""
Explanation: Use python to print hello world
End of explanation
"""


name = "Rick"
name

## Variable for numbers

yards = 10
yardtraveled = 5
print(yards)
print(yardtraveled)
print(yards - yardtraveled)


for ii in  range(0,15):
    print("ii: ",ii)
    

"""
Explanation: Text Variables
Create variables on the fly. Show there values just by typing the variable name.
End of explanation
"""


#https://learn.sparkfun.com/tutorials/raspberry-gpio/python-rpigpio-example
import RPi.GPIO as GPIO 
import time

GPIO.setmode(GPIO.BOARD)

#pin definitions:
led1Pin = 12 #pin for left eye
led2Pin = 16 #pin for right eye

dutycycle = 95

#pin setup
GPIO.setup(led1Pin, GPIO.OUT)
GPIO.setup(led2Pin, GPIO.OUT)



#initialize led state
GPIO.output(led1Pin, False)
GPIO.output(led2Pin, False)



while True:
    GPIO.output(led1Pin, True)
    GPIO.output(led2Pin, True)
    time.sleep(0.5)
    GPIO.output(led1Pin, False)
    GPIO.output(led2Pin, False)
    time.sleep(0.5)


"""
Explanation: Access GPIO  pins with Python
End of explanation
"""


