|
Loom 4 v4.5
Arduino library for Internet of Things Rapid Prototyping in environmental sensing
|
#include <Loom_Analog.h>


Public Member Functions | |
| void | measure () override |
| void | package () override |
| template<typename T , typename... Args> | |
| Loom_Analog (Manager &man, T firstPin, Args... additionalPins) | |
| template<typename T > | |
| Loom_Analog (Manager &man, T firstPin) | |
| Loom_Analog (Manager &man) | |
| float | getBatteryVoltage () |
| float | getMV (int pin) |
| float | getAnalog (int pin) |
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 | power_up () override |
| void | power_down () override |
| void | initialize () override |
Additional Inherited Members | |
Public Attributes inherited from Module | |
| bool | moduleInitialized = true |
| int | module_address = -1 |
Used to read Analog voltages from the analog pins on the feather M0
|
inline |
Templated constructor that uses more than 1 analog pin
| man | Reference to the manager |
| firstPin | First analog pin we want to read from |
| additionalPins | Variable length argument allowing you to supply multiple pins |
|
inline |
Templated constructor that uses only 1 analog pin
| man | Reference to the manager |
| firstPin | First analog pin we want to read from |
|
inline |
Templated constructor that only reads the battery voltage
| man | Reference to the manager |
| float Loom_Analog::getAnalog | ( | int | pin | ) |
Get the analog value from a given pin
| pin | The pin to get the data from eg. A0, A1, ... |
| float Loom_Analog::getBatteryVoltage | ( | ) |
Get the current voltage of the battery
| float Loom_Analog::getMV | ( | int | pin | ) |
Get the Millivolts of a specified pin
| pin | The pin to get the data from eg. A0, A1, ... |
|
inlineoverrideprotectedvirtual |
Implements Module.
|
overridevirtual |
Implements Module.
|
overridevirtual |
Implements Module.
|
inlineoverrideprotectedvirtual |
Implements Module.
|
inlineoverrideprotectedvirtual |
Implements Module.