#include <Loom_K30.h>
|
| Loom_K30 (Manager &man, bool useMux=false, int addr=0x68, bool warmUp=true, int valMult=1) |
|
int | getCO2 () |
|
| I2CDevice (const char *modName) |
|
bool | checkDeviceConnection () |
|
| 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 () |
|
|
bool | needsReinit = false |
|
bool | moduleInitialized = true |
|
int | module_address = -1 |
|
Handles communication with the K30 sensor
Product Page: https://www.co2meter.com/products/k-30-co2-sensor-module?variant=8463942
- Author
- Will Richards
◆ Loom_K30()
Loom_K30::Loom_K30 |
( |
Manager & |
man, |
|
|
bool |
useMux = false , |
|
|
int |
addr = 0x68 , |
|
|
bool |
warmUp = true , |
|
|
int |
valMult = 1 |
|
) |
| |
Construct a new K30 sensor using I2C to communicate
- Parameters
-
man | Reference to the manager |
useMux | If this module will be using the mux |
addr | I2C address |
warmUp | If we should wait 6 minutes before collecting data to allow the sensor to warm up |
valMult | How much to multiply the recorded output by |
◆ getCO2()
Get the current CO2 levels collected by the sensor
◆ initialize()
void Loom_K30::initialize |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ measure()
void Loom_K30::measure |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ package()
void Loom_K30::package |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ power_down()
void Loom_K30::power_down |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
◆ power_up()
void Loom_K30::power_up |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
The documentation for this class was generated from the following files:
- C:/Users/jwilt/AppData/Local/Arduino15/packages/loom4/hardware/samd/4.5/libraries/Loom/src/Sensors/I2C/Loom_K30/Loom_K30.h
- C:/Users/jwilt/AppData/Local/Arduino15/packages/loom4/hardware/samd/4.5/libraries/Loom/src/Sensors/I2C/Loom_K30/Loom_K30.cpp