_PCINT_setup.h 457 B

1234567891011
  1. /* pinMode(MYPIN1, INPUT_PULLUP);
  2. attachPinChangeInterrupt(MYPIN1, quicfunc, FALLING); // add more attachInterrupt code as required
  3. pinMode(MYPIN2, INPUT_PULLUP);
  4. attachPinChangeInterrupt(MYPIN2, quicfunc, FALLING);
  5. pinMode(MYPIN3, INPUT_PULLUP);
  6. attachPinChangeInterrupt(MYPIN3, pin3func, CHANGE);
  7. */
  8. // pinMode(ROTTARY_SW_sw, INPUT); //set the pin to input
  9. // digitalWrite(ROTTARY_SW_sw, HIGH); //use the internal pullup resistor