summaryrefslogtreecommitdiffstats
path: root/apps/accelerometer-test
diff options
context:
space:
mode:
authorJoey Castillo <joeycastillo@utexas.edu>2022-02-18 00:05:57 -0500
committerJoey Castillo <joeycastillo@utexas.edu>2022-02-18 00:05:57 -0500
commitdf2cc7e94f91a15a41c36935875f6f9be42cdabd (patch)
tree63add75f7e9435d2a569f173e35eb9957dd73b04 /apps/accelerometer-test
parent0c59c972e7296ac8c23049e713da9350a9af39a5 (diff)
downloadSensor-Watch-df2cc7e94f91a15a41c36935875f6f9be42cdabd.tar.gz
Sensor-Watch-df2cc7e94f91a15a41c36935875f6f9be42cdabd.tar.bz2
Sensor-Watch-df2cc7e94f91a15a41c36935875f6f9be42cdabd.zip
WIP accelerometer logging to flash
Diffstat (limited to 'apps/accelerometer-test')
-rw-r--r--apps/accelerometer-test/app.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/accelerometer-test/app.c b/apps/accelerometer-test/app.c
index 1a3acafa..bd4cdaaa 100644
--- a/apps/accelerometer-test/app.c
+++ b/apps/accelerometer-test/app.c
@@ -28,6 +28,10 @@ static void cb_tick(void) {
bool overrun = lis2dw_read_fifo(&fifo);
printf("FIFO captured %d readings.\n", fifo.count);
if (overrun) printf("\tThere was an overrun!\n\n");
+
+ printf("%d, %d, %d\n", fifo.readings[0].x, fifo.readings[0].y, fifo.readings[0].z);
+ printf("%d, %d, %d\n", fifo.readings[10].x, fifo.readings[10].y, fifo.readings[10].z);
+ printf("%d, %d, %d\n", fifo.readings[20].x, fifo.readings[20].y, fifo.readings[20].z);
}
void app_init(void) {