diff options
Diffstat (limited to 'keyboards/palette1202')
-rw-r--r-- | keyboards/palette1202/config.h | 7 | ||||
-rw-r--r-- | keyboards/palette1202/info.json | 5 | ||||
-rw-r--r-- | keyboards/palette1202/lib/oled_helper.c | 6 |
3 files changed, 9 insertions, 9 deletions
diff --git a/keyboards/palette1202/config.h b/keyboards/palette1202/config.h index d3c5f5edc0..6c2ebfdc39 100644 --- a/keyboards/palette1202/config.h +++ b/keyboards/palette1202/config.h @@ -17,13 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. #pragma once - -#define MATRIX_ROW_PINS { B6, B2, B3 } -#define MATRIX_COL_PINS { C6, D7, E6, B4, B5 } - -/* COL2ROW, ROW2COL*/ -#define DIODE_DIRECTION COL2ROW - /* Register custom font file */ #ifdef OLED_ENABLE #define OLED_FONT_H "lib/glcdfont.c" diff --git a/keyboards/palette1202/info.json b/keyboards/palette1202/info.json index 6698af203b..f8587610df 100644 --- a/keyboards/palette1202/info.json +++ b/keyboards/palette1202/info.json @@ -8,6 +8,11 @@ "pid": "0x1202", "device_version": "0.0.1" }, + "matrix_pins": { + "cols": ["C6", "D7", "E6", "B4", "B5"], + "rows": ["B6", "B2", "B3"] + }, + "diode_direction": "COL2ROW", "encoder": { "rotary": [ {"pin_a": "F4", "pin_b": "F5", "resolution": 2}, diff --git a/keyboards/palette1202/lib/oled_helper.c b/keyboards/palette1202/lib/oled_helper.c index 5fb3cc7539..38608e5a6c 100644 --- a/keyboards/palette1202/lib/oled_helper.c +++ b/keyboards/palette1202/lib/oled_helper.c @@ -1,8 +1,10 @@ -#ifdef OLED_ENABLE -#include QMK_KEYBOARD_H +#include "oled_helper.h" +#include "quantum.h" #include <stdio.h> #include <string.h> +#ifdef OLED_ENABLE + // returns character cord of the logo by line number char *read_logo(int row) { static char logoLines[][18] = { |