From d2de0612123d278f743320a3832d4e1263a782c7 Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Tue, 6 May 2014 17:11:12 +0200 Subject: accel: Add horizon/shake detection --- accel.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'accel.h') diff --git a/accel.h b/accel.h index 7d82933..6c1022d 100644 --- a/accel.h +++ b/accel.h @@ -4,10 +4,14 @@ #include #include +typedef enum {HORIZON_NONE, HORIZON_POS, HORIZON_NEG} horizon; + void accelInit (); void accelStart (); bool accelProcess (); volatile const int8_t *accelGet (); +const uint8_t accelGetShakeCount (); +const horizon accelGetHorizon (); #endif /* ACCEL_H */ -- cgit v1.2.3