int lis3dh_tilt(lis3dh_t *device, int *ax, int *ay, int *az, int *motion)
Gets tilt angle measurements for each axis, and magnitude of motion.
int print(const char *format,...) __attribute__((format(printf
Print format "..." args to the default simple terminal device. The output is limited to 256 bytes.
lis3dh_t * lis3dh_init(int pinSCK, int pinSDI, int pinCS)
Initialize the sensor with typical configuration for reading axis and adc. Uses 3-Wire SPI mode.