From 2cdf99ae950a82e233482347651b7689c4896827 Mon Sep 17 00:00:00 2001 From: Ryan Date: Tue, 14 Feb 2023 18:39:41 +1100 Subject: Migrate `DIRECT_PINS` to data driven (#19826) --- keyboards/botanicalkeyboards/fm2u/config.h | 45 ----------------------------- keyboards/botanicalkeyboards/fm2u/info.json | 5 ++++ 2 files changed, 5 insertions(+), 45 deletions(-) delete mode 100644 keyboards/botanicalkeyboards/fm2u/config.h (limited to 'keyboards/botanicalkeyboards') diff --git a/keyboards/botanicalkeyboards/fm2u/config.h b/keyboards/botanicalkeyboards/fm2u/config.h deleted file mode 100644 index a329779827..0000000000 --- a/keyboards/botanicalkeyboards/fm2u/config.h +++ /dev/null @@ -1,45 +0,0 @@ -/* -Copyright 2020 mechmerlin - -This program is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation, either version 2 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program. If not, see . -*/ - -#pragma once - - -/* key matrix size */ -#define MATRIX_ROWS 1 -#define MATRIX_COLS 1 - -/* Keyboard Matrix Assignments */ -#define DIRECT_PINS { \ - { C4 } \ -} - -/* - * Keyboard Matrix Assignments - * - * Change this to how you wired your keyboard - * COLS: AVR pins used for columns, left to right - * ROWS: AVR pins used for rows, top to bottom - * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode) - * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) - * - */ - -/* COL2ROW, ROW2COL*/ -#define DIODE_DIRECTION COL2ROW - - - diff --git a/keyboards/botanicalkeyboards/fm2u/info.json b/keyboards/botanicalkeyboards/fm2u/info.json index c0ea4c9b8a..09d617152b 100644 --- a/keyboards/botanicalkeyboards/fm2u/info.json +++ b/keyboards/botanicalkeyboards/fm2u/info.json @@ -10,6 +10,11 @@ }, "processor": "atmega32u2", "bootloader": "atmel-dfu", + "matrix_pins": { + "direct": [ + ["C4"] + ] + }, "layouts": { "LAYOUT_1u": { "layout": [ -- cgit v1.2.3