hci-lab-saarland / multitouchkit Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
Hi there,
Thankyou for this library, tested on the arduino uno and it works great!
I would like to convert this to run the ESP32 using also the 74hc4067 multiplexer. The issues I'm aware of are:
Thinking the following might work:
`void MultiTouchKit::setupPWM() {
#define PWM_PIN 14 // PWM pin output used
#define PWM_FREQ 4000 //set frequency to 4000
#define PWM_CHANNEL 2 // internal timer channel 0
#define PWM_RESOLUTION 12 // bit resolution
ledcSetup(PWM_CHANNEL,PWM_FREQ,PWM_RESOLUTION); // define which PWM channel, frequency and resolution
ledcAttachPin(PWM_PIN,PWM_CHANNEL); // Attach to GPIO pin
ledcWrite(PWM_CHANNEL,1024); // write at 25% duty cycle
analogSetAttenuation(ADC_0db); // similar function to analogReference(INTERNAL) method?
`
Is there anything that I could be missing or overlooking here?
Thank you in advance for your time.
Due to the arduino uno / pro mini only having 6 analog input pins the amount of columns is limited to 6 while the muliplexer mentioned in the tutorial document could theoretically support a larger matrix.
Is there a way to use the remaining unused pins from the MUX to create an 8x8 matrix for example?
Alternatively, if I add a second multiplexer, is it possible to achieve such a matrix?
Thanks in advance.
I have a breakout for the ESP32-WROVER which has enough pins to make a 5x5 grid without a multiplexer. How could I use this library with such a setup?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.