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:
Peter Cai 2022-06-18 10:41:42 -04:00
parent 6332f11502
commit a15cc6697d

View file

@ -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 ────────────────────┘│