forked from qmk/qmk_firmware
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Keyboard] Add Binepad BNR1 v2 rotary encoder (qmk#19770)
- Loading branch information
1 parent
9c6b8fa
commit 989f247
Showing
10 changed files
with
60 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
# Copyright 2022 Binepad (@binpad) | ||
# SPDX-License-Identifier: GPL-2.0-or-later | ||
|
||
LTO_ENABLE = yes | ||
|
||
ENCODER_MAP_ENABLE = yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
# Copyright 2022 Binepad (@binpad) | ||
# SPDX-License-Identifier: GPL-2.0-or-later | ||
|
||
LTO_ENABLE = yes | ||
VIA_ENABLE = yes | ||
|
||
ENCODER_MAP_ENABLE = yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# This file intentionally left blank | ||
# This file is mostly left blank | ||
|
||
DEFAULT_FOLDER = binepad/bnr1/v1 | ||
DEFAULT_FOLDER = binepad/bnr1/v2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
# This file intentionally left blank | ||
# This file is mostly left blank | ||
|
||
LTO_ENABLE = yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |