Skip to content

Added double_tap to express class #23

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 15, 2017
Merged

Conversation

kattni
Copy link
Contributor

@kattni kattni commented Dec 15, 2017

Tested, updated docs, verified Sphinx build.

@tannewt tannewt self-requested a review December 15, 2017 20:28
Copy link
Member

@tannewt tannewt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One thing about backwards compatibility.

if cpx.double_tap:
print("Double tap!")
"""
tapped = self._lis3dh.tapped
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Want to catch an attribute error here like shake if the lis3dh library is too old? Maybe make the message generic so its exact between the two.

Copy link
Member

@tannewt tannewt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

@tannewt tannewt merged commit 3b35d80 into adafruit:master Dec 15, 2017
tannewt pushed a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Dec 16, 2017
Updating https://github.com/adafruit/Adafruit_CircuitPython_CharLCD to 2.2 from 2.1.1:
  > Merge branch 'mrmcwethy-lint'
  > Add support for I2C/SPI backpack with MCP23008 and 74LS595. New Character_LCD_I2C and Character_LCD_SPI classes.

Updating https://github.com/adafruit/Adafruit_CircuitPython_CircuitPlayground to 1.0.0 from 0.9.1:
  > Added double_tap to express class (adafruit/Adafruit_CircuitPython_CircuitPlayground#23)
  > Added shake_threshold arg and updated docs

Updating https://github.com/adafruit/Adafruit_CircuitPython_LIS3DH to 3.0.0 from 2.0.0:
  > Merge pull request adafruit/Adafruit_CircuitPython_LIS3DH#17 from tannewt/single_double

Updating https://github.com/adafruit/Adafruit_CircuitPython_SSD1306 to 2.0.0 from 1.0.2:
  > Merge pull request adafruit/Adafruit_CircuitPython_SSD1306#3 from mrmcwethy/lint
@kattni kattni deleted the tap-detection branch June 27, 2018 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants