_ROTTARY_SW.h 802 B

12345678910111213141516171819202122232425
  1. // rottary switch ports
  2. #define ROTTARY_SW_sw A8 // 62 // A8 //A8 //53 // 89 // = A8
  3. #define ROTTARY_SW_dt A9 // 90 // = A9
  4. #define ROTTARY_SW_clk A10 // 91 // = A10
  5. // You can assign any number of functions to different pins. How cool is that?
  6. void ROTTARY_SW_sw_INT() {
  7. Serial.println("ROTTARY_SW_sw_INT TRIG");
  8. }
  9. void ROTTARY_SW_dt_INT() {
  10. Serial.println("ROTTARY_SW_dt_INT TRIG");
  11. }
  12. void ROTTARY_SW_clk_INT() {
  13. Serial.println("ROTTARY_SW_clk_INT TRIG");
  14. }
  15. /*
  16. LOW to trigger the interrupt whenever the pin is low,
  17. CHANGE to trigger the interrupt whenever the pin changes value
  18. RISING to trigger when the pin goes from low to high,
  19. FALLING for when the pin goes from high to low.
  20. The Due, Zero and MKR1000 boards allow also:
  21. HIGH to trigger the interrupt whenever the pin is high.
  22. */