0

Hardware Interrupts on QT Py?
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Hardware Interrupts on QT Py?

by kalafre on Tue Feb 23, 2021 4:39 pm

I didn't see it in the QT Py pinouts page, etc...does the QT Py support hardware interrupts? I'd like to set up an interrupt using capacitive touch and Arduino. Thanks!

kalafre
 
Posts: 3
Joined: Mon Nov 23, 2020 2:24 pm

Re: Hardware Interrupts on QT Py?

by dastels on Tue Feb 23, 2021 9:46 pm

The QtPy guide doesn't say anything about it, but the SAMD21 support interrupts on pretty much all I/O pins. See https://learn.adafruit.com/adafruit-feather-m0-express-designed-for-circuit-python-circuitpython/adafruit2-pinouts. ,And chapter 21 starting on page 325 of the samd21 datasheet https://ww1.microchip.com/downloads/en/DeviceDoc/SAM_D21_DA1_Family_DataSheet_DS40001882F.pdf

Dave

dastels
 
Posts: 5963
Joined: Tue Oct 20, 2015 3:22 pm

Re: Hardware Interrupts on QT Py?

by kalafre on Sun Feb 28, 2021 5:53 pm

dastels wrote:The QtPy guide doesn't say anything about it, but the SAMD21 support interrupts on pretty much all I/O pins. See https://learn.adafruit.com/adafruit-feather-m0-express-designed-for-circuit-python-circuitpython/adafruit2-pinouts. ,And chapter 21 starting on page 325 of the samd21 datasheet https://ww1.microchip.com/downloads/en/DeviceDoc/SAM_D21_DA1_Family_DataSheet_DS40001882F.pdf

Dave


Thank you for the information, Dave. I'm still having trouble getting the same code that works on the Gemma M0 for an interrupt to work on the QT Py...I must be missing something.

Just for clarification: I mentioned using capacitive touch in the first post, but right now, I'm simply trying to get the interrupt to work using a pushbutton. One step at a time :)

kalafre
 
Posts: 3
Joined: Mon Nov 23, 2020 2:24 pm

Re: Hardware Interrupts on QT Py?

by dastels on Sun Feb 28, 2021 6:47 pm

Yes, babysteps. I wouldn't expect a problem... they're both SAMD21s.

Dave

dastels
 
Posts: 5963
Joined: Tue Oct 20, 2015 3:22 pm

Re: Hardware Interrupts on QT Py?

by kalafre on Sun Feb 28, 2021 7:21 pm

dastels wrote:Yes, babysteps. I wouldn't expect a problem... they're both SAMD21s.

Dave


Go figure - the ONLY difference between the test I ran on the Gemma and the test I ran on the QT Py was the push button. Yep...bad push button. It's working fine now that I swapped the push button - thanks for your help!

kalafre
 
Posts: 3
Joined: Mon Nov 23, 2020 2:24 pm

Re: Hardware Interrupts on QT Py?

by dastels on Sun Feb 28, 2021 8:59 pm

Sometimes it really is that simple.

Have fun!

Dave

dastels
 
Posts: 5963
Joined: Tue Oct 20, 2015 3:22 pm

Please be positive and constructive with your questions and comments.