It's possible use external interrupts/attachInterrupt() with the ATtiny85 when I program with Arduino IDE?
If is possible, how many inputs (for external interrupts) the ATtiny85 have and which are they? Someone have an example code?
-
1The ATTINY 85 doesn't have external interrupts. You'll have to use pin change interrupts instead.Delta_G– Delta_G2020年03月25日 16:15:37 +00:00Commented Mar 25, 2020 at 16:15
-
2Except... PB2 has INT0...Majenko– Majenko2020年03月25日 16:28:05 +00:00Commented Mar 25, 2020 at 16:28
-
Darnit. I just looked at the spec sheet and didn't see one listed.Delta_G– Delta_G2020年03月25日 18:34:19 +00:00Commented Mar 25, 2020 at 18:34
1 Answer 1
Pin PB2 is the only pin that has a real external interrupt. This is INT0
.
Whether you can use attachInterrupt(0, ...)
or not is entirely down to whether it is implemented in the core that you are using.