Skip to content

Releases: adafruit/Adafruit_CircuitPython_LIS3DH

Update examples

03 May 20:25
d5491cd
Compare
Choose a tag to compare
Merge pull request #32 from kattni/update-tap-example

Update tap example to use interrupt. See comments.

Added named tuple support for acceleration.

19 Mar 03:08
dc7da90
Compare
Choose a tag to compare

Thanks to @Sigafoos for the great work!

To use in CircuitPython, simply install the Adafruit CircuitPython bundle or the zip from this release that matches the version of CircuitPython you are using.

Improved reference documentation.

01 Mar 23:48
d22d5a1
Compare
Choose a tag to compare

Thanks to @sommersoft for the great work!

Sphinx update.

21 Feb 22:59
540e40c
Compare
Choose a tag to compare

Thanks to @brentru for the great work!

Tap detection now using interrupts!

30 Dec 03:19
74afff3
Compare
Choose a tag to compare

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.

Fix tap detection to make single/double detection work properly.

27 Dec 20:48
0b63595
Compare
Choose a tag to compare
Merge pull request #18 from kattni/threshold-config-update

update to threshold config

Click -> Tap

15 Dec 18:09
02e57df
Compare
Choose a tag to compare

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.

Updated with lint and autobundling!

09 Dec 19:50
278bef3
Compare
Choose a tag to compare

Thanks to @tannewt for the great work!

Now with shake detection!

30 Nov 23:50
Compare
Choose a tag to compare
  • 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.

use import struct and I2CDevice.readinto

17 Nov 19:45
Compare
Choose a tag to compare
  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