Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define topKnobA 0
- #define topKnobB 1
- #define middleKnobA 17
- #define middleKnobB 16
- #define lowerKnobA 15
- #define lowerKnobB 14
- #define wheelA 10
- #define wheelB 11
- const byte allKnobPins[] = {topKnobA, topKnobB,
- middleKnobA, middleKnobB,
- lowerKnobA, lowerKnobB,
- wheelA, wheelB
- };
- // To simplify wiring, keys are actually in two separate matrices.
- // The Teensy has like a million GPIO's, I can sacrifice four.
- #define leftButtonsA 21
- #define leftButtonsB 20
- #define leftButtonsC 19
- #define leftButtons1 23
- #define leftButtons2 22
- #define leftButtons3 18
- #define rightButtonsA 3
- #define rightButtonsB 5
- #define rightButtonsC 4
- #define rightButtons1 2
- #define rightButtons2 6
- #define rightButtons3 7
- const byte leftButtonRowPins[] = {leftButtonsA, leftButtonsB, leftButtonsC};
- const byte rightButtonRowPins[] = {rightButtonsA, rightButtonsB, rightButtonsC};
- const byte allButtonRowPins[] = {leftButtonsA, leftButtonsB, leftButtonsC,
- rightButtonsA, rightButtonsB, rightButtonsC
- };
- const byte leftButtonColumnPins[] = {leftButtons1, leftButtons2, leftButtons3};
- const byte rightButtonColumnPins[] = {rightButtons1, rightButtons2, rightButtons3};
- const byte allButtonColumnPins[] = {leftButtons1, leftButtons2, leftButtons3,
- rightButtons1, rightButtons2, rightButtons3
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement