_PCINT_init.h 476 B

12345678910111213141516171819
  1. #include <PinChangeInt.h>
  2. // Do not use any Serial.print() in this function. Serial.print() uses interrupts, and is not compatible
  3. // with an interrupt routine...!
  4. void quicfunc() {
  5. latest_interrupted_pin=PCintPort::arduinoPin;
  6. interrupt_count[latest_interrupted_pin]++;
  7. };
  8. // You can assign any number of functions to different pins. How cool is that?
  9. void pin3func() {
  10. pin3Count++;
  11. Serial.println("pin3func TRIG");
  12. }
  13. //uint8_t i;
  14. //uint8_t currentPIN3Count=0;