diff options
Diffstat (limited to 'keyboards/keebio/viterbi')
-rw-r--r-- | keyboards/keebio/viterbi/rev1/config.h | 8 | ||||
-rw-r--r-- | keyboards/keebio/viterbi/rev1/info.json | 7 | ||||
-rw-r--r-- | keyboards/keebio/viterbi/rev1/rev1.c | 1 | ||||
-rw-r--r-- | keyboards/keebio/viterbi/rev1/rev1.h | 9 | ||||
-rw-r--r-- | keyboards/keebio/viterbi/rev2/config.h | 6 | ||||
-rw-r--r-- | keyboards/keebio/viterbi/rev2/info.json | 5 | ||||
-rw-r--r-- | keyboards/keebio/viterbi/rev2/rev2.c | 2 | ||||
-rw-r--r-- | keyboards/keebio/viterbi/rev2/rev2.h | 10 | ||||
-rw-r--r-- | keyboards/keebio/viterbi/viterbi.c | 1 | ||||
-rw-r--r-- | keyboards/keebio/viterbi/viterbi.h | 12 |
10 files changed, 12 insertions, 49 deletions
diff --git a/keyboards/keebio/viterbi/rev1/config.h b/keyboards/keebio/viterbi/rev1/config.h index d911b45208..a31e17e1ab 100644 --- a/keyboards/keebio/viterbi/rev1/config.h +++ b/keyboards/keebio/viterbi/rev1/config.h @@ -17,14 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. #pragma once - -// wiring of each half -#define MATRIX_ROW_PINS { D4, D7, E6, B4, B5 } -#define MATRIX_COL_PINS { F5, F6, F7, B1, B3, B2, B6 } - -/* COL2ROW or ROW2COL */ -#define DIODE_DIRECTION COL2ROW - /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ #define LOCKING_SUPPORT_ENABLE /* Locking resynchronize hack */ diff --git a/keyboards/keebio/viterbi/rev1/info.json b/keyboards/keebio/viterbi/rev1/info.json index d91c35fc85..001886d11e 100644 --- a/keyboards/keebio/viterbi/rev1/info.json +++ b/keyboards/keebio/viterbi/rev1/info.json @@ -6,5 +6,10 @@ "usb": { "pid": "0x1157", "device_version": "1.0.0" - } + }, + "matrix_pins": { + "cols": ["F5", "F6", "F7", "B1", "B3", "B2", "B6"], + "rows": ["D4", "D7", "E6", "B4", "B5"] + }, + "diode_direction": "COL2ROW" } diff --git a/keyboards/keebio/viterbi/rev1/rev1.c b/keyboards/keebio/viterbi/rev1/rev1.c deleted file mode 100644 index 509e42dc51..0000000000 --- a/keyboards/keebio/viterbi/rev1/rev1.c +++ /dev/null @@ -1 +0,0 @@ -#include "viterbi.h" diff --git a/keyboards/keebio/viterbi/rev1/rev1.h b/keyboards/keebio/viterbi/rev1/rev1.h index 88a3200f6b..95776a7aeb 100644 --- a/keyboards/keebio/viterbi/rev1/rev1.h +++ b/keyboards/keebio/viterbi/rev1/rev1.h @@ -1,16 +1,7 @@ #pragma once -#include "viterbi.h" #include "quantum.h" -#ifdef USE_I2C -#include <stddef.h> -#ifdef __AVR__ - #include <avr/io.h> - #include <avr/interrupt.h> -#endif -#endif - #ifndef FLIP_HALF // Standard Keymap // (TRRS jack on the left half is to the right, TRRS jack on the right half is to the left) diff --git a/keyboards/keebio/viterbi/rev2/config.h b/keyboards/keebio/viterbi/rev2/config.h index 898ba3d786..d455adcba8 100644 --- a/keyboards/keebio/viterbi/rev2/config.h +++ b/keyboards/keebio/viterbi/rev2/config.h @@ -17,14 +17,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. #pragma once -// wiring of each half -#define MATRIX_ROW_PINS { D4, D7, E6, B4, B5 } -#define MATRIX_COL_PINS { F4, F5, F6, F7, B1, B3, B2 } #define SPLIT_HAND_PIN D2 -/* COL2ROW or ROW2COL */ -#define DIODE_DIRECTION COL2ROW - /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ #define LOCKING_SUPPORT_ENABLE /* Locking resynchronize hack */ diff --git a/keyboards/keebio/viterbi/rev2/info.json b/keyboards/keebio/viterbi/rev2/info.json index dd375f3053..dd20a662e6 100644 --- a/keyboards/keebio/viterbi/rev2/info.json +++ b/keyboards/keebio/viterbi/rev2/info.json @@ -7,6 +7,11 @@ "pid": "0x2157", "device_version": "2.0.0" }, + "matrix_pins": { + "cols": ["F4", "F5", "F6", "F7", "B1", "B3", "B2"], + "rows": ["D4", "D7", "E6", "B4", "B5"] + }, + "diode_direction": "COL2ROW", "backlight": { "pin": "B6", "levels": 7 diff --git a/keyboards/keebio/viterbi/rev2/rev2.c b/keyboards/keebio/viterbi/rev2/rev2.c index a72cc44436..6158903e22 100644 --- a/keyboards/keebio/viterbi/rev2/rev2.c +++ b/keyboards/keebio/viterbi/rev2/rev2.c @@ -1,4 +1,4 @@ -#include "viterbi.h" +#include "rev2.h" void eeconfig_init_kb(void) { #ifdef BACKLIGHT_ENABLE diff --git a/keyboards/keebio/viterbi/rev2/rev2.h b/keyboards/keebio/viterbi/rev2/rev2.h index 599e6415a3..a48c13d46b 100644 --- a/keyboards/keebio/viterbi/rev2/rev2.h +++ b/keyboards/keebio/viterbi/rev2/rev2.h @@ -1,17 +1,7 @@ #pragma once -#include "viterbi.h" #include "quantum.h" - -#ifdef USE_I2C -#include <stddef.h> -#ifdef __AVR__ - #include <avr/io.h> - #include <avr/interrupt.h> -#endif -#endif - #define LAYOUT( \ L00, L01, L02, L03, L04, L05, L06, R00, R01, R02, R03, R04, R05, R06, \ L10, L11, L12, L13, L14, L15, L16, R10, R11, R12, R13, R14, R15, R16, \ diff --git a/keyboards/keebio/viterbi/viterbi.c b/keyboards/keebio/viterbi/viterbi.c deleted file mode 100644 index 509e42dc51..0000000000 --- a/keyboards/keebio/viterbi/viterbi.c +++ /dev/null @@ -1 +0,0 @@ -#include "viterbi.h" diff --git a/keyboards/keebio/viterbi/viterbi.h b/keyboards/keebio/viterbi/viterbi.h deleted file mode 100644 index b17b322410..0000000000 --- a/keyboards/keebio/viterbi/viterbi.h +++ /dev/null @@ -1,12 +0,0 @@ -#pragma once - -#include "quantum.h" - -#ifdef KEYBOARD_keebio_viterbi_rev1 - #include "rev1.h" -#elif KEYBOARD_keebio_viterbi_rev2 - #include "rev2.h" -#endif - -#define LAYOUT_ortho_5x14 LAYOUT - |