Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Keymap] ANAVI Macro Pad 8 fix kodi and default #10727

Merged
merged 1 commit into from
Nov 17, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion keyboards/anavi/macropad8/keymaps/default/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ oled_rotation_t oled_init_user(oled_rotation_t rotation) {
void oled_task_user(void) {
// Host Keyboard Layer Status
oled_write_ln_P(PSTR("ANAVI Macro Pad 8"), false);
oled_write_P(PSTR("Active layer:"), false);
oled_write_P(PSTR("Active layer: "), false);

switch (get_highest_layer(layer_state)) {
case _MAIN:
Expand Down
16 changes: 14 additions & 2 deletions keyboards/anavi/macropad8/keymaps/kodi/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,18 @@ const uint8_t RGBLED_RAINBOW_MOOD_INTERVALS[] PROGMEM = {60, 30, 15};
const uint8_t RGBLED_RAINBOW_SWIRL_INTERVALS[] PROGMEM = {20, 10, 4};
#endif

/**
* Kodi shortcuts:
*
* ESC - Previous menu OR Home screen
* Enter - Select
* X - Stop
* Arrows to move
*
* For details have a look at:
* https://kodi.wiki/view/Keyboard_controls
*/

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[_MAIN] = LAYOUT_ortho_2x4(
KC_ESC, KC_UP, KC_ENTER, KC_X,
Expand All @@ -32,11 +44,11 @@ oled_rotation_t oled_init_user(oled_rotation_t rotation) {
void oled_task_user(void) {
// Host Keyboard Layer Status
oled_write_ln_P(PSTR("ANAVI Macro Pad 8"), false);
oled_write_P(PSTR("Active layer:"), false);
oled_write_P(PSTR("Active layer: "), false);

switch (get_highest_layer(layer_state)) {
case _MAIN:
oled_write_ln_P(PSTR("Main"), false);
oled_write_ln_P(PSTR("Kodi"), false);
break;
case _FN:
oled_write_ln_P(PSTR("FN"), false);
Expand Down