What is the smallest Arduino compatible Adafriut board that has external hardware interrupt input?
Thanks
Hardware Interrupt
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit_support_bill
- Posts: 88092
- Joined: Sat Feb 07, 2009 10:11 am
- postfacto
- Posts: 4
- Joined: Tue Jun 06, 2023 3:57 pm
Re: Hardware Interrupt
On the nano I would connect to pin 2 and code "attachInterrupt(0, checkSensor, RISING);"
Is it the same for the Trinket MO?
Is it the same for the Trinket MO?
- adafruit_support_bill
- Posts: 88092
- Joined: Sat Feb 07, 2009 10:11 am
Re: Hardware Interrupt
For the trinket M0, you can use any of the GPIO pins. Then use the digitalPinToInterrupt() function to determine which interrupt number is associated with it.
For example:
https://reference.arduino.cc/reference/ ... interrupt/
For example:
Code: Select all
attachInterrupt(digitalPinToInterrupt(interruptPin), checkSensor, RISING);
- postfacto
- Posts: 4
- Joined: Tue Jun 06, 2023 3:57 pm
Re: Hardware Interrupt
What is the voltage input range?
- adafruit_support_bill
- Posts: 88092
- Joined: Sat Feb 07, 2009 10:11 am
Re: Hardware Interrupt
For power to the BAT pin: 3-6v.
For inputs to GPIO pins: max 3.3v.
https://learn.adafruit.com/adafruit-tri ... no/pinouts
For inputs to GPIO pins: max 3.3v.
https://learn.adafruit.com/adafruit-tri ... no/pinouts
Please be positive and constructive with your questions and comments.