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
This commit is contained in:
parent
6332f11502
commit
a15cc6697d
|
@ -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 ────────────────────┘│
|
||||
|
|
Loading…
Reference in New Issue