adafruit_husb238
¶
CircuitPython helper library for the HUSB238 Type C Power Delivery Dummy Breakout
Author(s): Liz Clark
Implementation Notes¶
Hardware:
Software and Dependencies:
Adafruit CircuitPython firmware for the supported boards: https://circuitpython.org/downloads
Adafruit’s Bus Device library: https://github.com/adafruit/Adafruit_CircuitPython_BusDevice
Adafruit’s Register library: https://github.com/adafruit/Adafruit_CircuitPython_Register
- 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
- response = 3¶
PD response