diff options
| -rw-r--r-- | keyboards/bpiphany/sixshooter/config.h | 24 | ||||
| -rw-r--r-- | keyboards/bpiphany/sixshooter/sixshooter.h | 10 |
2 files changed, 13 insertions, 21 deletions
diff --git a/keyboards/bpiphany/sixshooter/config.h b/keyboards/bpiphany/sixshooter/config.h index ade95cc19..c3ce8c884 100644 --- a/keyboards/bpiphany/sixshooter/config.h +++ b/keyboards/bpiphany/sixshooter/config.h | |||
| @@ -11,26 +11,16 @@ | |||
| 11 | #define DESCRIPTION A PCB for the CM Storm switch tester utilizing a Teensy 2.0. | 11 | #define DESCRIPTION A PCB for the CM Storm switch tester utilizing a Teensy 2.0. |
| 12 | 12 | ||
| 13 | /* key matrix size */ | 13 | /* key matrix size */ |
| 14 | #define MATRIX_ROWS 1 | 14 | #define MATRIX_ROWS 2 |
| 15 | #define MATRIX_COLS 6 | 15 | #define MATRIX_COLS 3 |
| 16 | 16 | ||
| 17 | /* | 17 | /* Keyboard Matrix Assignments */ |
| 18 | * Keyboard Matrix Assignments | 18 | #define DIRECT_PINS { \ |
| 19 | * | 19 | { F7, F6, F1 }, \ |
| 20 | * Change this to how you wired your keyboard | 20 | { F5, F4, F0 } \ |
| 21 | * COLS: AVR pins used for columns, left to right | 21 | } |
| 22 | * ROWS: AVR pins used for rows, top to bottom | ||
| 23 | * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode) | ||
| 24 | * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) | ||
| 25 | * | ||
| 26 | */ | ||
| 27 | #define MATRIX_ROW_PINS { } | ||
| 28 | #define MATRIX_COL_PINS { F7, F6, F1, F5, F4, F0 } | ||
| 29 | #define UNUSED_PINS | 22 | #define UNUSED_PINS |
| 30 | 23 | ||
| 31 | /* COL2ROW, ROW2COL*/ | ||
| 32 | #define DIODE_DIRECTION COL2ROW | ||
| 33 | |||
| 34 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 24 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
| 35 | #define DEBOUNCE 5 | 25 | #define DEBOUNCE 5 |
| 36 | 26 | ||
diff --git a/keyboards/bpiphany/sixshooter/sixshooter.h b/keyboards/bpiphany/sixshooter/sixshooter.h index 490d562d0..e8fc68f5c 100644 --- a/keyboards/bpiphany/sixshooter/sixshooter.h +++ b/keyboards/bpiphany/sixshooter/sixshooter.h | |||
| @@ -4,10 +4,12 @@ | |||
| 4 | #include "quantum.h" | 4 | #include "quantum.h" |
| 5 | 5 | ||
| 6 | #define LAYOUT( \ | 6 | #define LAYOUT( \ |
| 7 | K00, K01, K02, \ | 7 | K00, K01, K02, \ |
| 8 | K03, K04, K05 \ | 8 | K03, K04, K05 \ |
| 9 | ) { \ | 9 | ) \ |
| 10 | { K00, K01, K02, K03, K04, K05 }, \ | 10 | { \ |
| 11 | { K00, K01, K02 }, \ | ||
| 12 | { K03, K04, K05 } \ | ||
| 11 | } | 13 | } |
| 12 | 14 | ||
| 13 | inline void sixshooter_led_0_on(void) { DDRB |= (1<<6); PORTB |= (1<<6); } | 15 | inline void sixshooter_led_0_on(void) { DDRB |= (1<<6); PORTB |= (1<<6); } |
