summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkaylanm <1063516+kaylanm@users.noreply.github.com>2019-04-11 15:24:29 -0400
committerMechMerlin <30334081+mechmerlin@users.noreply.github.com>2019-04-11 12:24:29 -0700
commitc78bc6a2fecb1853cc095a37c84de3a69dea142f (patch)
tree79b5fb3748d92e61380a86976c7f3179a9b343ce
parent0137b0231957c0b2fde80ac0e2a769ba4cbd60e7 (diff)
Use DIRECT_PINS for BDN9 (#5603)
-rw-r--r--keyboards/keebio/bdn9/bdn9.h4
-rw-r--r--keyboards/keebio/bdn9/config.h14
2 files changed, 10 insertions, 8 deletions
diff --git a/keyboards/keebio/bdn9/bdn9.h b/keyboards/keebio/bdn9/bdn9.h
index 26b0435605..8a45113264 100644
--- a/keyboards/keebio/bdn9/bdn9.h
+++ b/keyboards/keebio/bdn9/bdn9.h
@@ -31,5 +31,7 @@
KC1, KC2, KC3 \
) \
{ \
- { KA1, KA2, KA3, KB1, KB2, KB3, KC1, KC2, KC3 } \
+ { KA1, KA2, KA3 }, \
+ { KB1, KB2, KB3 }, \
+ { KC1, KC2, KC3 } \
}
diff --git a/keyboards/keebio/bdn9/config.h b/keyboards/keebio/bdn9/config.h
index ad0ada0401..1637ce45f1 100644
--- a/keyboards/keebio/bdn9/config.h
+++ b/keyboards/keebio/bdn9/config.h
@@ -28,15 +28,15 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define DESCRIPTION 3x3 Macropad with Rotary Encoders
/* key matrix size */
-#define MATRIX_ROWS 1
-#define MATRIX_COLS 9
+#define MATRIX_ROWS 3
+#define MATRIX_COLS 3
/* Keyboard Matrix Assignments */
-#define MATRIX_ROW_PINS { NO_PIN }
-#define MATRIX_COL_PINS { D2, D4, F4, D7, B1, B3, E6, B4, B2 }
-
-/* COL2ROW, ROW2COL*/
-#define DIODE_DIRECTION COL2ROW
+#define DIRECT_PINS { \
+ { D2, D4, F4 }, \
+ { D7, B1, B3 }, \
+ { E6, B4, B2 } \
+}
#define NUMBER_OF_ENCODERS 2
#define ENCODERS_PAD_A { D1, F5 }