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

Example for STM32F4 #11

Open snorkman88 opened 11 months ago

snorkman88 commented 11 months ago

I am in the process of porting a micropython firmware to rust using embassy and need to interact with an ADS1015. Would it be possible to provide a sample code please?

eldruin commented 11 months ago

There is an example for an STM32F3 here, an example for an STM32F1 here on top of the linux examples in this crate. I think those should be fairly simple to adapt to an STM32F4 but feel free to ask me further questions.