Adafruit-circuitpython-lis3dh

Latest version: v5.2.3

Safety actively analyzes 681812 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 8 of 9

4.0.0

Change in keyword arguments: you MUST specify `address` and `baudrate` as keyword arguments if changing the defaults when creating the I2C and SPI objects.

You can now specify an interrupt pin when using `tapped`. Functions without interrupt specified but will return true multiple times for each tap event.

3.0.1

3.0.0

Rework tap detection so that its clear only single or double taps can be detected at a time. Prior to this change it would detect the individual taps that are part of a double tap.

So, `tapped` is now `True` if the type of tap specified in `set_tap` was detected recently.

**This is an API change!** To update your code:

* Replace `read_click` with `tapped` and change it for a single value.
* Rename `set_click` to `set_tap`. Most uses of `click` in names were replaced with `tap` to better align with actual use. It remains only in places that match a register of a similar name.
* Replace `read_click_raw` with `lis3dh._read_register_byte(adafruit_lis3dh.REG_CLICKSRC)` its no longer exposed directly because it requires knowledge of the register bits.

To use in CircuitPython, download the zip file that matches your version of CircuitPython, unzip it, and copy `adafruit_lis3dh` to the `lib` folder on the `CIRCUITPY` drive. Or, simply install the [Adafruit CircuitPython bundle](https://github.com/adafruit/Adafruit_CircuitPython_Bundle/releases).

2.0.0

Thanks to tannewt for the great work!

1.0.0

* Added support for `lis3dh.shake`

To use in CircuitPython, download `adafruit_lis3dh.zip`, unzip it, and copy `adafruit_lis3dh` to the `lib` folder on the `CIRCUITPY` drive. Or, simply install the [Adafruit CircuitPython bundle](https://github.com/adafruit/Adafruit_CircuitPython_Bundle/releases).

0.1.3

1. now uses import struct instead of ustruct
2. Optimize the way data in unpacked using struct.unpack
3. Changes made to follow changes in Adafruit_Circuitpyton_BusDevice.I2CDevice

Page 8 of 9

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.