~ruther/qmk_firmware

829075ffefec94a2b8ff15c5d625f3ebc767096a — Vinam Arora 4 years ago 8ab6efd
Increased dynamic keymap layers in via keymap (#11575)

2 files changed, 52 insertions(+), 0 deletions(-)

A keyboards/0_sixty/keymaps/via/config.h
M keyboards/0_sixty/keymaps/via/keymap.c
A keyboards/0_sixty/keymaps/via/config.h => keyboards/0_sixty/keymaps/via/config.h +22 -0
@@ 0,0 1,22 @@
/* Copyright 2021 Vinam Arora <vinam@posteo.de>
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

#pragma once

#define DYNAMIC_KEYMAP_LAYER_COUNT 7
/* This is 4 by default. ProMicro's memory doesn't seem to be able to
 * support more than 7 dynamic keymap layers
 */

M keyboards/0_sixty/keymaps/via/keymap.c => keyboards/0_sixty/keymaps/via/keymap.c +30 -0
@@ 22,6 22,9 @@ enum zero_sixty_layers {
  _LOWER,
  _RAISE,
  _ADJUST,
  _EMPTY1, // Just to initialize dynamic layers in VIA
  _EMPTY2,
  _EMPTY3,
};

#define LOWER MO(_LOWER)


@@ 113,4 116,31 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
  _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
  _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
),

/* Transparent layers, only to initialize VIA's dynamic layers */

[_EMPTY1] = LAYOUT_ortho_5x12(
  _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
  _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
  _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
  _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
  _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
),

[_EMPTY2] = LAYOUT_ortho_5x12(
  _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
  _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
  _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
  _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
  _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
),

[_EMPTY3] = LAYOUT_ortho_5x12(
  _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
  _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
  _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
  _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
  _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
),

};