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 ───────────────┐ │
|
# Y index ───────────────┐ │
|
||||||
# X index ─────────────┐ │ │
|
# X index ─────────────┐ │ │
|
||||||
# ├┐├┐├┐
|
# ├┐├┐├┐
|
||||||
_DEFAULT_ORIENTATION = const(0b010010101)
|
_DEFAULT_ORIENTATION = const(0b010010000)
|
||||||
# 1 = keep, 0 = negate │││
|
# 1 = keep, 0 = negate │││
|
||||||
# X sign ───────────────────┘││
|
# X sign ───────────────────┘││
|
||||||
# Y sign ────────────────────┘│
|
# Y sign ────────────────────┘│
|
||||||
|
|
Loading…
Reference in a new issue