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


Classes | |
| struct | Position |
Public Types | |
| enum | Mode { POS , GEST } |
Public Member Functions | |
| Loom_ZXGesture (Manager &man, int address=0x10, bool useMux=false, Mode mode=Mode::POS) | |
| const char * | getGesture () |
| uint8_t | getGestureSpeed () |
| Position | getPosition () |
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 | power_up () override |
| void | power_down () override |
| void | measure () override |
| void | initialize () 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 |
ZX Gesture distance sensor
| enum Loom_ZXGesture::Mode |
Mode to put the sensor into which alters what type of data it is trying to sense
| Loom_ZXGesture::Loom_ZXGesture | ( | Manager & | man, |
| int | address = 0x10, |
||
| bool | useMux = false, |
||
| Mode | mode = Mode::POS |
||
| ) |
Constructs a new TSL2591 sensor
| man | Reference to the manager that is used to universally package all data |
| address | I2C address that is assigned to the sensor |
| mode | Measuring mode we want to interpret data using |
|
inline |
Get last recorded gesture
|
inline |
Get the speed at which the last gesture has been preformed
|
inline |
Get position in mm
|
overrideprotectedvirtual |
Implements Module.
|
overrideprotectedvirtual |
Implements Module.
|
overrideprotectedvirtual |
Implements Module.
|
inlineoverrideprotectedvirtual |
Implements Module.
|
inlineoverrideprotectedvirtual |
Implements Module.