public class TowerProMG90S extends ServoMotor
Datasheet: TowerPro MG90S
Example of use: TowerProMG90SExample
PWM_RANGE_GENERATOR, TARGET_FREQUENCY
DEFAULT_RPI_PWM_CLOCK_FREQUENCY, PCA9685_PULSE_TICKS, pinNumber
Constructor and Description |
---|
TowerProMG90S(PCA9685 pca9685,
PCA9685.PCA9685Channel channel)
Constructor for a servo motor TowerPro MG90S using a PCA9685 to generate PWM signals.
|
TowerProMG90S(PWMPin pin)
Constructor for a servo motor TowerPro MG90S using a specific PWM pin.
|
getPositionAngle, resetPosition, setAngle, setPulseLength, setPulseLength, stopMotor
getType, setPWM, setPWM, setPWMFreq
public TowerProMG90S(PWMPin pin)
pin
- the PWM pin to use to manage the servo.public TowerProMG90S(PCA9685 pca9685, PCA9685.PCA9685Channel channel)
pca9685
- the PCA9685 to use to manage the servo.channel
- the channel on the PCA9685 to use to manage the servo.