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?
Arduino Stack Exchange is a question and answer site for developers of open-source hardware and software that is compatible with Arduino. It only takes a minute to sign up.
Sign up to join this communityIt'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?
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.