Move encoder config to data driven (#19923)

Co-authored-by: Nick Brassel <nick@tzarc.org>
This commit is contained in:
Ryan 2023-02-26 09:45:12 +11:00 committed by GitHub
parent 314f6c1ddb
commit 7e0299117b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
972 changed files with 2898 additions and 2569 deletions

View file

@ -52,7 +52,3 @@
#define RGBLIGHT_EFFECT_ALTERNATING
#define RGBLIGHT_EFFECT_TWINKLE
#define RGBLIGHT_SLEEP
/* Optional encoder pins */
#define ENCODERS_PAD_A { B5 }
#define ENCODERS_PAD_B { B4 }

View file

@ -7,6 +7,11 @@
"pid": "0x6060",
"device_version": "0.0.1"
},
"encoder": {
"rotary": [
{"pin_a": "B5", "pin_b": "B4"}
]
},
"processor": "atmega32u4",
"bootloader": "atmel-dfu",
"debounce": 10,

View file

@ -19,7 +19,4 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once
/* Optional encoder pins */
#define ENCODERS_PAD_A { D6 }
#define ENCODERS_PAD_B { D7 }
#define TAP_CODE_DELAY 10

View file

@ -1,4 +1,9 @@
{
"encoder": {
"rotary": [
{"pin_a": "D6", "pin_b": "D7"}
]
},
"processor": "atmega328p",
"bootloader": "usbasploader",
"matrix_pins": {

View file

@ -19,9 +19,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once
/* Optional encoder pins */
#define ENCODERS_PAD_A { GP24 }
#define ENCODERS_PAD_B { GP25 }
#define TAP_CODE_DELAY 10
/* RP2040-specific defines*/

View file

@ -1,4 +1,9 @@
{
"encoder": {
"rotary": [
{"pin_a": "GP24", "pin_b": "GP25"}
]
},
"processor": "RP2040",
"bootloader": "rp2040",
"matrix_pins": {

View file

@ -42,8 +42,3 @@
#define RGBLIGHT_EFFECT_RGB_TEST
#define RGBLIGHT_EFFECT_ALTERNATING
#define RGBLIGHT_EFFECT_TWINKLE
/* Optional encoder pins */
// Encoders are defined in order. 1: B2 & B3, 2: B4 & B5, 3: D0 & D1, 4: D2 & D3
#define ENCODERS_PAD_A { B2, B4, D0, D3 }
#define ENCODERS_PAD_B { B3, B5, D1, D2 }

View file

@ -7,6 +7,14 @@
"pid": "0x6064",
"device_version": "0.0.1"
},
"encoder": {
"rotary": [
{"pin_a": "B2", "pin_b": "B3"},
{"pin_a": "B4", "pin_b": "B5"},
{"pin_a": "D0", "pin_b": "D1"},
{"pin_a": "D3", "pin_b": "D2"}
]
},
"processor": "atmega32u4",
"bootloader": "atmel-dfu",
"layouts": {