summaryrefslogtreecommitdiffstats
path: root/keyboards/keebio/bamfk1
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/keebio/bamfk1')
-rw-r--r--keyboards/keebio/bamfk1/bamfk1.c4
-rw-r--r--keyboards/keebio/bamfk1/bamfk1.h14
-rw-r--r--keyboards/keebio/bamfk1/config.h53
-rw-r--r--keyboards/keebio/bamfk1/info.json28
-rw-r--r--keyboards/keebio/bamfk1/keymaps/via/keymap.c2
-rw-r--r--keyboards/keebio/bamfk1/rules.mk6
6 files changed, 22 insertions, 85 deletions
diff --git a/keyboards/keebio/bamfk1/bamfk1.c b/keyboards/keebio/bamfk1/bamfk1.c
deleted file mode 100644
index eddd7e624e..0000000000
--- a/keyboards/keebio/bamfk1/bamfk1.c
+++ /dev/null
@@ -1,4 +0,0 @@
-// Copyright 2021 Danny Nguyen (@nooges)
-// SPDX-License-Identifier: GPL-2.0-or-later
-
-#include "bamfk1.h"
diff --git a/keyboards/keebio/bamfk1/bamfk1.h b/keyboards/keebio/bamfk1/bamfk1.h
deleted file mode 100644
index be1fd00808..0000000000
--- a/keyboards/keebio/bamfk1/bamfk1.h
+++ /dev/null
@@ -1,14 +0,0 @@
-// Copyright 2021 Danny Nguyen (@nooges)
-// SPDX-License-Identifier: GPL-2.0-or-later
-
-#pragma once
-
-#include "quantum.h"
-
-#define LAYOUT( \
- k00, e01, e02, \
- e01a, e01b, e02a, e02b \
-) { \
- { k00, e01, e02, KC_NO }, \
- { e01a, e01b, e02a, e02b } \
-}
diff --git a/keyboards/keebio/bamfk1/config.h b/keyboards/keebio/bamfk1/config.h
index 908b969da9..590cce19c5 100644
--- a/keyboards/keebio/bamfk1/config.h
+++ b/keyboards/keebio/bamfk1/config.h
@@ -3,28 +3,11 @@
#pragma once
-#include "config_common.h"
-
-/* key matrix size */
-#define MATRIX_ROWS 2
-#define MATRIX_COLS 4
-
-/*
- * Keyboard Matrix Assignments
- */
-
-#define DIRECT_PINS { \
- { E6, B6, D6, NO_PIN }, \
- { NO_PIN, NO_PIN, NO_PIN, NO_PIN } \
-}
#define AUDIO_PIN C6
#ifdef AUDIO_ENABLE
# define STARTUP_SONG SONG(STARTUP_SOUND)
#endif
-#define ENCODERS_PAD_A { C7, D7 }
-#define ENCODERS_PAD_B { B5, D4 }
-#define ENCODERS 2
#define ENCODERS_CW_KEY { { 1, 1 }, { 3, 1 } }
#define ENCODERS_CCW_KEY { { 0, 1 }, { 2, 1 } }
@@ -48,43 +31,11 @@
#endif
#define RGBLIGHT_DEFAULT_MODE (RGBLIGHT_MODE_RAINBOW_SWIRL + 2)
-/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
-#define DEBOUNCE 5
-
-/* define if matrix has ghost (lacks anti-ghosting diodes) */
-//#define MATRIX_HAS_GHOST
-
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE
/* Locking resynchronize hack */
#define LOCKING_RESYNC_ENABLE
-/* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
- * This is useful for the Windows task manager shortcut (ctrl+shift+esc).
- */
-//#define GRAVE_ESC_CTRL_OVERRIDE
-
-/*
- * Force NKRO
- *
- * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
- * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
- * makefile for this to work.)
- *
- * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
- * until the next keyboard reset.
- *
- * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
- * fully operational during normal computer usage.
- *
- * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
- * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
- * bootmagic, NKRO mode will always be enabled until it is toggled again during a
- * power-up.
- *
- */
-//#define FORCE_NKRO
-
/*
* Feature disable options
* These options are also useful to firmware size reduction.
@@ -100,7 +51,3 @@
//#define NO_ACTION_LAYER
//#define NO_ACTION_TAPPING
//#define NO_ACTION_ONESHOT
-
-/* Bootmagic Lite key configuration */
-//#define BOOTMAGIC_LITE_ROW 0
-//#define BOOTMAGIC_LITE_COLUMN 0
diff --git a/keyboards/keebio/bamfk1/info.json b/keyboards/keebio/bamfk1/info.json
index 858dcfc948..c647eec514 100644
--- a/keyboards/keebio/bamfk1/info.json
+++ b/keyboards/keebio/bamfk1/info.json
@@ -8,17 +8,31 @@
"pid": "0x1111",
"device_version": "0.0.1"
},
+ "encoder": {
+ "rotary": [
+ {"pin_a": "C7", "pin_b": "B5"},
+ {"pin_a": "D7", "pin_b": "D4"}
+ ]
+ },
+ "processor": "atmega32u4",
+ "bootloader": "atmel-dfu",
+ "matrix_pins": {
+ "direct": [
+ ["E6", "B6", "D6", null],
+ [null, null, null, null]
+ ]
+ },
"layouts": {
"LAYOUT": {
"layout": [
- {"label": "k00", "x": 1.5, "y": 0, "h":2, "w": 2},
- {"label": "k01", "x": 0.5, "y": 2.25},
- {"label": "k02", "x": 3.5, "y": 2.25},
+ {"x": 1.5, "y": 0, "h":2, "w": 2, "matrix": [0, 0]},
+ {"x": 0.5, "y": 2.25, "matrix": [0, 1]},
+ {"x": 3.5, "y": 2.25, "matrix": [0, 2]},
- {"label": "k10", "x": 0, "y": 3.5},
- {"label": "k11", "x": 1, "y": 3.5},
- {"label": "k12", "x": 3, "y": 3.5},
- {"label": "k13", "x": 4, "y": 3.5}
+ {"x": 0, "y": 3.5, "matrix": [1, 0]},
+ {"x": 1, "y": 3.5, "matrix": [1, 1]},
+ {"x": 3, "y": 3.5, "matrix": [1, 2]},
+ {"x": 4, "y": 3.5, "matrix": [1, 3]}
]
}
}
diff --git a/keyboards/keebio/bamfk1/keymaps/via/keymap.c b/keyboards/keebio/bamfk1/keymaps/via/keymap.c
index e7cde2d7ee..80ada5d8aa 100644
--- a/keyboards/keebio/bamfk1/keymaps/via/keymap.c
+++ b/keyboards/keebio/bamfk1/keymaps/via/keymap.c
@@ -14,7 +14,7 @@ enum layer_names {
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[_MAIN] = LAYOUT(
RGB_MOD, // Big Switch
- FN_MO13, KC_MUTE, // Encoder presses
+ TL_LOWR, KC_MUTE, // Encoder presses
KC_DOWN, KC_UP, // Left encoder turns
KC_VOLD, KC_VOLU // Right encoder turns
),
diff --git a/keyboards/keebio/bamfk1/rules.mk b/keyboards/keebio/bamfk1/rules.mk
index f48fee9a21..514d88831a 100644
--- a/keyboards/keebio/bamfk1/rules.mk
+++ b/keyboards/keebio/bamfk1/rules.mk
@@ -1,9 +1,3 @@
-# MCU name
-MCU = atmega32u4
-
-# Bootloader selection
-BOOTLOADER = atmel-dfu
-
# Build Options
# change yes to no to disable
#