Comments (6)
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.
Yes, I set it up for CPX. Thanks for digging in!
from adafruit_circuitpython_lis3dh.
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.
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.
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.
Hopefully fixed by #32
from adafruit_circuitpython_lis3dh.
Related Issues (20)
- Access to single axis value HOT 5
- Add proper API for enabling FIFO stream HOT 1
- Shake Function HOT 6
- return values in m/s^2 to match Arduino API HOT 2
- add orientation property HOT 13
- Automatically detect CPX in examples HOT 1
- Issue with neopixel.py HOT 1
- lis3dh.tapped returning multiple True on I2C, not responding at all on SPI HOT 2
- Missing adafruit-circuitpython-busdevice dependency HOT 2
- Missing abs() in spinner examples to determine maximum value HOT 6
- No Adafruit-Blinka compatible version HOT 3
- lis3dh_simpletest does not work for pygamer HOT 6
- lis3dh_ad example broken HOT 4
- Remove use of int pin from simpletest example? HOT 3
- Small INT overflow on Halowing_m0 HOT 10
- Missing Type Annotations
- DATA_RATE vs DATARATE
- Incorrect calculation in shake() method
- DisplayIO Example Wanted
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from adafruit_circuitpython_lis3dh.