GithubHelp home page GithubHelp logo

Comments (6)

Sigafoos avatar Sigafoos commented on August 21, 2024

Did you modify the file at all? By default it uses board.SCL and board.SDA which are the external I2C pins. On a CPX you need to uncomment lines 16-19.

I just tried that, though, and I also am not getting any output. Let's look at tapped more in depth...

from adafruit_circuitpython_lis3dh.

jerryneedell avatar jerryneedell commented on August 21, 2024

Yes, I set it up for CPX. Thanks for digging in!

from adafruit_circuitpython_lis3dh.

Sigafoos avatar Sigafoos commented on August 21, 2024

I think the issue is that there isn't enough of a delay in the loop, so the code never gets checked. I added a half second delay and the requirement that the last check not be True.

I'm not saying this is the only way to solve it, but it does work.

from adafruit_circuitpython_lis3dh.

jerryneedell avatar jerryneedell commented on August 21, 2024

I'm a little confused by the proposed changes. The real fix is to remove the "double" tap test from the example code and let the driver detect the double tap, correct? Was the delay was just added for petter performance? I'll try to test this this evening.

from adafruit_circuitpython_lis3dh.

Sigafoos avatar Sigafoos commented on August 21, 2024

I think I added the delay first, and then removed the double tap.

The "double" check was added not because the driver couldn't detect double taps but because it will report whether it's detected a tap as true for a certain period after the tap. I think that a delay does roughly the same thing.

I'm not necessarily advocating for this: it's just a crack I took at the issue.

from adafruit_circuitpython_lis3dh.

caternuson avatar caternuson commented on August 21, 2024

Hopefully fixed by #32

from adafruit_circuitpython_lis3dh.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.