Damien George
e6b89eafa3
all: Remove unnecessary start argument in range.
...
To satisfy Ruff.
Signed-off-by: Damien George <damien@micropython.org>
2023-09-01 00:17:28 +10:00
Damien George
1b557eee5c
lsm6dsox: Bump patch version.
...
For changes in 2d16f210b9
.
Signed-off-by: Damien George <damien@micropython.org>
2023-08-23 11:41:22 +10:00
Angus Gratton
786c0ea895
all: Add missing const imports
...
Found by Ruff checking F821.
Signed-off-by: Angus Gratton <angus@redyak.com.au>
2023-08-22 22:43:18 +10:00
Angus Gratton
2d16f210b9
lsm6dsox: Add missing time import.
...
Driver calls time.sleep_ms() in one place.
Found by Ruff checking F821.
Signed-off-by: Angus Gratton <angus@redyak.com.au>
2023-08-22 22:43:04 +10:00
Angus Gratton
86050c3d7a
bmm150: Remove broken reset function.
...
Looks like copy-pasta from bmi270 driver.
There is a soft reset capability documented in the BMM150 datasheet, but it
uses different register bits and I don't have a BMM150 at hand to test it.
Found by Ruff checking F821.
Signed-off-by: Angus Gratton <angus@redyak.com.au>
2023-08-22 22:42:48 +10:00
Christian Clauss
4da6e6f1b2
all: Lint Python code with ruff.
...
Signed-off-by: Christian Clauss <cclauss@me.com>
2023-07-24 07:51:33 +02:00
iabdalkader
e3371bef6c
bmm150: Add new magnetometer driver.
...
For the BOSCH BMM150 magnetometer.
2023-02-18 15:55:36 +11:00
iabdalkader
92854c1754
bmi270: Add new IMU driver.
...
For the BOSCH BMI270 IMU.
2023-02-18 15:55:10 +11:00
iabdalkader
bf8b3c04de
lsm9ds1: Refactor driver.
...
Changes are:
- fix typos
- simplify the driver init code
- support setting the magnetometer ODR separately
- update manifest
2023-02-18 15:54:04 +11:00
iabdalkader
e88aa3af16
lsm6dsox: Refactor driver.
...
Changes are:
- fix typos
- make constants global
- rename functions with double underscore to single underscore
- rename __init__ keyword argument cs_pin -> cs
- rename read_mlc_output() -> mlc_output()
- rename read_gyro() -> gyro()
- rename read_accel() -> accel()
- update manifest
2023-02-18 15:51:53 +11:00
Jim Mussared
75d129b96f
micropython/drivers: Move "lsm6sox" imu driver from main repo.
...
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2022-09-06 13:21:48 +10:00
Jim Mussared
fd84cd92f3
micropython/drivers: Move "lsm9ds1" imu driver from main repo.
...
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2022-09-06 13:21:44 +10:00