]> git.donarmstrong.com Git - qmk_firmware.git/blobdiff - keyboards/keebio/bdn9/config.h
Remove the need to specify NUM_OF_ENCODERS for the Encoder feature (#6328)
[qmk_firmware.git] / keyboards / keebio / bdn9 / config.h
index 23b92b6cee423484efe847b1d912da7df0b4df29..641dc5736194680586bb311f9a708ec55094f6f6 100644 (file)
@@ -28,17 +28,16 @@ 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 }
+#define DIRECT_PINS { \
+    { D2, D4, F4 }, \
+    { D7, B1, B3 }, \
+    { E6, B4, B2 } \
+}
 
-/* COL2ROW, ROW2COL, or CUSTOM_MATRIX */
-#define DIODE_DIRECTION COL2ROW
-
-#define NUMBER_OF_ENCODERS 2
 #define ENCODERS_PAD_A { D1, F5 }
 #define ENCODERS_PAD_B { D0, F6 }
 
@@ -60,7 +59,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #endif
 
 /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
-#define DEBOUNCING_DELAY 5
+#define DEBOUNCE 5
 
 /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
 #define LOCKING_SUPPORT_ENABLE