Due to high demand expect some shipping delays at this time, orders may not ship for 1-2 business days.
0

Programming Capacitive Touch Sensor in Python 2.7
Moderators: adafruit_support_bill, adafruit

Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/
Please be positive and constructive with your questions and comments.

Programming Capacitive Touch Sensor in Python 2.7

by satre on Tue Oct 19, 2021 2:11 pm

Hi! I have the momentary capacitive touch sensor, https://www.adafruit.com/product/1374
I also have an old RPi2 that's running a 16x32 LED matrix with an old Adafruit LED Matrix Hat that runs beautifully with Python 2.7 and the old libraries that run it. I want to add the touch sensor to the project so that when you touch the sensor, an image is shown on the LED Matrix. Problem is, the tutorial for the touch sensor says to install Circuit Python and Blinka which needs a newer version of Python.

OK, so I tried updating, and I tried swapping in a new RPi 3B+, but the LED Matrix Hat is not functioning properly on the newer Python and associated libraries, and I spent 1/2 a day trying to troubleshoot (which I'm not really good at) and then just went back to the RPi 2.

Basically then... Can I use the touch sensor with the old Python? If so, how?

Thanks!
Satre

satre
 
Posts: 8
Joined: Tue Jul 11, 2017 9:18 pm

Re: Programming Capacitive Touch Sensor in Python 2.7

by mikeysklar on Thu Oct 21, 2021 3:54 pm

I don't know how to make this work without adafruit-blinka installed.

Since you have a Pi3B you can experiment with let's try and get the LED Matrix going first then move on to add the sensor.

What error were you getting stuck at with the LED Matrix?

mikeysklar
 
Posts: 6211
Joined: Mon Aug 01, 2016 8:10 pm

Please be positive and constructive with your questions and comments.