forked from forks/qmk_firmware
Eek! keyboard firmware merge into QMK (#11020)
Co-authored-by: Drashna Jaelre <drashna@live.com> Co-authored-by: Ryan <fauxpark@gmail.com> Co-authored-by: Erovia <Erovia@users.noreply.github.com>
This commit is contained in:
parent
a5a1f860c0
commit
9346bd6f80
134
keyboards/eek/config.h
Normal file
134
keyboards/eek/config.h
Normal file
|
@ -0,0 +1,134 @@
|
|||
/*
|
||||
Copyright 2020 klackygears
|
||||
|
||||
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
|
||||
|
||||
#include "config_common.h"
|
||||
|
||||
/* USB Device descriptor parameter */
|
||||
#define VENDOR_ID 0x4A53
|
||||
#define PRODUCT_ID 0x0002
|
||||
#define DEVICE_VER 0x0004
|
||||
#define MANUFACTURER klackygears
|
||||
#define PRODUCT eek!
|
||||
|
||||
/* key matrix size */
|
||||
#define MATRIX_ROWS 4
|
||||
#define MATRIX_COLS 10
|
||||
|
||||
#define MATRIX_ROW_PINS { D7, E6, B4, B5 }
|
||||
#define MATRIX_COL_PINS { D4, C6, B6, B2, B3, B1, F7, F6, F5, F4 }
|
||||
|
||||
#define UNUSED_PINS { D2, D1, D0 }
|
||||
|
||||
#define DIODE_DIRECTION COL2ROW
|
||||
|
||||
|
||||
#define RGB_DI_PIN D3
|
||||
#ifdef RGB_DI_PIN
|
||||
#define RGBLED_NUM 36
|
||||
#define RGBLIGHT_HUE_STEP 4
|
||||
#define RGBLIGHT_SAT_STEP 8
|
||||
#define RGBLIGHT_VAL_STEP 8
|
||||
#define RGBLIGHT_LIMIT_VAL 200 /* The maximum brightness level */
|
||||
#define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
|
||||
/*== all animations enable ==*/
|
||||
#define RGBLIGHT_ANIMATIONS
|
||||
// /*== or choose animations ==*/
|
||||
// #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
|
||||
// /*== customize breathing effect ==*/
|
||||
// /*==== (DEFAULT) use fixed table instead of exp() and sin() ====*/
|
||||
// #define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256(default) or 128 or 64
|
||||
// /*==== use exp() and sin() ====*/
|
||||
// #define RGBLIGHT_EFFECT_BREATHE_CENTER 1.85 // 1 to 2.7
|
||||
// #define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0 to 255
|
||||
#endif
|
||||
|
||||
#ifdef RGB_MATRIX_ENABLE
|
||||
#define DRIVER_LED_TOTAL 36
|
||||
#define RGB_MATRIX_LED_FLUSH_LIMIT 16
|
||||
#define RGB_MATRIX_STARTUP_VAL 150
|
||||
#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 200
|
||||
#endif
|
||||
|
||||
/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
|
||||
#define DEBOUNCE 5
|
||||
|
||||
/* define if matrix has ghost (lacks anti-ghosting diodes) */
|
||||
//#define MATRIX_HAS_GHOST
|
||||
|
||||
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
|
||||
#define LOCKING_SUPPORT_ENABLE
|
||||
/* Locking resynchronize hack */
|
||||
#define LOCKING_RESYNC_ENABLE
|
||||
|
||||
/* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
|
||||
* This is userful for the Windows task manager shortcut (ctrl+shift+esc).
|
||||
*/
|
||||
// #define GRAVE_ESC_CTRL_OVERRIDE
|
||||
|
||||
/*
|
||||
* Force NKRO
|
||||
*
|
||||
* Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
|
||||
* state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
|
||||
* makefile for this to work.)
|
||||
*
|
||||
* If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
|
||||
* until the next keyboard reset.
|
||||
*
|
||||
* NKRO may prevent your keystrokes from being detected in the BIOS, but it is
|
||||
* fully operational during normal computer usage.
|
||||
*
|
||||
* For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
|
||||
* or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
|
||||
* bootmagic, NKRO mode will always be enabled until it is toggled again during a
|
||||
* power-up.
|
||||
*
|
||||
*/
|
||||
//#define FORCE_NKRO
|
||||
|
||||
/*
|
||||
* Feature disable options
|
||||
* These options are also useful to firmware size reduction.
|
||||
*/
|
||||
|
||||
/* disable debug print */
|
||||
//#define NO_DEBUG
|
||||
|
||||
/* disable print */
|
||||
//#define NO_PRINT
|
||||
|
||||
/* disable action features */
|
||||
//#define NO_ACTION_LAYER
|
||||
//#define NO_ACTION_TAPPING
|
||||
//#define NO_ACTION_ONESHOT
|
||||
//#define NO_ACTION_MACRO
|
||||
//#define NO_ACTION_FUNCTION
|
||||
|
||||
|
||||
/* Bootmagic Lite key configuration */
|
||||
// #define BOOTMAGIC_LITE_ROW 0
|
||||
// #define BOOTMAGIC_LITE_COLUMN 0
|
55
keyboards/eek/eek.c
Normal file
55
keyboards/eek/eek.c
Normal file
|
@ -0,0 +1,55 @@
|
|||
/* Copyright 2020 klackygears
|
||||
*
|
||||
* 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/>.
|
||||
*/
|
||||
#include "eek.h"
|
||||
|
||||
#ifdef RGB_MATRIX_ENABLE
|
||||
|
||||
// Logical Layout
|
||||
// Columns
|
||||
// 0 1 2 3 4
|
||||
// ROWS
|
||||
// 4 3 2 1 0 0
|
||||
// 5 6 7 8 9 1
|
||||
// 14 13 12 11 10 2
|
||||
// 15 16 17 3
|
||||
|
||||
// Logical Layout v1.3
|
||||
// Columns
|
||||
// 0 1 2 3 4 5 6 7 8 9
|
||||
// ROWS
|
||||
// 0 1 2 3 4 5 6 7 8 9 0
|
||||
// 19 18 17 16 15 14 13 12 11 10 1
|
||||
// 20 21 22 23 24 25 26 27 28 29 2
|
||||
// 35 34 33 32 31 30 3
|
||||
|
||||
|
||||
led_config_t g_led_config = { {
|
||||
{ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 },
|
||||
{ 19, 18, 17, 16, 15, 14, 13, 12, 11, 10 },
|
||||
{ 20, 21, 22, 23, 24, 25, 26, 27, 28, 29 },
|
||||
{ NO_LED, NO_LED, 35, 34, 33, 32, 31, 30, NO_LED, NO_LED }
|
||||
}, {
|
||||
{ 31, 0 }, { 46, 0 }, { 62, 0 }, { 77, 7 }, { 93, 13 }, { 131, 13 }, { 147, 7 }, { 162, 0 }, { 178, 0 }, { 193, 0 },
|
||||
{ 201, 10 }, { 185, 10 }, { 170, 10 }, { 154, 17 }, { 139, 24 }, { 85, 24 }, { 70, 17 }, { 54, 10 }, { 39, 10 }, { 23, 10 },
|
||||
{ 15, 20 }, { 31, 20 }, { 46, 20 }, { 62, 27 }, { 77, 34 }, { 147, 34 }, { 162, 27 }, { 178, 20 }, { 193, 20 }, { 209, 20 },
|
||||
{ 185, 34 }, { 170, 37 }, { 154, 44 }, { 70, 44 }, { 54, 37 }, { 39, 34 },
|
||||
}, {
|
||||
4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
|
||||
4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
|
||||
4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
|
||||
1, 1, 1, 1, 1, 1,
|
||||
} };
|
||||
#endif
|
24
keyboards/eek/eek.h
Normal file
24
keyboards/eek/eek.h
Normal file
|
@ -0,0 +1,24 @@
|
|||
/* Copyright 2020 klackygears
|
||||
*
|
||||
* 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
|
||||
|
||||
#include "quantum.h"
|
||||
|
||||
#if defined(KEYBOARD_eek_silk_down)
|
||||
# include "silk_down.h"
|
||||
#elif defined(KEYBOARD_eek_silk_up)
|
||||
# include "silk_up.h"
|
||||
#endif
|
56
keyboards/eek/info.json
Normal file
56
keyboards/eek/info.json
Normal file
|
@ -0,0 +1,56 @@
|
|||
{
|
||||
"keyboard_name": "eek!",
|
||||
"url": "http://www.keyboard-layout-editor.com/#/gists/3e4d0cd1534dd4e4b9f25cf2b36d0d63",
|
||||
"maintainer": "klackygears",
|
||||
"width": 13,
|
||||
"height": 6.25,
|
||||
"layouts": {
|
||||
"LAYOUT_split_3x5_3": {
|
||||
"layout": [
|
||||
{"x": 0, "y": 0.88},
|
||||
{"x": 1, "y": 0.38},
|
||||
{"x": 2, "y": 0},
|
||||
{"x": 3, "y": 0.38},
|
||||
{"x": 4, "y": 0.5},
|
||||
|
||||
{"x": 6, "y": 0.5},
|
||||
{"x": 7, "y": 0.38},
|
||||
{"x": 8, "y": 0},
|
||||
{"x": 9, "y": 0.38},
|
||||
{"x": 10, "y": 0.88},
|
||||
|
||||
{"x": 0, "y": 1.88},
|
||||
{"x": 1, "y": 1.38},
|
||||
{"x": 2, "y": 1},
|
||||
{"x": 3, "y": 1.38},
|
||||
{"x": 4, "y": 1.5},
|
||||
|
||||
{"x": 6, "y": 1.5},
|
||||
{"x": 7, "y": 1.38},
|
||||
{"x": 8, "y": 1.0},
|
||||
{"x": 9, "y": 1.38},
|
||||
{"x": 10, "y": 1.88},
|
||||
|
||||
{"x": 0, "y": 2.88},
|
||||
{"x": 1, "y": 2.38},
|
||||
{"x": 2, "y": 2},
|
||||
{"x": 3, "y": 2.38},
|
||||
{"x": 4, "y": 2.5},
|
||||
|
||||
{"x": 6, "y": 2.5},
|
||||
{"x": 7, "y": 2.38},
|
||||
{"x": 8, "y": 2},
|
||||
{"x": 9, "y": 2.38},
|
||||
{"x": 10, "y": 2.88},
|
||||
|
||||
{"x": 2, "y": 3.25},
|
||||
{"x": 3, "y": 3.38},
|
||||
{"x": 4, "y": 3.5},
|
||||
|
||||
{"x": 6, "y": 3.5},
|
||||
{"x": 7, "y": 3.38},
|
||||
{"x": 8, "y": 3.25}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
72
keyboards/eek/keymaps/default/keymap.c
Normal file
72
keyboards/eek/keymaps/default/keymap.c
Normal file
|
@ -0,0 +1,72 @@
|
|||
/* Copyright 2020 klackygears
|
||||
*
|
||||
* 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/>.
|
||||
*/
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
enum layer_names {
|
||||
_BASE,
|
||||
_LOWER,
|
||||
_RAISE,
|
||||
_ADJUST
|
||||
};
|
||||
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
/* Qwerty
|
||||
*
|
||||
* ,----------------------------------. ,----------------------------------.
|
||||
* | Q | W | E | R | T | | Y | U | I | O | P |
|
||||
* |------+------+------+------+------| |------+------+------+------+------|
|
||||
* | A | S | D | F | G | | H | J | K | L | ; |
|
||||
* |------+------+------+------+------| |------+------+------+------+------|
|
||||
* | Z | X | C | V | B | | N | M | , | . | / |
|
||||
* `-------------+------+------+------| |------+------+------+-------------'
|
||||
* | Ctrl | LOWER| Space| |BckSpc| RAISE| Shift|
|
||||
* `--------------------' `--------------------'
|
||||
*
|
||||
*/
|
||||
[_BASE] = LAYOUT_split_3x5_3(
|
||||
KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P,
|
||||
KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN,
|
||||
KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH,
|
||||
KC_LCTL, MO(_LOWER), KC_SPC, KC_BSPC, MO(_RAISE), OSM(MOD_LSFT)
|
||||
),
|
||||
|
||||
[_LOWER] = LAYOUT_split_3x5_3(
|
||||
KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN,
|
||||
KC_ESC, _______, _______, _______, _______, _______, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR,
|
||||
KC_CAPS, KC_TILD, _______, _______, _______, _______, _______, _______, KC_PIPE, KC_DQT,
|
||||
_______, _______, _______, KC_ENT, _______, KC_DEL
|
||||
),
|
||||
|
||||
[_RAISE] = LAYOUT_split_3x5_3(
|
||||
KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0,
|
||||
KC_TAB, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, _______, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC,
|
||||
KC_LCTL, KC_GRV, KC_LGUI, KC_LALT, _______, _______, _______, _______, KC_BSLS, KC_QUOT,
|
||||
_______, _______, _______, _______, _______, _______
|
||||
),
|
||||
|
||||
[_ADJUST] = LAYOUT_split_3x5_3(
|
||||
RGB_VAI, RGB_SAI, RGB_HUI, RGB_MOD, RGB_TOG, _______, KC_F9, KC_F10, KC_F11, KC_F12,
|
||||
RGB_VAD, RGB_SAD, RGB_HUD, RGB_RMOD, _______, _______, KC_F5, KC_F6, KC_F7, KC_F8,
|
||||
_______, _______, _______, _______, _______, RESET, KC_F1, KC_F2, KC_F3, KC_F4,
|
||||
_______, _______, _______, _______, _______, _______
|
||||
),
|
||||
};
|
||||
|
||||
layer_state_t layer_state_set_user(layer_state_t state) {
|
||||
return update_tri_layer_state(state, _LOWER, _RAISE, _ADJUST);
|
||||
}
|
1
keyboards/eek/keymaps/default/readme.md
Normal file
1
keyboards/eek/keymaps/default/readme.md
Normal file
|
@ -0,0 +1 @@
|
|||
# The default keymap for eek!
|
92
keyboards/eek/keymaps/ledtest/keymap.c
Normal file
92
keyboards/eek/keymaps/ledtest/keymap.c
Normal file
|
@ -0,0 +1,92 @@
|
|||
/* Copyright 2020 klackygears
|
||||
*
|
||||
* 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/>.
|
||||
*/
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
enum layer_names {
|
||||
_QUERTY,
|
||||
_LOWER,
|
||||
_RAISE,
|
||||
_ADJUST
|
||||
};
|
||||
|
||||
enum custom_keycodes {
|
||||
RGBRST = SAFE_RANGE
|
||||
};
|
||||
|
||||
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
/* Qwerty
|
||||
*
|
||||
* ,----------------------------------. ,------------------------------------------------------------------------------.
|
||||
* | Q | W | E | R | T | | RGB reset|Hue increase|Saturation increase|Brightness increase|Speed increase|
|
||||
* |------+------+------+------+------| |----------+------------+-------------------+-------------------+--------------|
|
||||
* | A | S | D | F | G | | RGB Mode |Hue decrease|Saturation decrease|Brightness decrease|Speed decrease|
|
||||
* |------+------+------+------+------| |----------+------------+-------------------+-------------------+--------------|
|
||||
* | Z | X | C | V | B | |RGB Toggle| M | , | . | / |
|
||||
* `-------------+------+------+------| |----------+------------+-------------------+----------------------------------'
|
||||
* | Ctrl | LOWER| Space| | BckSpc | RAISE | Shift |
|
||||
* `--------------------' `-------------------------------------------'
|
||||
*
|
||||
*/
|
||||
[_QUERTY] = LAYOUT_split_3x5_3(
|
||||
KC_Q, KC_W, KC_E, KC_R, KC_T, RGBRST, RGB_HUI, RGB_SAI, RGB_VAI, RGB_SPI,
|
||||
KC_A, KC_S, KC_D, KC_F, KC_G, RGB_MOD, RGB_HUD, RGB_SAD, RGB_VAD, RGB_SPD,
|
||||
KC_Z, KC_X, KC_C, KC_V, KC_B, RGB_TOG, KC_M, KC_COMM, KC_DOT, KC_SLSH,
|
||||
KC_LCTL, MO(_LOWER), KC_SPC, KC_BSPC, MO(_RAISE), OSM(MOD_LSFT)
|
||||
),
|
||||
|
||||
[_LOWER] = LAYOUT_split_3x5_3(
|
||||
KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN,
|
||||
KC_ESC, _______, _______, _______, _______, _______, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR,
|
||||
KC_CAPS, KC_TILD, _______, _______, _______, _______, _______, _______, KC_PIPE, KC_DQT,
|
||||
_______, _______, _______, KC_ENT, _______, KC_DEL
|
||||
),
|
||||
|
||||
[_RAISE] = LAYOUT_split_3x5_3(
|
||||
KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0,
|
||||
KC_TAB, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, _______, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC,
|
||||
KC_LCTL, KC_GRV, KC_LGUI, KC_LALT, _______, _______, _______, _______, KC_BSLS, KC_QUOT,
|
||||
_______, _______, _______, _______, _______, _______
|
||||
),
|
||||
|
||||
[_ADJUST] = LAYOUT_split_3x5_3(
|
||||
RGB_VAI, RGB_SAI, RGB_HUI, RGB_MOD, RGB_TOG, _______, KC_F9, KC_F10, KC_F11, KC_F12,
|
||||
RGB_VAD, RGB_SAD, RGB_HUD, RGB_RMOD, _______, _______, KC_F5, KC_F6, KC_F7, KC_F8,
|
||||
_______, _______, _______, _______, _______, RESET, KC_F1, KC_F2, KC_F3, KC_F4,
|
||||
_______, _______, _______, _______, _______, _______
|
||||
),
|
||||
};
|
||||
|
||||
layer_state_t layer_state_set_user(layer_state_t state) {
|
||||
return update_tri_layer_state(state, _LOWER, _RAISE, _ADJUST);
|
||||
}
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
|
||||
switch (keycode) {
|
||||
case RGBRST:
|
||||
#ifdef RGBLIGHT_ENABLE
|
||||
if (record->event.pressed) {
|
||||
eeconfig_update_rgblight_default();
|
||||
rgblight_enable();
|
||||
}
|
||||
#endif
|
||||
break;
|
||||
}
|
||||
return true;
|
||||
}
|
2
keyboards/eek/keymaps/ledtest/rules.mk
Normal file
2
keyboards/eek/keymaps/ledtest/rules.mk
Normal file
|
@ -0,0 +1,2 @@
|
|||
#RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow
|
||||
RGB_MATRIX_ENABLE = yes # Enable for pretty RGB matrix effects
|
25
keyboards/eek/readme.md
Normal file
25
keyboards/eek/readme.md
Normal file
|
@ -0,0 +1,25 @@
|
|||
# eek!
|
||||
|
||||
![eek](https://i.imgur.com/34O3xKWl.jpg)
|
||||
|
||||
The eek! is a 36 key per key RGB keyboard with a 90 degree split layout suited for travel and typing close to the body. It uses a Pro Micro or an Elite C and can be soldered low profile using castilated pads. The PCB can be flipped so that the silk is on top and the USB plugin can face to the right or left. The keyboard is compatible with MX, Alps, and Choc style switches. It can use SMD or through hole diodes. The per key RGB LEDs used in the build are the SK6812 Mini E (these can also be flipped). The eek! can be used without a case if you choose for a very low profile keyboard.
|
||||
|
||||
When flashing the eek! with the bat side up follow the second example below and use: make eek/silk_up:default
|
||||
|
||||
![eek_bat](https://i.imgur.com/YrOqmft.jpeg)
|
||||
|
||||
* Keyboard Maintainer: [klackygears](https://github.com/klackygears)
|
||||
* Hardware Supported: The eek! PCBs, Pro Micro supported, Low Profile Elite-C supported
|
||||
* Hardware Availability: [Case Data & firmware](https://github.com/klackygears/eek_doc)
|
||||
|
||||
Make example for this keyboard (after setting up your build environment):
|
||||
|
||||
make eek:default
|
||||
make eek/silk_up:default
|
||||
|
||||
Flashing example for this keyboard:
|
||||
|
||||
make eek:default:flash
|
||||
make eek/silk_up:default:flash
|
||||
|
||||
See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs).
|
25
keyboards/eek/rules.mk
Normal file
25
keyboards/eek/rules.mk
Normal file
|
@ -0,0 +1,25 @@
|
|||
# MCU name
|
||||
MCU = atmega32u4
|
||||
|
||||
# Bootloader selection
|
||||
BOOTLOADER = qmk-dfu
|
||||
|
||||
# Build Options
|
||||
# change yes to no to disable
|
||||
#
|
||||
BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration
|
||||
MOUSEKEY_ENABLE = no # Mouse keys
|
||||
EXTRAKEY_ENABLE = yes # Audio control and System control
|
||||
CONSOLE_ENABLE = yes # Console for debug
|
||||
COMMAND_ENABLE = yes # Commands for debug and configuration
|
||||
# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
|
||||
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
|
||||
# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
|
||||
NKRO_ENABLE = no # USB Nkey Rollover
|
||||
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
|
||||
RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
|
||||
BLUETOOTH_ENABLE = no # Enable Bluetooth
|
||||
AUDIO_ENABLE = no # Audio output
|
||||
RGB_MATRIX_DRIVER = WS2812
|
||||
DEFAULT_FOLDER = eek/silk_down
|
||||
LAYOUTS = split_3x5_3
|
13
keyboards/eek/silk_down/readme.md
Normal file
13
keyboards/eek/silk_down/readme.md
Normal file
|
@ -0,0 +1,13 @@
|
|||
# eek!
|
||||
|
||||
This is the default layout for the eek! The silkscreen with the bat and the eek! text will face down. See the picture and the flashing example.
|
||||
|
||||
![eek](https://i.imgur.com/34O3xKW.jpg)
|
||||
|
||||
Make example for this keyboard (after setting up your build environment):
|
||||
|
||||
make eek:default
|
||||
|
||||
Flashing example for this keyboard:
|
||||
|
||||
make eek:default:flash
|
0
keyboards/eek/silk_down/rules.mk
Normal file
0
keyboards/eek/silk_down/rules.mk
Normal file
39
keyboards/eek/silk_down/silk_down.h
Normal file
39
keyboards/eek/silk_down/silk_down.h
Normal file
|
@ -0,0 +1,39 @@
|
|||
/* Copyright 2020 klackygears
|
||||
*
|
||||
* 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
|
||||
|
||||
#include "eek.h"
|
||||
|
||||
/* This a shortcut to help you visually see your layout.
|
||||
*
|
||||
* The first section contains all of the arguments representing the physical
|
||||
* layout of the board and position of the keys.
|
||||
*
|
||||
* The second converts the arguments into a two-dimensional array which
|
||||
* represents the switch matrix.
|
||||
*/
|
||||
#define LAYOUT_split_3x5_3( \
|
||||
K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, \
|
||||
K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, \
|
||||
K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, \
|
||||
K32, K33, K34, K35, K36, K37 \
|
||||
) \
|
||||
{ \
|
||||
{ K00, K01, K02, K03, K04, K05, K06, K07, K08, K09 }, \
|
||||
{ K10, K11, K12, K13, K14, K15, K16, K17, K18, K19 }, \
|
||||
{ K20, K21, K22, K23, K24, K25, K26, K27, K28, K29 }, \
|
||||
{ KC_NO, KC_NO, K32, K33, K34, K35, K36, K37, KC_NO, KC_NO } \
|
||||
}
|
14
keyboards/eek/silk_up/readme.md
Normal file
14
keyboards/eek/silk_up/readme.md
Normal file
|
@ -0,0 +1,14 @@
|
|||
# eek!
|
||||
|
||||
This is the alternate layout for the eek! The silkscreen with the bat and eek! text will face up. See the picture and the flashing example.
|
||||
|
||||
![eek_bat](https://i.imgur.com/YrOqmft.jpeg)
|
||||
|
||||
Make example for this keyboard (after setting up your build environment):
|
||||
|
||||
make eek/silk_up:default
|
||||
|
||||
Flashing example for this keyboard:
|
||||
|
||||
make eek/silk_up:default:flash
|
||||
|
0
keyboards/eek/silk_up/rules.mk
Normal file
0
keyboards/eek/silk_up/rules.mk
Normal file
39
keyboards/eek/silk_up/silk_up.h
Normal file
39
keyboards/eek/silk_up/silk_up.h
Normal file
|
@ -0,0 +1,39 @@
|
|||
/* Copyright 2020 klackygears
|
||||
*
|
||||
* 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
|
||||
|
||||
#include "eek.h"
|
||||
|
||||
/* This a shortcut to help you visually see your layout.
|
||||
*
|
||||
* The first section contains all of the arguments representing the physical
|
||||
* layout of the board and position of the keys.
|
||||
*
|
||||
* The second converts the arguments into a two-dimensional array which
|
||||
* represents the switch matrix.
|
||||
*/
|
||||
#define LAYOUT_split_3x5_3( \
|
||||
K09, K08, K07, K06, K05, K04, K03, K02, K01, K00, \
|
||||
K19, K18, K17, K16, K15, K14, K13, K12, K11, K10, \
|
||||
K29, K28, K27, K26, K25, K24, K23, K22, K21, K20, \
|
||||
K37, K36, K35, K34, K33, K32 \
|
||||
) \
|
||||
{ \
|
||||
{ K00, K01, K02, K03, K04, K05, K06, K07, K08, K09 }, \
|
||||
{ K10, K11, K12, K13, K14, K15, K16, K17, K18, K19 }, \
|
||||
{ K20, K21, K22, K23, K24, K25, K26, K27, K28, K29 }, \
|
||||
{ KC_NO, KC_NO, K32, K33, K34, K35, K36, K37, KC_NO, KC_NO } \
|
||||
}
|
Loading…
Reference in a new issue