Public Member Functions | |
| def | __init__ |
| def | __str__ |
| def | getChannelAddress |
| def | __pwmRead__ |
| def | __pwmWrite__ |
Public Member Functions inherited from webiopi.devices.analog.PWM | |
| def | __init__ |
| def | __family__ |
| def | checkPWMChannel |
| def | checkPWMValue |
| def | __pwmRead__ |
| def | __pwmWrite__ |
| def | pwmCount |
| def | pwmResolution |
| def | pwmMaximum |
| def | pwmRead |
| def | pwmReadFloat |
| def | pwmWrite |
| def | pwmWriteFloat |
| def | getReverse |
| def | setReverse |
| def | RatioToAngle |
| def | AngleToRatio |
| def | pwmReadAngle |
| def | pwmWriteAngle |
| def | pwmWildcard |
Public Member Functions inherited from webiopi.devices.i2c.I2C | |
| def | __init__ |
| def | __str__ |
| def | readRegister |
| def | readRegisters |
| def | writeRegister |
| def | writeRegisters |
Public Member Functions inherited from webiopi.devices.bus.Bus | |
| def | __init__ |
| def | open |
| def | close |
| def | read |
| def | readBytes |
| def | readByte |
| def | write |
| def | writeBytes |
| def | writeByte |
Public Attributes | |
| VREF | |
| prescale | |
| mode1 | |
Public Attributes inherited from webiopi.devices.analog.PWM | |
| frequency | |
| period | |
| servo_neutral | |
| servo_travel_time | |
| servo_travel_angle | |
| reverse | |
Public Attributes inherited from webiopi.devices.i2c.I2C | |
| channel | |
| slave | |
Public Attributes inherited from webiopi.devices.bus.Bus | |
| busName | |
| device | |
| flag | |
| fd | |
Static Public Attributes | |
| int | MODE1 = 0x00 |
| int | PWM_BASE = 0x06 |
| int | PRESCALE = 0xFE |
| int | M1_SLEEP = 1 |
| int | M1_AI = 1 |
| int | M1_RESTART = 1 |
Definition at line 20 of file pca9685.py.
| def webiopi.devices.analog.pca9685.PCA9685.__init__ | ( | self, | |
slave = 0x40, |
|||
frequency = 50 |
|||
| ) |
Definition at line 29 of file pca9685.py.
References webiopi.utils.types.toint().
| def webiopi.devices.analog.pca9685.PCA9685.__pwmRead__ | ( | self, | |
| channel | |||
| ) |
Definition at line 49 of file pca9685.py.
References webiopi.devices.analog.pca9685.PCA9685.getChannelAddress(), and webiopi.devices.i2c.I2C.readRegisters().
| def webiopi.devices.analog.pca9685.PCA9685.__pwmWrite__ | ( | self, | |
| channel, | |||
| value | |||
| ) |
Definition at line 56 of file pca9685.py.
References webiopi.devices.analog.pca9685.PCA9685.getChannelAddress(), and webiopi.devices.i2c.I2C.writeRegisters().
| def webiopi.devices.analog.pca9685.PCA9685.__str__ | ( | self | ) |
Definition at line 43 of file pca9685.py.
References webiopi.devices.i2c.I2C.slave, and webiopi.devices.digital.mcp23XXX.MCP23SXX.slave.
| def webiopi.devices.analog.pca9685.PCA9685.getChannelAddress | ( | self, | |
| channel | |||
| ) |
Definition at line 46 of file pca9685.py.
References webiopi.devices.analog.pca9685.PCA9685.PWM_BASE.
Referenced by webiopi.devices.analog.pca9685.PCA9685.__pwmRead__(), and webiopi.devices.analog.pca9685.PCA9685.__pwmWrite__().
|
static |
Definition at line 26 of file pca9685.py.
|
static |
Definition at line 27 of file pca9685.py.
|
static |
Definition at line 25 of file pca9685.py.
|
static |
Definition at line 21 of file pca9685.py.
| webiopi.devices.analog.pca9685.PCA9685.mode1 |
Definition at line 35 of file pca9685.py.
|
static |
Definition at line 23 of file pca9685.py.
| webiopi.devices.analog.pca9685.PCA9685.prescale |
Definition at line 34 of file pca9685.py.
|
static |
Definition at line 22 of file pca9685.py.
Referenced by webiopi.devices.analog.pca9685.PCA9685.getChannelAddress().
| webiopi.devices.analog.pca9685.PCA9685.VREF |
Definition at line 32 of file pca9685.py.
1.8.8