Comments (5)
from adafruit_circuitpython_stmpe610.
Ah yes, thanks. The discontinued #1571. I don't have one for testing but will anticipate that either or both axis ranges might need to be swapped since breakout wiring isn't fixed. Thinking about adding a kwarg like:
(... touch_flip=None ...) # for no axis range change
(... touch_flip=(True, False) ...) # to flip the touch x-axis range
(... touch_flip=(False, True) ...) # to flip the touch y-axis range
(... touch_flip=(True, True) ...) # to flip both touch axis ranges
from adafruit_circuitpython_stmpe610.
Ah -- I did not realize it had been discontinued -- then I would not worry about it. I do have one and will try to test the PR on it when its in if I can find it.... That axis flip kwarg sounds ok to me. It's been a long time since I looked at the driver. It was one of the very first things I ever did in python so I hope it was not to painful to modify....
from adafruit_circuitpython_stmpe610.
I'd guess that there are a few of the old breakouts out there, but it's not likely that they'll need the new features unless they are repurposed. I'll add the more flexible version of the axis flip kwarg just in case.
Walking through the driver code was a great experience. I know the approach to register management has changed a bit, but your code was easy to follow. Nicely done.
I enjoy looking through other folks' code as part of my education 'cause I still feel like every python project I work on is my first.
from adafruit_circuitpython_stmpe610.
Will submit a PR with the Displayio Button compatible touch_point
property.
from adafruit_circuitpython_stmpe610.
Related Issues (10)
- Does this work with STMPE811? HOT 3
- Device reset during initialization causes trouble HOT 18
- Error initializing `Adafruit_STMPE610_SPI` HOT 4
- OSError: [Errno 22] Invalid argument - on Buster HOT 8
- Missing Type Annotations
- Should I2C support be removed
- documentation doesn't match the .py source HOT 4
- Convert `.show()` to `.root_group =` for CircuitPython 9
- SPI mode sometimes wrong - CHIP ID check fails
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_stmpe610.