eldruin / ads1x1x-rs

Platform-agnostic Rust driver for the ADS1x1x ultra-small, low-power analog-to-digital converters (ADC). Compatible with ADS1013, ADS1014, ADS1015, ADS1113, ADS1114 and ADS1115
https://blog.eldruin.com/ads1x1x-analog-to-digital-converter-driver-in-rust/
Apache License 2.0
31 stars 9 forks source link

Remove `I2cInterface`. #20

Closed reitermarkus closed 5 months ago

reitermarkus commented 5 months ago

Since embedded_hal::i2c::I2c provides both read and write, it make sense to merge the ReadData and WriteData traits.

Removes I2cInterface and instead depend on the embedded-hal traits directly.

eldruin commented 5 months ago

I fixed the CI now and added a couple of small changes. Could you rebase this?

KidiIT commented 5 months ago

All checked and successfully approved🤓❤️

KidiIT commented 5 months ago

All done here!🤓❤️