2 Copyright 2018 Kenneth Aloysius
4 This program is free software: you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation, either version 2 of the License, or
7 (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
17 #include QMK_KEYBOARD_H
27 const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
30 /* ┌─────────┬─────────┬─────────┐ */
32 /* ├─────────┼─────────┼─────────┤ */
33 KC_LEFT, KC_DOWN, KC_RIGHT
34 /* └─────────┴─────────┴─────────┘ */
38 /* ┌─────────┬─────────┬─────────┐ */
40 /* ├─────────┼─────────┼─────────┤ */
41 KC_HOME, KC_PGDN, KC_END
42 /* └─────────┴─────────┴─────────┘ */
46 /* ┌─────────┬─────────┬─────────┐ */
48 /* ├─────────┼─────────┼─────────┤ */
49 KC_MPRV, KC_MPLY, KC_MNXT
50 /* └─────────┴─────────┴─────────┘ */
54 /* ┌─────────┬─────────┬─────────┐ */
56 /* ├─────────┼─────────┼─────────┤ */
57 KC_MS_L, KC_MS_D, KC_MS_R
58 /* └─────────┴─────────┴─────────┘ */
62 /* ┌─────────┬─────────┬─────────┐ */
64 /* ├─────────┼─────────┼─────────┤ */
65 RGB_TOG, BL_TOGG, BL_STEP
66 /* └─────────┴─────────┴─────────┘ */
71 void eeconfig_init_user(void) {
72 // use the non noeeprom versions, to write these values to EEPROM too
74 rgblight_mode(RGBLIGHT_MODE_BREATHING+1);
79 void keyboard_post_init_user(void) {
80 //layer_state_set_user is not called for inital state - set it here
81 rgblight_sethsv_noeeprom_white();
84 uint32_t layer_state_set_user(uint32_t state) {
85 switch (biton32(state)) {
87 rgblight_sethsv_noeeprom_cyan();
90 rgblight_sethsv_noeeprom_magenta();
93 rgblight_sethsv_noeeprom_red();
96 rgblight_sethsv_noeeprom_orange();
99 default: // for any other layers, or the default layer
100 rgblight_sethsv_noeeprom_white();