| 12345678910111213141516171819202122232425 |
- // rottary switch ports
- #define ROTTARY_SW_sw A8 // 62 // A8 //A8 //53 // 89 // = A8
- #define ROTTARY_SW_dt A9 // 90 // = A9
- #define ROTTARY_SW_clk A10 // 91 // = A10
- // You can assign any number of functions to different pins. How cool is that?
- void ROTTARY_SW_sw_INT() {
- Serial.println("ROTTARY_SW_sw_INT TRIG");
- }
- void ROTTARY_SW_dt_INT() {
- Serial.println("ROTTARY_SW_dt_INT TRIG");
- }
- void ROTTARY_SW_clk_INT() {
- Serial.println("ROTTARY_SW_clk_INT TRIG");
- }
- /*
- LOW to trigger the interrupt whenever the pin is low,
- CHANGE to trigger the interrupt whenever the pin changes value
- RISING to trigger when the pin goes from low to high,
- FALLING for when the pin goes from high to low.
- The Due, Zero and MKR1000 boards allow also:
- HIGH to trigger the interrupt whenever the pin is high.
- */
|