70 MMA7660(
int bus, uint8_t address=MMA7660_DEFAULT_I2C_ADDR);
84 bool writeByte(uint8_t reg, uint8_t byte);
211 std::vector<float> values(3);
225 std::vector<int> values(3);
239 void installISR(
int pin,
void (*isr)(
void *),
void *arg);
bool writeByte(uint8_t reg, uint8_t byte)
Definition: mma7660.cxx:48
void setModeStandby()
Definition: mma7660.cxx:80
void installISR(int pin, void(*isr)(void *), void *arg)
Definition: mma7660.cxx:158
bool tiltTap()
Definition: mma7660.cxx:138
API for the MMA7660 I2C 3-Axis Digital Accelerometer.
Definition: mma7660.hpp:61
bool setSampleRate(MMA7660_AUTOSLEEP_T sr)
Definition: mma7660.cxx:178
bool tiltShake()
Definition: mma7660.cxx:148
C++ API wrapper for the bh1749 driver.
Definition: a110x.hpp:29
std::vector< int > getRawValues()
Definition: mma7660.hpp:223
bool setInterruptBits(uint8_t ibits)
Definition: mma7660.cxx:170
void setModeActive()
Definition: mma7660.cxx:73
uint8_t readByte(uint8_t reg)
Definition: mma7660.cxx:56
uint8_t tiltBackFront()
Definition: mma7660.cxx:118
uint8_t tiltLandscapePortrait()
Definition: mma7660.cxx:128
uint8_t getVerifiedTilt()
Definition: mma7660.cxx:108
void uninstallISR()
Definition: mma7660.cxx:165
int getVerifiedAxis(MMA7660_REG_T axis)
Definition: mma7660.cxx:88
std::vector< float > getAcceleration()
Definition: mma7660.hpp:209
virtual ~MMA7660()
Definition: mma7660.cxx:43
C API for the mma7660 driver.
MMA7660(int bus, uint8_t address=MMA7660_DEFAULT_I2C_ADDR)
Definition: mma7660.cxx:35