Loom 4 v4.5
Arduino library for Internet of Things Rapid Prototyping in environmental sensing
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | List of all members
Loom_STEMMA Class Reference

#include <Loom_STEMMA.h>

Inheritance diagram for Loom_STEMMA:
Inheritance graph
[legend]
Collaboration diagram for Loom_STEMMA:
Collaboration graph
[legend]

Public Member Functions

 Loom_STEMMA (Manager &man, int addr=0x36, bool useMux=false)
 
float getTemperature ()
 
uint16_t getCapacitive ()
 
- Public Member Functions inherited from I2CDevice
 I2CDevice (const char *modName)
 
bool checkDeviceConnection ()
 
- Public Member Functions inherited from Module
 Module (const char *modName)
 
void setModuleName (const char *modName)
 
virtual const char * getModuleName ()
 
virtual void printModuleName (const char *message)
 
virtual void initialize ()=0
 
virtual void measure ()=0
 
virtual void package ()=0
 
virtual void power_up ()=0
 
virtual void power_down ()=0
 
virtual void display_data ()
 

Protected Member Functions

void measure () override
 
void initialize () override
 
void power_up () override
 
void power_down () override
 
void package () override
 

Additional Inherited Members

- Public Attributes inherited from I2CDevice
bool needsReinit = false
 
- Public Attributes inherited from Module
bool moduleInitialized = true
 
int module_address = -1
 

Detailed Description

STEMMA Soil Moisture sensor

Author
Will Richards

Constructor & Destructor Documentation

◆ Loom_STEMMA()

Loom_STEMMA::Loom_STEMMA ( Manager man,
int  addr = 0x36,
bool  useMux = false 
)

Constructs a new TSL2591 sensor

Parameters
manReference to the manager that is used to universally package all data
addressI2C address that is assigned to the sensor

Member Function Documentation

◆ getCapacitive()

uint16_t Loom_STEMMA::getCapacitive ( )
inline

Get recorded infrared light

◆ getTemperature()

float Loom_STEMMA::getTemperature ( )
inline

Get temperature

◆ initialize()

void Loom_STEMMA::initialize ( )
overrideprotectedvirtual

Implements Module.

◆ measure()

void Loom_STEMMA::measure ( )
overrideprotectedvirtual

Implements Module.

◆ package()

void Loom_STEMMA::package ( )
overrideprotectedvirtual

Implements Module.

◆ power_down()

void Loom_STEMMA::power_down ( )
inlineoverrideprotectedvirtual

Implements Module.

◆ power_up()

void Loom_STEMMA::power_up ( )
inlineoverrideprotectedvirtual

Implements Module.


The documentation for this class was generated from the following files: