1
0
Fork 0

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

@ -23,15 +23,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define MATRIX_COL_PINS \
{ B6, B2, B3, B1, F7, F6, F5, F4 }
#define ENCODERS_PAD_A \
{ C6 }
#define ENCODERS_PAD_B \
{ B5 }
#define ENCODERS_PAD_A_RIGHT \
{ B5 }
#define ENCODERS_PAD_B_RIGHT \
{ C6 }
/* COL2ROW, ROW2COL*/
#define DIODE_DIRECTION COL2ROW

View file

@ -4,6 +4,20 @@
"pid": "0x9D9D",
"device_version": "0.0.1"
},
"encoder": {
"rotary": [
{"pin_a": "C6", "pin_b": "B5"}
]
},
"split": {
"encoder": {
"right": {
"rotary": [
{"pin_a": "B5", "pin_b": "C6"}
]
}
}
},
"layouts": {
"LAYOUT": {
"layout": [

View file

@ -27,15 +27,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define MATRIX_COL_PINS_RIGHT \
{ B4, B5, B6, B2, B3, B1, F7, F6 }
#define ENCODERS_PAD_A \
{ F4 }
#define ENCODERS_PAD_B \
{ F5 }
#define ENCODERS_PAD_A_RIGHT \
{ F5 }
#define ENCODERS_PAD_B_RIGHT \
{ F4 }
/* COL2ROW, ROW2COL*/
#define DIODE_DIRECTION COL2ROW

View file

@ -4,6 +4,20 @@
"pid": "0x9D9D",
"device_version": "0.0.2"
},
"encoder": {
"rotary": [
{"pin_a": "F4", "pin_b": "F5"}
]
},
"split": {
"encoder": {
"right": {
"rotary": [
{"pin_a": "F5", "pin_b": "F4"}
]
}
}
},
"layouts": {
"LAYOUT": {
"layout": [

View file

@ -17,9 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once
#define ENCODERS_PAD_A { B4 }
#define ENCODERS_PAD_B { D7 }
#define AUDIO_PIN B6
#define AUDIO_CLICKY
#define NO_MUSIC_MODE
@ -47,7 +44,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define DRV_GREETING alert_750ms
#define DRV_MODE_DEFAULT buzz
// EC11K encoders have a different resolution than other EC11 encoders.
// When using the default resolution of 4, if you notice your encoder skipping
// every other tick, lower the resolution to 2.
#define ENCODER_RESOLUTION 2

View file

@ -8,6 +8,11 @@
"pid": "0xF75B",
"device_version": "0.0.1"
},
"encoder": {
"rotary": [
{"pin_a": "B4", "pin_b": "D7", "resolution": 2}
]
},
"processor": "atmega32u4",
"bootloader": "atmel-dfu",
"matrix_pins": {