components

Module chirp_i2c_moisture

Source
Expand description

Components for the Chirp I2C Moisture Sensor. https://www.tindie.com/products/miceuz/i2c-soil-moisture-sensor/

§Usage

   let chirp_moisture =
       components::chirp_i2c_moisture::ChirpI2cMoistureComponent::new(mux_i2c, 0x20).finalize(
           components::chirp_i2c_moisture_component_static!(apollo3::iom::Iom<'static>),
       );

   let moisture = components::moisture::MoistureComponent::new(
       board_kernel,
       capsules_extra::moisture::DRIVER_NUM,
       chirp_moisture,
   )
   .finalize(components::moisture_component_static!(ChirpI2cMoistureType));

Structs§

Type Aliases§