changePinInterrupts for Flora?

Wearable electronics: boards, conductive materials, and projects from Adafruit!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
RushabhT
 
Posts: 7
Joined: Tue Jan 03, 2017 1:03 pm

changePinInterrupts for Flora?

Post by RushabhT »

Hi all,

I'm a beginner in embedded tinkering, and have got my Flora, along with a vibrator motor and the built in Neopixel, pulsing at a certain frequency.

I wanted to connect a Rotary encoder to also allow changing the pulse frequency (of both the motor and the LED), but realised that my code can only act on the External Interrupt pins. I wanted to use pins #6 and #12 connected to the Rotary Encoder, but realised I need to probably change my code to use some sort of pinChangeInterrupt (compared to the example attachInterrupt) function.

Is this possible on the Flora? I tried installing some other Arduino libraries (pinChangeInterrupt) but I don't think I can get a valid reading on either of those two inputs.

Would greatly appreciate all your help.

User avatar
adafruit_support_bill
 
Posts: 88093
Joined: Sat Feb 07, 2009 10:11 am

Re: changePinInterrupts for Flora?

Post by adafruit_support_bill »

Please stick to one thread per topic! You have posted this same question in multiple places.

Locked
Please be positive and constructive with your questions and comments.

Return to “Wearables”