summaryrefslogtreecommitdiff
path: root/keyboards/jj40
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/jj40')
-rw-r--r--keyboards/jj40/jj40.h16
-rw-r--r--keyboards/jj40/keymaps/fun40/rules.mk2
-rw-r--r--keyboards/jj40/keymaps/like_jis/config.h49
-rw-r--r--keyboards/jj40/keymaps/like_jis/keymap.c200
-rw-r--r--keyboards/jj40/keymaps/like_jis/rules.mk5
-rw-r--r--keyboards/jj40/keymaps/waples/rules.mk2
6 files changed, 2 insertions, 272 deletions
diff --git a/keyboards/jj40/jj40.h b/keyboards/jj40/jj40.h
index fce68eda58..a77f35af23 100644
--- a/keyboards/jj40/jj40.h
+++ b/keyboards/jj40/jj40.h
@@ -63,20 +63,4 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
}
-#define LAYOUT_kc( \
- k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, \
- k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, \
- k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, \
- k30, k31, k32, k33, k34, k35, k36, k37, k38, k39, k3a, k3b \
-) \
-LAYOUT_ortho_4x12( \
- KC_##k00, KC_##k01, KC_##k02, KC_##k03, KC_##k04, KC_##k05, KC_##k06, KC_##k07, KC_##k08, KC_##k09, KC_##k0a, KC_##k0b, \
- KC_##k10, KC_##k11, KC_##k12, KC_##k13, KC_##k14, KC_##k15, KC_##k16, KC_##k17, KC_##k18, KC_##k19, KC_##k1a, KC_##k1b, \
- KC_##k20, KC_##k21, KC_##k22, KC_##k23, KC_##k24, KC_##k25, KC_##k26, KC_##k27, KC_##k28, KC_##k29, KC_##k2a, KC_##k2b, \
- KC_##k30, KC_##k31, KC_##k32, KC_##k33, KC_##k34, KC_##k35, KC_##k36, KC_##k37, KC_##k38, KC_##k39, KC_##k3a, KC_##k3b \
-)
-
-
#define LAYOUT LAYOUT_planck_mit
-#define LAYOUT_kc_ortho_4x12 LAYOUT_kc
-#define KC_LAYOUT_ortho_4x12 LAYOUT_kc
diff --git a/keyboards/jj40/keymaps/fun40/rules.mk b/keyboards/jj40/keymaps/fun40/rules.mk
index 92f168a16d..3ec0a75156 100644
--- a/keyboards/jj40/keymaps/fun40/rules.mk
+++ b/keyboards/jj40/keymaps/fun40/rules.mk
@@ -1,6 +1,6 @@
-BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration(+1000)
+BOOTMAGIC_ENABLE = full # Virtual DIP switch configuration(+1000)
MOUSEKEY_ENABLE = no # Mouse keys(+4700)
EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
CONSOLE_ENABLE = no # Console for debug(+400)
diff --git a/keyboards/jj40/keymaps/like_jis/config.h b/keyboards/jj40/keymaps/like_jis/config.h
deleted file mode 100644
index cd9709272c..0000000000
--- a/keyboards/jj40/keymaps/like_jis/config.h
+++ /dev/null
@@ -1,49 +0,0 @@
-/*
-This is the c configuration file for the keymap
-
-Copyright 2012 Jun Wako <wakojun@gmail.com>
-Copyright 2015 Jack Humbert
-
-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
-
-// place overrides here
-
-#define TAPPING_TERM 200
-
-#ifdef MOUSEKEY_ENABLE
- #undef MOUSEKEY_INTERVAL
- #define MOUSEKEY_INTERVAL 5
-
- #undef MOUSEKEY_TIME_TO_MAX
- #define MOUSEKEY_TIME_TO_MAX 150
-
- #undef MOUSEKEY_MAX_SPEED
- #define MOUSEKEY_MAX_SPEED 3
-
- #undef MOUSEKEY_MOVE_DELTA
- #define MOUSEKEY_MOVE_DELTA 3
-
- #undef MOUSEKEY_DELAY
- #define MOUSEKEY_DELAY 0
-#endif
-
-#undef BACKLIGHT_LEVELS
-#define BACKLIGHT_LEVELS 15
-// #undef BACKLIGHT_LEVELS
-// #define BACKLIGHT_BREATHING
-// #undef BREATHING_PERIOD
-// #define BREATHING_PERIOD 4
diff --git a/keyboards/jj40/keymaps/like_jis/keymap.c b/keyboards/jj40/keymaps/like_jis/keymap.c
deleted file mode 100644
index 24db919472..0000000000
--- a/keyboards/jj40/keymaps/like_jis/keymap.c
+++ /dev/null
@@ -1,200 +0,0 @@
-#include QMK_KEYBOARD_H
-
-#define _QWERTY 0
-#define _LOWER 3
-#define _RAISE 4
-#define _ADJUST 16
-
-enum custom_keycodes {
- LOWER = SAFE_RANGE,
- RAISE,
- ADJUST,
- RGBRST
-};
-
-#define KC______ KC_TRNS
-#define KC_XXXXX KC_NO
-#define KC_KANJI KC_GRV
-
-#define KC_LOWER LOWER
-#define KC_RAISE RAISE
-#define KC_ADJST ADJUST
-
-#define KC_RST RESET
-
-#define KC_LRST RGBRST
-#define KC_LTOG RGB_TOG
-#define KC_LHUI RGB_HUI
-#define KC_LHUD RGB_HUD
-#define KC_LSAI RGB_SAI
-#define KC_LSAD RGB_SAD
-#define KC_LVAI RGB_VAI
-#define KC_LVAD RGB_VAD
-#define KC_LMOD RGB_MOD
-#define KC_BTOG BL_TOGG
-#define KC_BINC BL_INC
-#define KC_BDEC BL_DEC
-// #define KC_BRTG BL_BRTG
-
-#define KC_KNRM AG_NORM
-#define KC_KSWP AG_SWAP
-
-// Layer Mode aliases
-// #define KC_L_LO MO(_LOWER)
-// #define KC_L_RA MO(_RAISE)
-// #define KC_L_AD MO(_ADJUST)
-#define KC_TBSF LSFT_T(KC_TAB)
-// #define KC_SPSF LSFT_T(KC_SPC)
-// #define KC_GUAP LALT_T(KC_APP)
-
-const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
- [_QWERTY] = KC_LAYOUT_ortho_4x12( \
- //,-----------------------------------------------------------------------------------.
- ESC, Q, W, E, R, T, Y, U, I, O, P, MINS,\
- //|------+------+------+------+------+------|------+------+------+------+------+------|
- TBSF, A, S, D, F, G, H, J, K, L, SCLN, ENT,\
- //|------+------+------+------+------+------|------+------+------+------+------+------|
- LSFT, Z, X, C, V, B, N, M, COMM, DOT, UP, RSFT,\
- //|------+------+------+------+------+------|------+------+------+------+------+------|
- LCTRL, LALT, LGUI, ADJST, LOWER, BSPC, SPC, RAISE, APP, LEFT, DOWN, RGHT \
- //|------+------+------+------+------+-------------+------+------+------+------+------|
- ),
-
- [_LOWER] = KC_LAYOUT_ortho_4x12( \
- //,-----------------------------------------------------------------------------------.
- TAB, F1, F2, F3, F4, F5, XXXXX, MINS, EQL, JYEN, LBRC, RBRC,\
- //|------+------+------+------+------+------|------+------+------+------+------+------|
- _____, F6, F7, F8, F9, F10, XXXXX, XXXXX, XXXXX, SCLN, QUOT, BSLS,\
- //|------+------+------+------+------+------|------+------+------+------+------+------|
- _____, F11, F12, XXXXX, KANJI, ENT, XXXXX, XXXXX, COMM, DOT, SLSH, RO,\
- //|------+------+------+------+------+-------------+------+------+------+------+------|
- _____, _____, _____, _____, _____, DEL, _____, _____, _____, _____, _____, _____ \
- //|------+------+------+------+------+-------------+------+------+------+------+------|
- ),
-
- [_RAISE] = KC_LAYOUT_ortho_4x12( \
- //,-----------------------------------------------------------------------------------.
- _____, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, MINS,\
- //|------+------+------+------+------+------|------+------+------+------+------+------|
- _____, XXXXX, XXXXX, XXXXX, XXXXX, XXXXX, XXXXX, 4, 5, 6, QUOT, PLUS,\
- //|------+------+------+------+------+------|------+------+------+------+------+------|
- _____, XXXXX, XXXXX, XXXXX, XXXXX, XXXXX, 0, 1, 2, 3, DOT, SLSH,\
- //|------+------+------+------+------+-------------+------+------+------+------+------|
- _____, _____, _____, _____, _____, BSPC, _____, _____, _____, _____, _____, _____ \
- //|------+------+------+------+------+-------------+------+------+------+------+------|
- ),
-
- [_ADJUST] = KC_LAYOUT_ortho_4x12( \
- //,-----------------------------------------------------------------------------------.
- XXXXX, RST, LRST, KNRM, KSWP, XXXXX, XXXXX, WH_L, WH_U, HOME, PGUP, XXXXX,\
- //|------+------+------+------+------+------|------+------+------+------+------+------|
- XXXXX, LTOG, LHUI, LSAI, LVAI, BTOG, BINC, WH_R, WH_D, END, PGDN, XXXXX,\
- //|------+------+------+------+------+------|------+------+------+------+------+------|
- XXXXX, LMOD, LHUD, LSAD, LVAD, XXXXX, BDEC, XXXXX, BTN1, BTN2, MS_U, XXXXX,\
- //|------+------+------+------+------+-------------+------+------+------+------+------|
- _____, _____, _____, _____, _____, XXXXX, XXXXX, _____, _____, MS_L, MS_D, MS_R \
- //|------+------+------+------+------+-------------+------+------+------+------+------|
- )
-};
-
-
-#ifdef BACKLIGHT_ENABLE
- extern backlight_config_t backlight_config;
-
- inline void enable_backright(bool on) {
- backlight_config.enable = on;
- if (backlight_config.raw == 1) // enabled but level = 0
- backlight_config.level = 1;
- eeconfig_update_backlight(backlight_config.raw);
- // dprintf("backlight toggle: %u\n", backlight_config.enable);
- backlight_set(backlight_config.enable ? backlight_config.level : 0);
- }
-
- uint8_t bl_breath_count;
- uint8_t bl_breath_speed = 10;
- int8_t bl_breath_updown = 1;
- bool bl_breath_on;
- backlight_config_t bl_breath_backup;
-
- void bl_breath_start(uint8_t speed) {
-
- bl_breath_on = true;
- bl_breath_speed = speed;
- bl_breath_backup = backlight_config;
- }
-
- void bl_breath_end(void) {
-
- bl_breath_on = false;
- backlight_config = bl_breath_backup;
- eeconfig_update_backlight(backlight_config.raw);
- backlight_set(backlight_config.enable ? backlight_config.level : 0);
- }
-
- void bl_breath_update(void) {
-
- if (bl_breath_on) {
- ++bl_breath_count;
- if (bl_breath_count > bl_breath_speed) {
- bl_breath_count = 0;
-
- backlight_config.level += bl_breath_updown;
- bl_breath_updown = (backlight_config.level > BACKLIGHT_LEVELS) ? -1 :
- (backlight_config.level <= 0) ? 1 :
- bl_breath_updown;
- enable_backright(true);
- }
- }
- }
-
- #define BL_BREATH_START bl_breath_start
- #define BL_BREATH_END bl_breath_end
- #define BL_BREATH_UPDATE bl_breath_update
-
-#else
-
- #define BL_BREATH_START(a)
- #define BL_BREATH_END()
- #define BL_BREATH_UPDATE()
-#endif
-
-// Loop
-void matrix_scan_user(void) {
-
- BL_BREATH_UPDATE();
-}
-
-bool process_record_user(uint16_t keycode, keyrecord_t *record) {
-
- switch (keycode) {
- case LOWER:
- if (record->event.pressed) {
- BL_BREATH_START(50);
- layer_on(_LOWER);
- } else {
- BL_BREATH_END();
- layer_off(_LOWER);
- }
- break;
- case RAISE:
- if (record->event.pressed) {
- BL_BREATH_START(100);
- layer_on(_RAISE);
- } else {
- BL_BREATH_END();
- layer_off(_RAISE);
- }
- break;
- case ADJUST:
- if (record->event.pressed) {
- layer_on(_ADJUST);
- } else {
- layer_off(_ADJUST);
- }
- break;
- default:
- return true;
- }
-
- return false;
-}
diff --git a/keyboards/jj40/keymaps/like_jis/rules.mk b/keyboards/jj40/keymaps/like_jis/rules.mk
deleted file mode 100644
index 0103be5f4a..0000000000
--- a/keyboards/jj40/keymaps/like_jis/rules.mk
+++ /dev/null
@@ -1,5 +0,0 @@
-MOUSEKEY_ENABLE = yes
-BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality
-
-# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
-SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
diff --git a/keyboards/jj40/keymaps/waples/rules.mk b/keyboards/jj40/keymaps/waples/rules.mk
index 69b7c18d4e..4395f7f8f6 100644
--- a/keyboards/jj40/keymaps/waples/rules.mk
+++ b/keyboards/jj40/keymaps/waples/rules.mk
@@ -1,5 +1,5 @@
# build options
-BOOTMAGIC_ENABLE = yes
+BOOTMAGIC_ENABLE = full
MOUSEKEY_ENABLE = no
EXTRAKEY_ENABLE = yes
CONSOLE_ENABLE = no