bma42x: Set hardware-based axes remapping

This commit is contained in:
Peter Cai 2022-06-17 16:44:57 -04:00
parent 3cb60d7705
commit c08eb7c350
2 changed files with 6 additions and 1 deletions

View File

@ -55,6 +55,11 @@ class BMA421:
perf_mode=bma42x.CIC_AVG_MODE)
dev.feature_enable(bma42x.STEP_CNTR, True)
# Set axes remapping
# This works only for hardware-based intelligence.
# Software readout is remapped manually in accel_xyz().
dev.set_remap_axes(self._orientation)
@property
def steps(self):
"""Report the number of steps counted."""

@ -1 +1 @@
Subproject commit b968b2530440afae8b555613e89b1240afcf4da2
Subproject commit 85622fc37610ebb3821f0b315c37c69a4bffa72d