Skip to content

Commit

Permalink
Merge pull request qmk#3 from koron/reex-test-keymap
Browse files Browse the repository at this point in the history
Reex test keymaps
  • Loading branch information
kushima8 authored May 5, 2023
2 parents 4a22fd5 + 63a355a commit d464978
Show file tree
Hide file tree
Showing 9 changed files with 146 additions and 2 deletions.
2 changes: 1 addition & 1 deletion keyboards/reex56/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
# define RGBLIGHT_LIMIT_VAL 100 // limitated for power consumption
# endif
# ifndef RGBLIGHT_VAL_STEP
# define RGBLIGHT_VAL_STEP 12
# define RGBLIGHT_VAL_STEP 10
# endif
# ifndef RGBLIGHT_HUE_STEP
# define RGBLIGHT_HUE_STEP 17
Expand Down
30 changes: 30 additions & 0 deletions keyboards/reex56/keymaps/test/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/*
This is the c configuration file for the keymap
Copyright 2023 @kushima8
Copyright 2023 MURAOKA Taro (aka KoRoN, @kaoriya)
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

#ifdef RGBLIGHT_ENABLE
# ifdef RGBLIGHT_EFFECT_BREATHING
# undef RGBLIGHT_EFFECT_BREATHING
# endif
# ifndef RGBLIGHT_EFFECT_RGB_TEST
# define RGBLIGHT_EFFECT_RGB_TEST // required for LED test
# endif
#endif
39 changes: 39 additions & 0 deletions keyboards/reex56/keymaps/test/keymap.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
#include QMK_KEYBOARD_H
#include "quantum.h"
#include <stdio.h>

// clang-format off
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[0] = LAYOUT(
// ,--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+-------------.
KC_ESC ,KC_1 ,KC_2 ,KC_3 ,KC_4 ,KC_5 , KC_6 ,KC_7 ,KC_8 ,KC_9 ,KC_0 ,KC_MINS ,
// |--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+-------------|
KC_TAB ,KC_Q ,KC_W ,KC_E ,KC_R ,KC_T , KC_Y ,KC_U ,KC_I ,KC_O ,KC_P ,KC_BSPC ,
// |--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+-------------|
KC_LCTL ,KC_A ,KC_S ,KC_D ,KC_F ,KC_G , KC_H ,KC_J ,KC_K ,KC_L ,KC_SCLN ,KC_QUOT ,
// |--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+-------------|
KC_RSFT ,KC_Z ,KC_X ,KC_C ,KC_V ,KC_B , KC_N ,KC_M ,KC_COMM ,KC_DOT ,KC_SLSH ,KC_ENT ,
// |--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+-------------|
KC_LCTL ,KC_LGUI ,KC_LALT ,KC_SPC , KC_SPC ,KC_RALT ,KC_RGUI ,KC_APP
// `--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+---------------------'
)
};
// clang-format on

void keyboard_post_init_user(void) {
#ifdef RGBLIGHT_ENABLE
// Force RGB lights to show test animation without writing EEPROM.
rgblight_enable_noeeprom();
rgblight_mode_noeeprom(RGBLIGHT_MODE_RGB_TEST);
#endif
}

#ifdef OLED_ENABLE

# include "lib/oledkit/oledkit.h"

void oledkit_render_info_user(void) {
reex_oled_render_keyinfo();
reex_oled_render_ballinfo();
}
#endif
3 changes: 3 additions & 0 deletions keyboards/reex56/keymaps/test/rule.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
RGBLIGHT_ENABLE = yes

OLED_ENABLE = yes
Empty file added keyboards/reex67/.noci
Empty file.
2 changes: 1 addition & 1 deletion keyboards/reex67/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
# define RGBLIGHT_LIMIT_VAL 100 // limitated for power consumption
# endif
# ifndef RGBLIGHT_VAL_STEP
# define RGBLIGHT_VAL_STEP 12
# define RGBLIGHT_VAL_STEP 10
# endif
# ifndef RGBLIGHT_HUE_STEP
# define RGBLIGHT_HUE_STEP 17
Expand Down
30 changes: 30 additions & 0 deletions keyboards/reex67/keymaps/test/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/*
This is the c configuration file for the keymap
Copyright 2023 @kushima8
Copyright 2023 MURAOKA Taro (aka KoRoN, @kaoriya)
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

#ifdef RGBLIGHT_ENABLE
# ifdef RGBLIGHT_EFFECT_BREATHING
# undef RGBLIGHT_EFFECT_BREATHING
# endif
# ifndef RGBLIGHT_EFFECT_RGB_TEST
# define RGBLIGHT_EFFECT_RGB_TEST // required for LED test
# endif
#endif
39 changes: 39 additions & 0 deletions keyboards/reex67/keymaps/test/keymap.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
#include QMK_KEYBOARD_H
#include "quantum.h"
#include <stdio.h>

// clang-format off
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[0] = LAYOUT(
// ,-------+-------+-------+-------+-------+-------+-------| |-------+-------+-------+-------+-------+-------+-------+-------+-------.
KC_ESC ,KC_1 ,KC_2 ,KC_3 ,KC_4 ,KC_5 ,KC_6 , KC_7 ,KC_8 ,KC_9 ,KC_0 ,KC_MINS,KC_EQL ,KC_BSLS,KC_GRV ,KC_DEL ,
// |-------+-------+-------+-------+-------+-------+-------| |-------+-------+-------+-------+-------+-------+-------+-------+-------|
KC_TAB ,KC_Q ,KC_W ,KC_E ,KC_R ,KC_T , KC_Y ,KC_U ,KC_I ,KC_O ,KC_P ,KC_LBRC,KC_RBRC,KC_BSPC,
// |-------+-------+-------+-------+-------+-------| |-------+-------+-------+-------+-------+-------+-------+-------|
KC_LCTL,KC_A ,KC_S ,KC_D ,KC_F ,KC_G , KC_H ,KC_J ,KC_K ,KC_L ,KC_SCLN,KC_QUOT,KC_ENT ,
// |-------+-------+-------+-------+-------+-------| |-------+-------+-------+-------+-------+-------+-------+-------|
KC_LSFT,KC_Z ,KC_X ,KC_C ,KC_V ,KC_B , KC_N ,KC_M ,KC_COMM,KC_DOT ,KC_SLSH,KC_RSFT,KC_APP ,KC_UP ,
// |-------+-------+-------+-------+-------+-------| |-------+-------+-------+-------+-------+-------+-------+-------|
KC_LCTL,KC_LGUI,KC_LALT ,KC_SPC , KC_SPC , KC_RALT,KC_RGUI,KC_LEFT,KC_DOWN,KC_RGHT
// `-------+-------+-------+-------+-------+-------| |-------+-------+-------+-------+-------+-------+-------+-------'
)
};
// clang-format on

void keyboard_post_init_user(void) {
#ifdef RGBLIGHT_ENABLE
// Force RGB lights to show test animation without writing EEPROM.
rgblight_enable_noeeprom();
rgblight_mode_noeeprom(RGBLIGHT_MODE_RGB_TEST);
#endif
}

#ifdef OLED_ENABLE

# include "lib/oledkit/oledkit.h"

void oledkit_render_info_user(void) {
reex_oled_render_keyinfo();
reex_oled_render_ballinfo();
}
#endif
3 changes: 3 additions & 0 deletions keyboards/reex67/keymaps/test/rule.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
RGBLIGHT_ENABLE = yes

OLED_ENABLE = yes

0 comments on commit d464978

Please sign in to comment.