|
PropWare
3.0.0.229
C++ objects and CMake build system for Parallax Propeller
|
27 reg = (mode == 3) ? reg | LIS3DH_MASK_SPIMODE : reg & ~LIS3DH_MASK_SPIMODE;
void lis3dh_writeByte(lis3dh_t *device, unsigned char address, unsigned char value)
write a byte value to an LIS3DH register
Simplifies reading Parallax LIS3DH 3-Axis Accelerometer Module with ADC.
void lis3dh_setSPImode(lis3dh_t *device, int mode)
Sets the SPI mode to either 3-wire or 4-wire.
unsigned char lis3dh_readByte(lis3dh_t *device, unsigned char address)
Read a value from an LIS3DH register.