Created
October 11, 2013 02:28
-
-
Save davidbegin/6928716 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
while y != "no": | |
print ">>>> M value is: ", m | |
s = int(raw_input(">>> Which Servo? >> ")) | |
if s == 2 | |
# here we need to set it to go up and down | |
else | |
m = int(raw_input(">>> Where? >> ")) | |
if m > 149 and m < 601: | |
pwm.setPWM(s, 0, m) | |
elif m < 150: | |
m = 151 | |
pwm.setPWM(s, 0, m) | |
elif m > 600: | |
m = 600 | |
pwm.setPWM(s, 0, m) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment