|
PropWare
3.0.0.229
C++ objects and CMake build system for Parallax Propeller
|
26 case 16 : range = LIS3DH_RANGE_16;
break;
27 case 8 : range = LIS3DH_RANGE_8;
break;
28 case 4 : range = LIS3DH_RANGE_4;
break;
29 default : range = LIS3DH_RANGE_2;
void lis3dh_writeByte(lis3dh_t *device, unsigned char address, unsigned char value)
write a byte value to an LIS3DH register
void lis3dh_setRange(lis3dh_t *device, int range)
Sets the g measurement range to +/- 2, +/-4, +/- 8, +- 16 g.
Simplifies reading Parallax LIS3DH 3-Axis Accelerometer Module with ADC.
unsigned char lis3dh_readByte(lis3dh_t *device, unsigned char address)
Read a value from an LIS3DH register.