AXP313A

A CircuitPython module for managing the AXP313A pmic over I2C, along with the common voltages to power cameras with it.

  • Author(s): Bill Sideris

Implementation Notes

Software and Dependencies:

class AXP313A.AXP313A(i2c)

The main class. Create an object by passing an i2c bus.

The bus does not need to be locked or ready at the time of creation.

begin() bool

Check if the chip is ready and available.

Returns bool.

disable_power() None

Set all the voltages to 0.

set_power(DVDD: float, AVDDorDOVDD: float) bool

Sets the power to the specified voltages. If an incorrect voltage is set, you got a firework in your hands.

set_shutdown_key_level_time(offLevelTime: int) None

An undocumented & unused function that was carried off from the dfrobot arduino / micropython modules.

Seems to affect button press time.

class AXP313A.camera_voltages

Contains preset values for specific camera sensors.

Currently, the supported cameras are: OV2640 and OV7725.

AXP313A.disable_camera(axpobject) None

An alias for disable_power.

AXP313A.enable_camera(axpobject, camera: list) bool

Quick function to enable power for a specific camera sensors.

Call like: enable_camera(my_axp, camera_voltages.OV2640)