Loom_STEMMA class
Adafruit Stemma soil moisture sensor.
Contents
Base classes
- class LoomI2CSensor
- Abstract root for I2C sensor modules.
Protected variables
- Adafruit_seesaw ss
- Adafruit Seesaw object.
- float temperature
- Sensor data objects.
CONSTRUCTORS / DESTRUCTOR
- Loom_STEMMA(LoomManager* manager, byte i2c_address = 0x36, const uint8_t mux_port = 255)
- Constructor.
- Loom_STEMMA(LoomManager* manager, JsonArrayConst p)
- Constructor that takes Json Array, extracts args and delegates to regular constructor.
- ~Loom_STEMMA() defaulted virtual
- Destructor.
OPERATION
PRINT INFORMATION
- void print_measurements() const override
- Print the last set of measurements taken.
Function documentation
Loom_ STEMMA:: Loom_STEMMA(LoomManager* manager,
byte i2c_address = 0x36,
const uint8_t mux_port = 255)
Constructor.
Parameters | |
---|---|
manager | |
i2c_address in | Set(Int) | <0x36> | {0x36} | I2C address |
mux_port in | Int | <255> | [0-16] | Port on multiplexer |
Loom_ STEMMA:: Loom_STEMMA(LoomManager* manager,
JsonArrayConst p)
Constructor that takes Json Array, extracts args and delegates to regular constructor.
Parameters | |
---|---|
manager | |
p in | The array of constuctor args to expand |
void Loom_ STEMMA:: package(JsonObject json) override
Package a modules measurements or state.
Parameters | |
---|---|
json out | Object to put data into |
void Loom_ STEMMA:: print_measurements() const override
Print the last set of measurements taken.
Does not package the data.