axp173

CI

What is this?

This is a embedded-hal driver for X-Powers' Power Management IC AXP173.

It's device-agnostic and uses embedded-hal's Write/WriteRead for I2C communication.

Usage

  1. Add dependency to Cargo.toml:

    bash cargo add axp173

  2. Instantiate and init the device:

    ```rust // ... declare and configure your I2c peripheral ...

    // Init AXP173 PMIC let axp173 = axp173::Axp173::new(i2c); axp173.init()?; Ok(axp173) ```

  3. Configure the PMIC

    rust todo!()

Details and examples

TODO

Status

What is done and tested and what is not yet: