_PCINT_setup.h 554 B

123456789101112131415
  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
  10. #ifdef DISABLE_LOOP || DEBUG
  11. Serial.println("#included _PCINT/_PCINT_setup.h ");
  12. #endif