[Keyboard] Add Binepad BNR1 v2 rotary encoder (#19770)

This commit is contained in:
Vino Rodrigues
2023-02-10 08:01:21 +11:00
committed by GitHub
parent 9c6b8fae40
commit 989f2476b6
10 changed files with 60 additions and 11 deletions

View 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)

View 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"
}
]
}
}

View 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