## Library for retrieving readings from Adafruit STEMMA Soil Sensor.
The implementation is based on the Adafruit CircuitPython Seesaw library.
The library is tested and used on a Raspberry Pi 3 B+ board, running Raspbian but uses interfaces
from embedded_hal
for all operation so it should work in no_std
environments as well.
## Example
```rust pub fn main(intervalms: u64) { use stemmasoilsensor::SoilSensor; use linuxembeddedhal::Delay; use embeddedhal::blocking::delay::DelayMs;
let delay = Delay {};
let mut sensor = SoilSensor::init(delay).unwrap();
loop {
let temp = sensor.get_temp().unwrap();
let cap = sensor.get_capacitance().unwrap();
println!("Temperature: {:.02}", temp);
println!("Capacitance: {}", cap);
let mut delay = Delay {};
delay.delay_ms(2000u32);
}
} ```
Since this library relies on rppal for the I2C communication it won't work with other boards than the Raspberry Pi series boards as it is right now.
This library should build on the following targets: