movement: WIP app for capturing accelerometer data

This commit is contained in:
Joey Castillo
2022-02-18 16:34:52 -05:00
parent 8cba4516bb
commit efde4190f1
6 changed files with 404 additions and 3 deletions

View File

@@ -148,7 +148,6 @@ inline void lis2dw_enable_fifo(void) {
bool lis2dw_read_fifo(lis2dw_fifo_t *fifo_data) {
uint8_t temp = watch_i2c_read8(LIS2DW_ADDRESS, LIS2DW_REG_FIFO_SAMPLE);
bool overrun = !!(temp & LIS2DW_FIFO_SAMPLE_OVERRUN);
uint8_t buffer[6];
fifo_data->count = temp & LIS2DW_FIFO_SAMPLE_COUNT;