adafruitss Class
- ID: adafruitss
- Name: Adafruit Servo Shield
- Category: servos
- Manufacturer: adafruit
- Link: http://www.adafruit.com/product/1411
- Connection: i2c
UPM library for the PCA9685-based Adafruit 16-channel servo shield. If 3 or more GWS servos are attached, results could be unpredictable. Adafruit Industries recommend installing a capacitor on the board, which should alleviate the issue. Sizing depends on servos and their number.
Item Index
Methods
Methods
adafruitss
-
bus
-
i2c_address
Creates an adafruitss object
Parameters:
-
bus
NumberNumber of the used I2C bus
-
i2c_address
NumberAddress of the servo shield on the I2C bus
Returns:
update
()
Number
Returns:
setPWMFreq
-
freq
Sets the frequency of the servos
Parameters:
-
freq
NumberFrequency at which the servos operate
servo
-
port
-
servo_type
-
degrees
Moves one of the servos to a specified angle
Parameters:
-
port
NumberPort of the servo on the shield (servo number)
-
servo_type
NumberCan be 0 = standard (1ms to 2ms), 1 = extended (0.6ms to 2.4ms), or 2 = extended (0.8ms to 2.2ms)
-
degrees
NumberAngle to set the servo to