From 3835629d9a6174587d95c3f91688ef3639dbc00c Mon Sep 17 00:00:00 2001 From: Kattni Rembor Date: Fri, 26 Jun 2020 13:28:46 -0400 Subject: [PATCH 1/2] Add ISM330DHCX to example. --- examples/lis3mdl_lsm6ds_test.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/examples/lis3mdl_lsm6ds_test.py b/examples/lis3mdl_lsm6ds_test.py index cff345e..47a12d4 100644 --- a/examples/lis3mdl_lsm6ds_test.py +++ b/examples/lis3mdl_lsm6ds_test.py @@ -2,9 +2,13 @@ import board from adafruit_lsm6ds import LSM6DSOX as LSM6DS -# To use LSM6DS33, comment out the previous line +# To use LSM6DS33, comment out the LSM6DSOX import line # and uncomment the next line # from adafruit_lsm6ds import LSM6DS33 as LSM6DS +# To use ISM330DHCX, comment out the LSM6DSOX import line +# and uncomment the next line +# from adafruit_lsm6ds import ISM330DHCX as LSM6DS + from adafruit_lis3mdl import LIS3MDL accel_gyro = LSM6DS(board.I2C()) From 70d27df37c3adb765bbe4c1db4ab370327e62b46 Mon Sep 17 00:00:00 2001 From: Kattni Rembor Date: Fri, 26 Jun 2020 13:31:52 -0400 Subject: [PATCH 2/2] Improved readability. --- examples/lis3mdl_lsm6ds_test.py | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/lis3mdl_lsm6ds_test.py b/examples/lis3mdl_lsm6ds_test.py index 47a12d4..b8ace3a 100644 --- a/examples/lis3mdl_lsm6ds_test.py +++ b/examples/lis3mdl_lsm6ds_test.py @@ -5,6 +5,7 @@ # To use LSM6DS33, comment out the LSM6DSOX import line # and uncomment the next line # from adafruit_lsm6ds import LSM6DS33 as LSM6DS + # To use ISM330DHCX, comment out the LSM6DSOX import line # and uncomment the next line # from adafruit_lsm6ds import ISM330DHCX as LSM6DS