Project 9: R1BBIT ONE + 4 SERVO + WIDGETS

Slider widgets send user-defined values to the Servo# variables once per second, and the program automatically moves the corresponding servo to the selected position in real time.
All of this works automatically, without requiring any code from the user.

VAR S,SERVO1,SERVO2,SERVO3,SERVO4

WHILE (1)

    S=SERVO1/7
    PWM1 CH1 50,S,0

    S=SERVO2/7
    PWM1 CH2 50,S,0 

    S=SERVO3/7    
    PWM2 CH1 50,S,0 

    S=SERVO4/7    
    PWM2 CH2 50,S,0 

WEND

×
100%