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
1 changed files with 1 additions and 1 deletions

View File

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