adafruit_husb238

CircuitPython helper library for the HUSB238 Type C Power Delivery Dummy Breakout

  • Author(s): Liz Clark

Implementation Notes

Hardware:

Software and Dependencies:

class adafruit_husb238.Adafruit_HUSB238(i2c: Type[busio.I2C], i2c_address: int = _I2CADDR_DEFAULT)

Instantiates a new HUSB238 class.

Parameters:
  • i2c (Type[I2C]) – The I2C device we’ll use to communicate.

  • i2c_address (int) – The 7-bit I2C address of the HUSB238, defaults to 0x40.

attached

Attachment status

property available_voltages: List[int]

List of available voltages

Returns:

List of available voltages.

Return type:

List[int]

cc_direction

CC direction

contract_a_5v = 2

5V contract current status

contract_v_5v

5V contract voltage status

property current: int

Source current

Returns:

The source current

Return type:

int

reset() None

Reset command to the HUSB238 device.

response = 3

PD response

property voltage: int

PD voltage

Return type:

int