Skip to content

Instantly share code, notes, and snippets.

@davidbegin
Created October 11, 2013 02:28
Show Gist options
  • Save davidbegin/6928716 to your computer and use it in GitHub Desktop.
Save davidbegin/6928716 to your computer and use it in GitHub Desktop.
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