mirror of
https://github.com/Keychron/qmk_firmware.git
synced 2024-11-22 00:16:41 +06:00
Merge pull request #112 from lalalademaxiya1/playground
Update v8 ansi_encoder info.json file
This commit is contained in:
commit
1fd6186fe0
|
@ -6,7 +6,7 @@
|
|||
"usb": {
|
||||
"vid": "0x3434",
|
||||
"pid": "0x0381",
|
||||
"device_version": "1.0.1"
|
||||
"device_version": "1.0.2"
|
||||
},
|
||||
"matrix_pins": {
|
||||
"cols": ["C14", "C15", "A0", "A1", "A2", "A3", "A4", "A5", "A6", "A7", "B0", "B1", "A8", "A9", "H3"],
|
||||
|
@ -15,7 +15,7 @@
|
|||
"diode_direction": "ROW2COL",
|
||||
"encoder": {
|
||||
"rotary": [
|
||||
{"pin_a": "A10", "pin_b": "B5"}
|
||||
{"pin_a": "B5", "pin_b": "A10"}
|
||||
]
|
||||
},
|
||||
"processor": "STM32L432",
|
||||
|
|
|
@ -6,15 +6,16 @@
|
|||
"usb": {
|
||||
"vid": "0x3434",
|
||||
"pid": "0x0383",
|
||||
"device_version": "1.0.1"
|
||||
"device_version": "1.0.2"
|
||||
},
|
||||
"matrix_pins": {
|
||||
"cols": ["C14", "C15", "A0", "A1", "A2", "A3", "A4", "A5", "A6", "A7", "B0", "B1", "A8", "A9", "H3"],
|
||||
"rows": ["B4", "B3", "A15", "A14", "A13"]
|
||||
},
|
||||
"diode_direction": "ROW2COL",
|
||||
"encoder": {
|
||||
"rotary": [
|
||||
{"pin_a": "A10", "pin_b": "B5"}
|
||||
{"pin_a": "B5", "pin_b": "A10"}
|
||||
]
|
||||
},
|
||||
"processor": "STM32L432",
|
||||
|
|
|
@ -277,12 +277,3 @@ void encoder_update_raw(uint8_t *slave_state) {
|
|||
if (changed) last_encoder_activity_trigger();
|
||||
}
|
||||
#endif
|
||||
|
||||
void encoder_insert_state(void) {
|
||||
for (uint8_t i = 0; i < thisCount; i++) {
|
||||
encoder_state[i] <<= 2;
|
||||
encoder_state[i] |= (readPin(encoders_pad_a[i]) << 0) | (readPin(encoders_pad_b[i]) << 1);
|
||||
encoder_pulses[i] += encoder_LUT[encoder_state[i] & 0xF];
|
||||
encoder_external_update[i] = true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user