Struct anyleaf::PhSensor [−][src]
Fields
addr: u8
cal_1: CalPt
cal_2: CalPt
cal_3: Option<CalPt>
Implementations
Create a new sensor with an ADC I2C address of 0x49.
Set calibration to a sensible default for nitrate, with unit mg/L
Set calibration to a sensible default for phosphate, with unit mg/L
Set calibration to a sensible default for potassium, with unit mg/L
Take a pH reading
Useful for getting calibration data
Useful for getting calibration data
Calibrate by measuring voltage and temp at a given pH. Set the calibration, and return (Voltage, Temp).