mirror of
https://github.com/qmk/qmk_firmware.git
synced 2024-11-24 20:32:58 +00:00
Implement requested changes
This commit is contained in:
parent
47444edf21
commit
ce1605ed07
@ -204,25 +204,3 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|||||||
// ),
|
// ),
|
||||||
//
|
//
|
||||||
};
|
};
|
||||||
|
|
||||||
#ifdef ENCODER_ENABLE
|
|
||||||
bool encoder_update_user(uint8_t index, bool clockwise) {
|
|
||||||
|
|
||||||
if (index == 0) {
|
|
||||||
// Volume control
|
|
||||||
if (clockwise) {
|
|
||||||
tap_code(KC_VOLU);
|
|
||||||
} else {
|
|
||||||
tap_code(KC_VOLD);
|
|
||||||
}
|
|
||||||
} else if (index == 1) {
|
|
||||||
// Page up/Page down
|
|
||||||
if (clockwise) {
|
|
||||||
tap_code(KC_PGDN);
|
|
||||||
} else {
|
|
||||||
tap_code(KC_PGUP);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
@ -2,6 +2,15 @@
|
|||||||
|
|
||||||
![splitkb/halcyon/kyria](https://i.imgur.com/n7WuUs9.jpg)
|
![splitkb/halcyon/kyria](https://i.imgur.com/n7WuUs9.jpg)
|
||||||
|
|
||||||
|
The Halcyon Kyria rev4 is the fourth Kyria revision and the first keyboard in our Halcyon range. Similar to Aurora, all keyboards in the series share the same feature set. The key highlights:
|
||||||
|
|
||||||
|
- Halcyon keyboards come preassembled! You won't need a soldering iron.
|
||||||
|
- You'll be able to install [VIK](https://github.com/sadekbaroudi/vik) modules.
|
||||||
|
- It'll come fully documented, which includes the unboxing, assembly (with only a screwdriver), first installation and some advanced use cases.
|
||||||
|
- Both the connection to the host device as well as the interconnect between the keyboard halves use USB C.
|
||||||
|
- The controller has full ESD protection on all USB C ports, as well as all switch matrix GPIO!
|
||||||
|
- The controller is interchangable. If part of your keyboard ever breaks, we can replace just the bits that need replacing.
|
||||||
|
|
||||||
* Keyboard Maintainer: [splitkb.com](https://github.com/splitkb.com)
|
* Keyboard Maintainer: [splitkb.com](https://github.com/splitkb.com)
|
||||||
* Hardware Availability: [splitkb.com](https://splitkb.com).
|
* Hardware Availability: [splitkb.com](https://splitkb.com).
|
||||||
|
|
||||||
|
@ -1,9 +1,6 @@
|
|||||||
{
|
{
|
||||||
"keyboard_name": "Halcyon Kyria rev4",
|
"keyboard_name": "Halcyon Kyria rev4",
|
||||||
"bootloader": "rp2040",
|
"bootloader": "rp2040",
|
||||||
"build": {
|
|
||||||
"lto": true
|
|
||||||
},
|
|
||||||
"diode_direction": "COL2ROW",
|
"diode_direction": "COL2ROW",
|
||||||
"encoder": {
|
"encoder": {
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
@ -156,8 +153,9 @@
|
|||||||
"driver": "vendor"
|
"driver": "vendor"
|
||||||
},
|
},
|
||||||
"transport": {
|
"transport": {
|
||||||
"watchdog": true,
|
"sync": {
|
||||||
"watchdog_timeout": 3000
|
"matrix_state": true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"usb": {
|
"usb": {
|
||||||
|
26
keyboards/splitkb/halcyon/kyria/rev4/rev4.c
Normal file
26
keyboards/splitkb/halcyon/kyria/rev4/rev4.c
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
// Copyright 2024 splitkb.com (support@splitkb.com)
|
||||||
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
|
||||||
|
#include QMK_KEYBOARD_H
|
||||||
|
|
||||||
|
#ifdef ENCODER_ENABLE
|
||||||
|
bool encoder_update_kb(uint8_t index, bool clockwise) {
|
||||||
|
|
||||||
|
if (index == 0) {
|
||||||
|
// Volume control
|
||||||
|
if (clockwise) {
|
||||||
|
tap_code(KC_VOLU);
|
||||||
|
} else {
|
||||||
|
tap_code(KC_VOLD);
|
||||||
|
}
|
||||||
|
} else if (index == 1) {
|
||||||
|
// Page up/Page down
|
||||||
|
if (clockwise) {
|
||||||
|
tap_code(KC_PGDN);
|
||||||
|
} else {
|
||||||
|
tap_code(KC_PGUP);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
#endif
|
Loading…
Reference in New Issue
Block a user