#include <Loom_ADS1115.h>
|
| void | initialize () override |
| |
| void | measure () override |
| |
| void | package () override |
| |
| void | power_up () override |
| |
| | Loom_ADS1115 (Manager &man, byte address=ADS1X15_ADDRESS, bool useMux=false, bool enable_analog=true, bool enable_diff=false, adsGain_t gain=adsGain_t::GAIN_ONE) |
| |
| int | getAnalog (int pin) |
| |
| int | getDiff (int pin) |
| |
|
| 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 |
| |
Functionality for the ADS1115
- Author
- Will Richards
◆ Loom_ADS1115()
| Loom_ADS1115::Loom_ADS1115 |
( |
Manager & |
man, |
|
|
byte |
address = ADS1X15_ADDRESS, |
|
|
bool |
useMux = false, |
|
|
bool |
enable_analog = true, |
|
|
bool |
enable_diff = false, |
|
|
adsGain_t |
gain = adsGain_t::GAIN_ONE |
|
) |
| |
Construct a new ADS1115
- Parameters
-
| man | Reference to the manager |
| useMux | Whether or not to use the mux |
| address | I2C address to communicate over |
| enable_analog | If we want to read the analog data from the ADS1115 |
| enable_diff | If we want to read the differential data from the sensor |
| gain | How much gain to apply to the readings. |
◆ getAnalog()
| int Loom_ADS1115::getAnalog |
( |
int |
pin | ) |
|
|
inline |
Get the value in the analog table according to analog number not INDEX
- Parameters
-
| pin | Pin to get data from (1-4) |
◆ getDiff()
| int Loom_ADS1115::getDiff |
( |
int |
pin | ) |
|
|
inline |
Get the value in the diff table according to diff number not INDEX
- Parameters
-
| pin | Pin to get data from (1-2) |
◆ initialize()
| void Loom_ADS1115::initialize |
( |
| ) |
|
|
overridevirtual |
◆ measure()
| void Loom_ADS1115::measure |
( |
| ) |
|
|
overridevirtual |
◆ package()
| void Loom_ADS1115::package |
( |
| ) |
|
|
overridevirtual |
◆ power_down()
| void Loom_ADS1115::power_down |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
◆ power_up()
| void Loom_ADS1115::power_up |
( |
| ) |
|
|
overridevirtual |
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_ADS1115/Loom_ADS1115.h
- C:/Users/jwilt/AppData/Local/Arduino15/packages/loom4/hardware/samd/4.5/libraries/Loom/src/Sensors/I2C/Loom_ADS1115/Loom_ADS1115.cpp