Just received a couple new Mini Maestro 12 channel servo controlers
I loaded a code see below that has worked in the past
It moves 1 servo each time I push my button and moves six different servos in an order
when connected to Maestro Control Center I get no servo action in Maestro Control Center or on servo
can anyone see a problem with my code and share with me
Thank You
# Uses WAIT_FOR_BUTTON_PRESS to allow a user to step through a sequence
# of positions on servo 2,3,4,5
begin
wait_for_button_press
6000 5 servo
300 delay
0 5 servo
wait_for_button_press
6000 6 servo
300 delay
0 6 servo
wait_for_button_press
6000 4 servo
300 delay
0 4 servo
wait_for_button_press
6000 7 servo
300 delay
0 7 servo
wait_for_button_press
6000 3 servo
300 delay
0 3 servo
wait_for_button_press
6000 8 servo
300 delay
0 8 servo
repeat
# Returns 1 if the button is pressed, 0 otherwise.
sub button
0 get_position 500 less_than
return
# Waits for a button press, with debouncing.
# (Requires the BUTTON subroutine.)
sub wait_for_button_press
wait_for_button_open_10ms
wait_for_button_closed_10ms
return
# wait for the button to be NOT pressed for at least 10 ms
sub wait_for_button_open_10ms
get_ms # put the current time on the stack
begin
# reset the time on the stack if it is pressed
button
if
drop get_ms
else
get_ms over minus 10 greater_than
if drop return endif
endif
repeat
# wait for the button to be pressed for at least 10 ms
sub wait_for_button_closed_10ms
get_ms
begin
# reset the time on the stack if it is pressed
button
if
get_ms over minus 10 greater_than
if drop return endif
else
drop get_ms
endif
repeat