qmk_firmware

QMK firmware for my keyboards (Corne, Sweep Ferris) and trackball (Ploopy Adept)
Log | Files | Refs | Submodules | LICENSE

keymap.c (562B)


      1 // Copyright 2022 Makoto Kurauchi (@MakotoKurauchi)
      2 // SPDX-License-Identifier: GPL-2.0-or-later
      3 
      4 #include QMK_KEYBOARD_H
      5 #include "rgblite.h"
      6 
      7 const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
      8   [0] = LAYOUT_ortho_1x1(
      9     UG_HUEU
     10   )
     11 };
     12 bool process_record_user(uint16_t keycode, keyrecord_t *record) {
     13   if (record->event.pressed) {
     14     switch (keycode) {
     15       case QK_UNDERGLOW_HUE_UP:
     16         rgblite_increase_hue();
     17         break;
     18     }
     19   }
     20   return true;
     21 }
     22 
     23 void keyboard_post_init_user(void) {
     24   rgblite_init();
     25   rgblite_increase_hue();
     26 }