diff options
Diffstat (limited to 'keyboards/keebio/levinson/keymaps/issmirnov')
-rw-r--r-- | keyboards/keebio/levinson/keymaps/issmirnov/README.md | 15 | ||||
-rw-r--r-- | keyboards/keebio/levinson/keymaps/issmirnov/config.h | 39 | ||||
-rw-r--r-- | keyboards/keebio/levinson/keymaps/issmirnov/keymap.c | 124 | ||||
-rw-r--r-- | keyboards/keebio/levinson/keymaps/issmirnov/rgb.c | 61 |
4 files changed, 0 insertions, 239 deletions
diff --git a/keyboards/keebio/levinson/keymaps/issmirnov/README.md b/keyboards/keebio/levinson/keymaps/issmirnov/README.md deleted file mode 100644 index b6a94c6c3d..0000000000 --- a/keyboards/keebio/levinson/keymaps/issmirnov/README.md +++ /dev/null @@ -1,15 +0,0 @@ -# Levinson - -## Colors - -- https://github.com/qmk/qmk_firmware/blob/master/docs/feature_rgblight.md - - main docs. -- https://github.com/qmk/qmk_firmware/blob/master/quantum/color.h - - list of colors -- https://github.com/qmk/qmk_firmware/blob/master/quantum/rgblight.h - - list of functions for RGB manipulation - -## Troubleshooting - -- When in doubt, flash both sides of the keyboard. For some reason that helps with LEDs and reponsiveness. - - `cd qmk_firmware && make keebio/levinson/rev2:issmirnov:dfu-split-right` diff --git a/keyboards/keebio/levinson/keymaps/issmirnov/config.h b/keyboards/keebio/levinson/keymaps/issmirnov/config.h deleted file mode 100644 index 033f6dbfe0..0000000000 --- a/keyboards/keebio/levinson/keymaps/issmirnov/config.h +++ /dev/null @@ -1,39 +0,0 @@ -#pragma once - -#ifdef RGBLIGHT_ENABLE - // Enable animations. +5500 bytes -#define RGBLIGHT_EFFECT_BREATHING -#define RGBLIGHT_EFFECT_RAINBOW_MOOD -#define RGBLIGHT_EFFECT_RAINBOW_SWIRL -#define RGBLIGHT_EFFECT_SNAKE -#define RGBLIGHT_EFFECT_KNIGHT -#define RGBLIGHT_EFFECT_CHRISTMAS -#define RGBLIGHT_EFFECT_STATIC_GRADIENT -#define RGBLIGHT_EFFECT_RGB_TEST -#define RGBLIGHT_EFFECT_ALTERNATING -#define RGBLIGHT_EFFECT_TWINKLE - - - // Map my custom number of LED's - #undef RGBLED_NUM - #define RGBLED_NUM 16 - #define RGBLIGHT_LED_MAP { 0, 1, 2, 3, 4, 5, 6, 7, 15, 14, 13, 12, 11, 10, 9, 8 } // When changed, BE SURE to flash EEPROM on both halves and clear it. - - // DO NOT USE RGBLED_SPLIT - the slave board will stop responding. - - // Turn off RGB when computer sleeps - #define RGBLIGHT_SLEEP - - // custom colors - #define RGB_CLEAR 0x00, 0x00, 0x00 - - // MOD indicators - #define SHFT_LED1 7 - #define GUI_LED1 8 -#endif - -#ifdef AUDIO_ENABLE - #define QMK_SPEAKER C6 - #define AUDIO_PIN C6 - #define NO_MUSIC_MODE // Save 2000 bytes -#endif diff --git a/keyboards/keebio/levinson/keymaps/issmirnov/keymap.c b/keyboards/keebio/levinson/keymaps/issmirnov/keymap.c deleted file mode 100644 index f5fbe16c9d..0000000000 --- a/keyboards/keebio/levinson/keymaps/issmirnov/keymap.c +++ /dev/null @@ -1,124 +0,0 @@ -#include "tap_tog.h" - -#ifdef AUDIO_ENABLE - #include "audio.h" - #include "sounds.h" -#endif - - -#ifdef RGBLIGHT_ENABLE - #include "rgb.h" -#endif - -const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { - -// Run `./qmk show levinson` from parent dir to see this layer. -[_QWERTY] = LAYOUT_ortho_4x12_wrapper( -KC_ESC , _________________QWERTY_L1_________________, _________________QWERTY_R1_________________ , APPS , -KC_TAB , _________________QWERTY_L2_________________, _________________QWERTY_R2_________________ , MO(_NAVI) , -OSMSFT , _________________QWERTY_L3_________________, _________________QWERTY_R3_________________ , KC_QUOTE , -KC_LCTL , MODSFT , KC_LALT , KC_LGUI , KC_BSPC , KC_SPC , KC_ENTER , KC_TAB , KC_UP , KC_DOWN , KC_LEFT , KC_RGHT -), // Note: visualizer expects this closing parens to be right at the start of the line. - -// Run `./qmk show levinson` from parent dir to see this layer. -[_SYMB] = LAYOUT_ortho_4x12_wrapper( -_______ , _________________SYMB_L1___________________, _________________SYMB_R1___________________ , KC_ESC , -_______ , _________________SYMB_L2___________________, _________________SYMB_R2___________________ , KC_DQT , -_______ , _________________SYMB_L3___________________, _________________SYMB_R3___________________ , KC_QUOTE , -_______ , ___________________BLANK___________________, _______ , _______ , KC_ESC , KC_COLN , KC_PERC , LOCK -), // Note: visualizer expects this closing parens to be right at the start of the line. - -// Run `./qmk show levinson` from parent dir to see this layer. -[_NUMP] = LAYOUT_ortho_4x12_wrapper( -_______ , _________________NUMP_L1___________________ , _________________NUMP_R1___________________ , QK_BOOT, -_______ , _________________NUMP_L2___________________ , _________________NUMP_R2___________________ , _______ , -_______ , _________________NUMP_L3___________________ , _________________NUMP_R3___________________ , _______ , -_______ , ___________________BLANK___________________ , _______ , _______ , _______ , _______ , TO(_OVERWATCH) , _______ -), // Note: visualizer expects this closing parens to be right at the start of the line. - -// Run `./qmk show levinson` from parent dir to see this layer. -[_OVERWATCH] = LAYOUT_ortho_4x12_wrapper( -______________OVERWATCH_L1_________________ , TO(0) , XXXXXXX , XXXXXXX , XXXXXXX , XXXXXXX , EE_CLR , -______________OVERWATCH_L2_________________ , RGB_MODE_FORWARD , RGB_MODE_REVERSE , RGB_VAI , RGB_VAD , XXXXXXX , RGB_TOG , -______________OVERWATCH_L3_________________ , RGB_MODE_PLAIN , RGB_MODE_BREATHE , RGB_MODE_RAINBOW , RGB_MODE_SWIRL , RGB_MODE_SNAKE , RGB_MODE_XMAS , -______________OVERWATCH_L4_________________ , KC_SPACE, RGB_HUI , RGB_HUD , RGB_SAI , RGB_SAD , RGB_MODE_RGBTEST , RGB_MODE_GRADIENT -), // Note: visualizer expects this closing parens to be right at the start of the line. - -// Run `./qmk show levinson` from parent dir to see this layer. -[_NAVI] = LAYOUT_ortho_4x12_wrapper( -XXXXXXX , _________________NAVI_L1___________________ , _________________NAVI_R1___________________ , XXXXXXX , -XXXXXXX , _________________NAVI_L2___________________ , _________________NAVI_R2___________________ , XXXXXXX , -XXXXXXX , _________________NAVI_L3___________________ , _________________NAVI_R3___________________ , XXXXXXX , -XXXXXXX , XXXXXXX , XXXXXXX , XXXXXXX , XXXXXXX , APPS , KC_LGUI , MODSFT , XXXXXXX , XXXXXXX , XXXXXXX , XXXXXXX -), // Note: visualizer expects this closing parens to be right at the start of the line. - -}; - -// called by QMK during key processing before the actual key event is handled. Useful for macros. -bool process_record_user(uint16_t keycode, keyrecord_t *record) { - switch (keycode) { - case LOCK: - if (record->event.pressed) { - rgblight_mode(RGBLIGHT_MODE_RAINBOW_SWIRL); - } - return true; // Let QMK send the press/release events - break; - - case TAP_TOG_LAYER: - process_tap_tog(_SYMB,record); - return false; - break; - default: - tap_tog_count = 0; // reset counter. - tap_tog_layer_other_key_pressed = true; // always set this to true, TAP_TOG_LAYER handlers will handle interpreting this - break; - } - return true; -} - - -// Runs constantly in the background, in a loop every 100ms or so. -// Best used for LED status output triggered when user isn't actively typing. -void matrix_scan_user(void) { - #ifdef RGBLIGHT_ENABLE - matrix_scan_rgb(); - #endif // RGBLIGHT_ENABLE -} - -// only runs when when the layer is changed, good for updating LED's and clearing sticky state -// RGB modes: https://github.com/qmk/qmk_firmware/blob/master/quantum/rgblight.h -layer_state_t layer_state_set_user(layer_state_t state) { - #ifdef RGBLIGHT_ENABLE - layer_state_set_rgb(state); - #endif - uint8_t layer = get_highest_layer(state); - combo_enable(); // by default, enable combos. - switch (layer) { - case 0: - break; - case 1: - clear_mods(); - break; - case 2: - clear_mods(); - break; - case _OVERWATCH: - clear_mods(); - combo_disable(); // We don't want combos in overwatch - #ifdef AUDIO_ENABLE - // PLAY_SONG(song_overwatch); - #endif - break; - default: - break; - } - return state; -}; - -// Runs boot tasks for keyboard. -// Plays a welcome song and clears RGB state. -void matrix_init_user(void) { - #ifdef RGBLIGHT_ENABLE - keyboard_post_init_rgb(); - #endif -} diff --git a/keyboards/keebio/levinson/keymaps/issmirnov/rgb.c b/keyboards/keebio/levinson/keymaps/issmirnov/rgb.c deleted file mode 100644 index 0b123bb8d2..0000000000 --- a/keyboards/keebio/levinson/keymaps/issmirnov/rgb.c +++ /dev/null @@ -1,61 +0,0 @@ -#include "rgb.h" - -// TODO gate this debugging header -#include <print.h> - -// Wired up in layer_state_set_user in keymap.c -layer_state_t layer_state_set_rgb(layer_state_t state) { - switch (get_highest_layer(state)) { - case _QWERTY: - rgblight_mode(RGBLIGHT_MODE_STATIC_LIGHT); - rgblight_sethsv_noeeprom(RGB_CLEAR); - break; - case _SYMB: - rgblight_sethsv_noeeprom(HSV_RED); - break; - case _NUMP: - rgblight_sethsv_noeeprom(HSV_GREEN); - break; - case _OVERWATCH: - rgblight_sethsv_noeeprom(HSV_BLUE); - // TODO set up animated rainbow swirl with overwatch colors. - // rgblight_mode_noeeprom(RGBLIGHT_MODE_RAINBOW_SWIRL); - // rgblight_effect_breathing(&animation_status); - // rgblight_mode_noeeprom(RGBLIGHT_MODE_BREATHING + 3); - break; - case _NAVI: - rgblight_sethsv_noeeprom(HSV_AZURE); - break; - default: // for any other layers, or the default layer - break; - } - return state; -} - - -void keyboard_post_init_rgb(void) { - rgblight_enable(); - rgblight_mode(RGBLIGHT_MODE_STATIC_LIGHT); - rgblight_setrgb(RGB_CLEAR); - uprintf("Reset RGB colors"); -} - -void matrix_scan_rgb(void) { - set_rgb_indicators(get_mods(), get_oneshot_mods()); -} - -void set_rgb_indicators(uint8_t this_mod, uint8_t this_osm) { - if (get_highest_layer(layer_state) == _QWERTY) { - if ((this_mod | this_osm) & MOD_MASK_SHIFT) { - rgblight_setrgb_at(RGB_GOLD, SHFT_LED1); - } else { - rgblight_setrgb_at(RGB_CLEAR, SHFT_LED1); - } - - if ((this_mod | this_osm) & MOD_MASK_GUI) { - rgblight_setrgb_purple_at(GUI_LED1); - } else { - rgblight_setrgb_at(RGB_CLEAR, GUI_LED1); - } - } -} |