GithubHelp home page GithubHelp logo

Comments (5)

jerryneedell avatar jerryneedell commented on June 12, 2024

from adafruit_circuitpython_stmpe610.

CedarGroveStudios avatar CedarGroveStudios commented on June 12, 2024

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.

jerryneedell avatar jerryneedell commented on June 12, 2024

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.

CedarGroveStudios avatar CedarGroveStudios commented on June 12, 2024

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.

CedarGroveStudios avatar CedarGroveStudios commented on June 12, 2024

Will submit a PR with the Displayio Button compatible touch_point property.

from adafruit_circuitpython_stmpe610.

Related Issues (10)

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.