Browse Source

Apply suggestions from code review

pull/14203/head
Johannes Jansson 2 years ago
parent
commit
94432528a6
No known key found for this signature in database GPG Key ID: B7670DE8F49F4B27
4 changed files with 48 additions and 18 deletions
  1. +16
    -0
      keyboards/handwired/aetreus/keymaps/default/keymap.c
  2. +16
    -6
      keyboards/handwired/aetreus/keymaps/janzon/keymap.c
  3. +16
    -0
      keyboards/handwired/aetreus/keymaps/via/keymap.c
  4. +0
    -12
      keyboards/handwired/aetreus/rules.mk

+ 16
- 0
keyboards/handwired/aetreus/keymaps/default/keymap.c View File

@ -1,3 +1,19 @@
/* Copyright 2021 Johannes Jansson
*
* 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/>.
*/
#include QMK_KEYBOARD_H
// MOD_KC


+ 16
- 6
keyboards/handwired/aetreus/keymaps/janzon/keymap.c View File

@ -1,5 +1,20 @@
#include QMK_KEYBOARD_H
/* Copyright 2021 Johannes Jansson
*
* 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/>.
*/
#include QMK_KEYBOARD_H
// Layers
#define _QWERTY 0
@ -149,11 +164,6 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
)
};
void persistent_default_layer_set(uint16_t default_layer) {
eeconfig_update_default_layer(default_layer);
default_layer_set(default_layer);
}
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
uint8_t shift_pressed = get_mods() & ((MOD_BIT(KC_LSFT) | MOD_BIT(KC_RSFT)));
// uint8_t alt_pressed = get_mods() & ((MOD_BIT(KC_LALT) | MOD_BIT(KC_RALT)));


+ 16
- 0
keyboards/handwired/aetreus/keymaps/via/keymap.c View File

@ -1,3 +1,19 @@
/* Copyright 2021 Johannes Jansson
*
* 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/>.
*/
#include QMK_KEYBOARD_H
// MOD_KC


+ 0
- 12
keyboards/handwired/aetreus/rules.mk View File

@ -1,19 +1,7 @@
# MCU name
MCU = atmega32u4
# Bootloader selection
# Teensy halfkay
# Pro Micro caterina
# Atmel DFU atmel-dfu
# LUFA DFU lufa-dfu
# QMK DFU qmk-dfu
# ATmega32A bootloadHID
# ATmega328p USBasp
BOOTLOADER = caterina
# Build Options
# change yes to no to disable
#
BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration
MOUSEKEY_ENABLE = yes # Mouse keys
EXTRAKEY_ENABLE = yes # Audio control and System control


Loading…
Cancel
Save