Comments (6)
Afraid not! This library was only put together to test whether the CAP1298 was suitable for something I was working on - it wasn't. I didn't take it any further than I needed to, so most functionality is not implemented.
That said, you should be able to enable repeats with register CAP1298_RPTRATEENABLE (0x28), then fine tune the hold/repeat times in registers CAP1298_SENSINPUTCONFIG1 (0x22) and CAP1298_CONFIG2 (0x44). This is briefly described in section 4.9.2 of the datasheet.
I'd be happy to put together an example and modify the library to support touch and hold configuration - but it may have to wait a while!
from cap1298.
Thank you for your fast response.
In the specs, there is mention of a ALERT pin.
So, for 'Touch and Hold', do we need to use Interrupt?
Very much appreciate if you update the library and samples. Many thanks!!
from cap1298.
Yep, I'd believe you need to use interrupt.
from cap1298.
Hi Chris
Here is what I am doing but I am not getting the ALERT interrupt:
Here are the config:
Register 0x2A value: 0x00 // CAP1298_MTCONFIG
Register 0x1F value: 0x5F // CAP1298_SENSITIVITY
Register 0x28 value: 0xFE // CAP1298_RPTRATEENABLE
Register 0x26 value: 0xFF // CAP1298_CALIBRATE
Register 0x23 value: 0x0F // CAP1298_SENSINPUTCONFIG2
Register 0x27 value: 0xFF // CAP1298_INTENABLE
Q1: Why am I not getting any interrupt?
Q2: If I receive the interrupt, do I check the status at 0x03 (CAP1298_SENSTATUS) ?
from cap1298.
Hi LiveRock,
Unfortunately my CAP1298 is no longer responding, so I won't be able to further troubleshoot or adapt the existing code.
With regards to your questions:
Q1: I couldn't say without seeing your setup and code.
Q2: I haven't implemented any touch and hold/interrupt features, and cannot test, so I can only guess from reading the datasheet. Is the INT bit in 0x00 changing state at all?
Chris
from cap1298.
Thank you Chris. Let me spend a bit of time to figure it out.
from cap1298.
Related Issues (2)
- some flakiness HOT 5
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 cap1298.