[Keyboard] Add Binepad BNR1 v2 rotary encoder (#19770)
This commit is contained in:
9
keyboards/binepad/bnr1/v2/config.h
Normal file
9
keyboards/binepad/bnr1/v2/config.h
Normal file
@@ -0,0 +1,9 @@
|
||||
// Copyright 2022 BINEPAD (@binepad)
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "config_common.h"
|
||||
|
||||
#define WEAR_LEVELING_LOGICAL_SIZE 1024
|
||||
#define WEAR_LEVELING_BACKING_SIZE (WEAR_LEVELING_LOGICAL_SIZE * 2)
|
22
keyboards/binepad/bnr1/v2/info.json
Executable file
22
keyboards/binepad/bnr1/v2/info.json
Executable file
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"bootloader": "stm32duino",
|
||||
"processor": "STM32F103",
|
||||
"diode_direction": "COL2ROW",
|
||||
"usb": {
|
||||
"pid": "0x4241",
|
||||
"device_version": "2.0.0"
|
||||
},
|
||||
"matrix_pins": {
|
||||
"cols": ["A15"],
|
||||
"rows": ["A8"]
|
||||
},
|
||||
"encoder": {
|
||||
"enabled": true,
|
||||
"rotary": [
|
||||
{
|
||||
"pin_a": "B3",
|
||||
"pin_b": "B4"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
7
keyboards/binepad/bnr1/v2/rules.mk
Executable file
7
keyboards/binepad/bnr1/v2/rules.mk
Executable file
@@ -0,0 +1,7 @@
|
||||
# This file only contains EFL/WL settings and enables F103 low-power mode
|
||||
|
||||
EEPROM_DRIVER = wear_leveling
|
||||
WEAR_LEVELING_DRIVER = embedded_flash
|
||||
|
||||
# Enter lower-power sleep mode when on the ChibiOS idle thread
|
||||
OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE
|
Reference in New Issue
Block a user