From 7e843d0eca7c9189425b9ee9660d23b03342d03c Mon Sep 17 00:00:00 2001 From: Leon Anavi Date: Tue, 15 Nov 2022 18:54:45 +0200 Subject: keyboards/anavi: Add ANAVI Knob 1 (#18623) ANAVI Knob 1 is a mini mechanical keyboard with a clickable rotary encoder, USB-C, RP2040 microcontroller and I2C slot for a display. Signed-off-by: Leon Anavi Signed-off-by: Leon Anavi --- keyboards/anavi/knob1/config.h | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 keyboards/anavi/knob1/config.h (limited to 'keyboards/anavi/knob1/config.h') diff --git a/keyboards/anavi/knob1/config.h b/keyboards/anavi/knob1/config.h new file mode 100644 index 0000000000..f677aa9b23 --- /dev/null +++ b/keyboards/anavi/knob1/config.h @@ -0,0 +1,34 @@ +// Copyright 2022 Leon Anavi +// SPDX-License-Identifier: GPL-2.0-or-later + +#pragma once + +#include "config_common.h" + +/* key matrix size */ +#define MATRIX_ROWS 1 +#define MATRIX_COLS 1 + +/* Keyboard Matrix Assignments */ +// clang-format off +#define DIRECT_PINS { \ + { GP26 } \ +} + +#define RGBLIGHT_DEFAULT_MODE 9 + +/* Double tap reset button to enter bootloader */ +#define RP2040_BOOTLOADER_DOUBLE_TAP_RESET +#define RP2040_BOOTLOADER_DOUBLE_TAP_RESET_LED GP17 +#define RP2040_BOOTLOADER_DOUBLE_TAP_RESET_TIMEOUT 500U + + +#define I2C_DRIVER I2CD2 +#define I2C1_SDA_PIN GP6 +#define I2C1_SCL_PIN GP7 + +#ifdef OLED_ENABLE +# define OLED_DISPLAY_128X64 +# define OLED_TIMEOUT 60000 +# define OLED_BRIGHTNESS 128 +#endif -- cgit v1.2.3