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