pyupm_adafruitss module

class pyupm_adafruitss.adafruitss(bus, i2c_address)[source]

Bases: object

API for the Adafruit Servo Shield.

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.

C++ includes: adafruitss.hpp

servo(port, servo_type, degrees)[source]

void servo(uint8_t port, uint8_t servo_type, float degrees)

Moves one of the servos to a specified angle

port: Port of the servo on the shield (servo number)

servo_type: Can be 0 = standard (1ms to 2ms), 1 = extended (0.6ms to 2.4ms), or 2 = extended (0.8ms to 2.2ms)

degrees: Angle to set the servo to

setPWMFreq(freq)[source]

void setPWMFreq(float freq)

Sets the frequency of the servos

freq: Frequency at which the servos operate

update()[source]

int update(void)