bma42x: Set hardware-based axes remapping
This commit is contained in:
parent
3cb60d7705
commit
c08eb7c350
|
@ -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
|
Loading…
Reference in New Issue