Crates.io | bq24195-i2c |
lib.rs | bq24195-i2c |
version | 0.1.2 |
source | src |
created_at | 2020-04-04 14:47:19.732506 |
updated_at | 2020-04-04 14:51:32.11515 |
description | I2C driver for Texas Instruments BQ24195 Single Cell Charger |
homepage | |
repository | https://github.com/sameer/bq24195-i2c |
max_upload_size | |
id | 226284 |
size | 41,836 |
The documentation for this library should cover everything you need to know about the chip and its i2c registers.
A usage example is given in the examples
folder.
This should also work on other SAMD21 boards.
RUSTFLAGS='-C link-arg=-Tlink.x' cargo build --release --target thumbv6m-none-eabi --example arduino_mkrvidor4000
arm-none-eabi-objcopy -O binary target/thumbv6m-none-eabi/release/usbblaster-rs target/usbblaster-rs.bin
# Manual step: push reset button twice in quick succession to enter flash mode
bossac -i -d -U true -i -e -w -v target/usbblaster-rs.bin -R