Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # from smbus2 import SMBus
- from ServoLibII import * # https://pastebin.com/RhKjeKC1
- from time import sleep
- i2c_bus = SMBus("/dev/i2c-2")
- x = PCA9685(i2c_bus, 0b10000000)
- if x == 45 or x == 180:
- angle = int(input("Please provide your angle in a numerical value: "))
- if x <= 180 and x >= 0:
- angle = i
- print("Your Angle Number is: %d" % i)
Add Comment
Please, Sign In to add comment