#include <Loom_MMA8451.h>
|
| | Loom_MMA8451 (Manager &man, int addr=0x1D, bool useMux=false, mma8451_range_t range=MMA8451_RANGE_2_G, int interruptPin=-1, uint8_t sensitivity=0x10) |
| |
| float | getAccelX () |
| |
| float | getAccelY () |
| |
| float | getAccelZ () |
| |
| uint8_t | getOrientation () |
| |
| void | setISR (InterruptCallbackFunction isr) |
| |
|
| 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 |
| |
MB1232 Distance sensor
- Author
- Will Richards
◆ Loom_MMA8451()
| Loom_MMA8451::Loom_MMA8451 |
( |
Manager & |
man, |
|
|
int |
addr = 0x1D, |
|
|
bool |
useMux = false, |
|
|
mma8451_range_t |
range = MMA8451_RANGE_2_G, |
|
|
int |
interruptPin = -1, |
|
|
uint8_t |
sensitivity = 0x10 |
|
) |
| |
Constructs a new TSL2591 sensor
- Parameters
-
| man | Reference to the manager that is used to universally package all data |
| address | I2C address that is assigned to the sensor |
| range | Range of the MMA sensor |
◆ getAccelX()
| float Loom_MMA8451::getAccelX |
( |
| ) |
|
|
inline |
◆ getAccelY()
| float Loom_MMA8451::getAccelY |
( |
| ) |
|
|
inline |
◆ getAccelZ()
| float Loom_MMA8451::getAccelZ |
( |
| ) |
|
|
inline |
◆ getOrientation()
| uint8_t Loom_MMA8451::getOrientation |
( |
| ) |
|
|
inline |
◆ initialize()
| void Loom_MMA8451::initialize |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ measure()
| void Loom_MMA8451::measure |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ package()
| void Loom_MMA8451::package |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ power_down()
| void Loom_MMA8451::power_down |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
◆ power_up()
| void Loom_MMA8451::power_up |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ setISR()
| void Loom_MMA8451::setISR |
( |
InterruptCallbackFunction |
isr | ) |
|
|
inline |
Set the ISR to be triggered when the interrupt is triggered
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_MMA8451/Loom_MMA8451.h
- C:/Users/jwilt/AppData/Local/Arduino15/packages/loom4/hardware/samd/4.5/libraries/Loom/src/Sensors/I2C/Loom_MMA8451/Loom_MMA8451.cpp