adafruit / Adafruit_CircuitPython_LSM6DS

CircuitPython helper library for the LSM6DS family of motion sensors from ST
MIT License
25 stars 21 forks source link

Add access to MLC for LSM6DSOX #52

Closed jerryneedell closed 2 years ago

jerryneedell commented 2 years ago

Implement the ability to load "Machine Learning Core" configuration files to the LSM6DS0X -- see #51 This is based on the MicroPython implementation https://github.com/micropython/micropython/tree/master/drivers/lsm6dsox This allows for simple code to detect predetermined functions. The Configuration files can be downloaded from https://github.com/STMicroelectronics/STMems_Machine_Learning_Core/tree/master/application_examples/lsm6dsox

an example program - lsm6ds_lsm6dsox_mlc_test.py shows how to use the vibration, head movement and 6DOF position examples.

This is only implemented for the LSM6DSOX.

Tested with an LSM6DSOX breakout (STEMMA) on a feather rp2040.

ladyada commented 2 years ago

didnt test but doesnt mess with existing funcitonality

jerryneedell commented 2 years ago

Should I go ahead and merge or wait for someone else to test?

ladyada commented 2 years ago

sok!