Ahoy! I may have misread and made the wrong purchase. I was hoping to use the Pimoroni touch pHAT to run alligator clips and some other touch-sensitive material along the interior of a Yoda doll, then detect touches to various regions and have Yoda respond (using the “Little Creature” voice at: https://www.acapela-group.com/demos/ ).
I’ve got my pHAT all soldered up & it works nicely for things in the tutorial, but did I assume incorrectly, and in fact this can’t be used for cap touch other than the buttons on the pHAT itself? If there is a way for the pHAT to work “CircuitPlayground-style”, kindly point me in the right direction.
If not, I also purchased an explorer pHAT. It doesn’t look like this has any cap touch out of the box, but could I wire it up to something like this:
and sort of retain the Pi Zero WH form factor + get the CircuitPlayground pad-style Cap Touch I’m looking for?
Also: I installed the libraries in the tutorial, but I have been using python3, but noticed when going through the tutorial at: https://learn.pimoroni.com/tutorial/sandyj/getting-started-with-touch-phat
some of the code throws errors (e.g.
@touchphat.on_touch(["Back"`, `"A"`, `"B"`, `"C"`, `"D"`, `"Enter"])
thought it was just the ’ marks, removed them, but python3 didn’t like the syntax without the single quotes, above. I Control-D’d out, ran the code as python, and this seemed to work.
- Am I reading something wrong in the tutorial, or are the single quotes just some sort of artifact that shouldn’t have come through Chrome.
- Am I correct that the tutorial doesn’t work for python3, just python? Is there a python3 version?
Sorry for the very n00bish questions. I’m green in python & electronics, although I do build iOS apps in Swift.