|
|
| UnitPbHub (const uint8_t addr=DEFAULT_ADDRESS) |
| |
|
virtual bool | begin () override |
| |
| uint8_t | firmwareVersion () const |
| | Get the firmware version.
|
| |
| bool | readFirmwareVersion (uint8_t &ver) |
| | Read the firmware version.
|
| |
| bool | changeI2CAddress (const uint8_t addr) |
| | Change device I2C address.
|
| |
|
| bool | writeDigital0 (const uint8_t ch, const bool high) |
| | Write digital 0 to a specific channel.
|
| |
| bool | writeDigital1 (const uint8_t ch, const bool high) |
| | Write digital 1 to a specific channel.
|
| |
| bool | readDigital0 (bool &high, const uint8_t ch) |
| | Read digital 0 from a specific channel.
|
| |
| bool | readDigital1 (bool &high, const uint8_t ch) |
| | Read digital 0 from a specific channel.
|
| |
|
|
| bool | writeAnalog0 (const uint8_t ch, const uint8_t val) |
| | Write analog 0 to a specific channel.
|
| |
| bool | writeAnalog1 (const uint8_t ch, const uint8_t val) |
| | Write analog 1 to a specific channel.
|
| |
|
| bool | readAnalog0 (uint16_t &val, const uint8_t ch) |
| | Read analog 0 from a specific channel.
|
| |
|
- Warning
- Function in v1.1 or later
|
| bool | writePWM0 (const uint8_t ch, const uint8_t pwm) |
| | Write PWN 0 to a specific channel.
|
| |
| bool | writePWM1 (const uint8_t ch, const uint8_t pwm) |
| | Write PWN 1 to a specific channel.
|
| |
| bool | readPWM0 (uint8_t &pwm, const uint8_t ch) |
| | Read PWN 0 from a specific channel.
|
| |
| bool | readPWM1 (uint8_t &pwm, const uint8_t ch) |
| | Read PWN 0 from a specific channel.
|
| |
|
- Warning
- Function in v1.1 or later
|
| bool | writeLEDCount (const uint8_t ch, const uint16_t num) |
| | Write the number of the LED to a specific channel.
|
| |
| bool | writeLEDColor (const uint8_t ch, const uint16_t index, const uint32_t rgb888) |
| | Write the LED color to a specific channel.
|
| |
| bool | fillLEDColor (const uint8_t ch, const uint32_t rgb888, const uint16_t first=0, const uint16_t count=0) |
| | Fill the LED color to a specific channel.
|
| |
| bool | writeLEDBrightness (const uint8_t ch, const uint8_t value) |
| | Write the LED brightness to a specific channel.
|
| |
| bool | writeLEDMode (const pbhub::LEDMode m) |
| | Write the LED control mode.
|
| |
| bool | readLEDMode (pbhub::LEDMode &m) |
| | Read the LED control mode.
|
| |
|
- Warning
- Function in v1.1 or later
- Note
- angle valid range between 0 and 180
-
pulse valid range between 500 and 2500
|
| bool | writeServo0Angle (const uint8_t ch, const uint8_t angle) |
| | Write servo 0 angle to a specific channel.
|
| |
| bool | writeServo1Angle (const uint8_t ch, const uint8_t angle) |
| | Write servo 1 angle to a specific channel.
|
| |
| bool | writeServo0Pulse (const uint8_t ch, const uint16_t pulse) |
| | Write servo 0 pulse to a specific channel.
|
| |
| bool | writeServo1Pulse (const uint8_t ch, const uint16_t pulse) |
| | Write servo 1 pulse to a specific channel.
|
| |
| bool | readServo0Angle (uint8_t &angle, const uint8_t ch) |
| | Read servo 0 angle from a specific channel.
|
| |
| bool | readServo1Angle (uint8_t &angle, const uint8_t ch) |
| | Read servo 1 angle from a specific channel.
|
| |
| bool | readServo0Pulse (uint16_t &pulse, const uint8_t ch) |
| | Read servo 0 pulse from a specific channel.
|
| |
| bool | readServo1Pulse (uint16_t &pulse, const uint8_t ch) |
| | Read servo 1 pulse from a specific channel.
|
| |
|
|
virtual std::shared_ptr< Adapter > | ensure_adapter (const uint8_t ch) override |
| |
|
bool | write_digital (const uint8_t ch, const uint8_t index, const bool high) |
| |
|
bool | read_digital (const uint8_t ch, const uint8_t index, bool &high) |
| |
|
bool | write_analog (const uint8_t ch, const uint8_t index, const uint8_t val) |
| |
|
bool | write_pwm (const uint8_t ch, const uint8_t index, const uint8_t val) |
| |
|
bool | read_pwm (const uint8_t ch, const uint8_t index, uint8_t &val) |
| |
|
bool | write_servo_angle (const uint8_t ch, const uint8_t index, const uint8_t angle) |
| |
|
bool | read_servo_angle (const uint8_t ch, const uint8_t index, uint8_t &angle) |
| |
|
bool | write_servo_pulse (const uint8_t ch, const uint8_t index, const uint16_t angle) |
| |
|
bool | read_servo_pulse (const uint8_t ch, const uint8_t index, uint16_t &angle) |
| |
|
bool | is_firmware_2_or_later () const |
| |
|
bool | is_pbhub () const |
| |
|
bool | is_pbhub_v11 () const |
| |