Skip to content

Commit 2c19727

Browse files
committed
lsm6dsox: Arrange constants logically.
Signed-off-by: Sebastian Romero <s.romero@arduino.cc>
1 parent 00021bf commit 2c19727

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

micropython/drivers/imu/lsm6dsox/lsm6dsox.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,17 +60,14 @@
6060
_OUTX_L_G = const(0x22)
6161
_OUTX_L_XL = const(0x28)
6262
_MLC_STATUS = const(0x38)
63-
_STEP_COUNTER_L = const(0x62)
64-
_EMB_FUNC_SRC = const(0x64)
63+
_MD1_CFG = const(0x5E)
64+
_MD2_CFG = const(0x5F)
6565

6666
_PAGE_SEL = const(0x02)
6767
_PAGE_ADDRESS = const(0x08)
6868
_PAGE_VALUE = const(0x09)
6969
_PAGE_RW = const(0x17)
7070

71-
_MD1_CFG = const(0x5E)
72-
_MD2_CFG = const(0x5F)
73-
7471
_DEFAULT_ADDR = const(0x6A)
7572
_WHO_AM_I_REG = const(0x0F)
7673

@@ -87,6 +84,8 @@
8784
_EMB_FUNC_EN_B = const(0x05)
8885
_EMB_FUNC_INT1 = const(0x0A)
8986
_EMB_FUNC_INT2 = const(0x0E)
87+
_EMB_FUNC_SRC = const(0x64)
88+
_STEP_COUNTER_L = const(0x62)
9089

9190
_PEDO_DEB_STEPS_CONF = const(0x0184)
9291

0 commit comments

Comments
 (0)