From a15cc6697d1e71a005ec30a150b1109bf54a434e Mon Sep 17 00:00:00 2001 From: Peter Cai Date: Sat, 18 Jun 2022 10:41:42 -0400 Subject: [PATCH] bma421: Flip all axes This is what the hardware requires for gesture detection to work (all clockwise directions should be positive, and counterclockwise directions are negative). TODO: Correct all software logic to match --- wasp/drivers/bma421.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wasp/drivers/bma421.py b/wasp/drivers/bma421.py index fa40fcc..d69cc56 100644 --- a/wasp/drivers/bma421.py +++ b/wasp/drivers/bma421.py @@ -19,7 +19,7 @@ from machine import Pin # Y index ───────────────┐ │ # X index ─────────────┐ │ │ # ├┐├┐├┐ -_DEFAULT_ORIENTATION = const(0b010010101) +_DEFAULT_ORIENTATION = const(0b010010000) # 1 = keep, 0 = negate │││ # X sign ───────────────────┘││ # Y sign ────────────────────┘│