summaryrefslogtreecommitdiff
path: root/keyboards/kingly_keys
diff options
context:
space:
mode:
authorYan-Fa Li <yanfali@gmail.com>2020-11-09 14:44:22 -0800
committerGitHub <noreply@github.com>2020-11-10 09:44:22 +1100
commitf38a3b7408e38f6467a2eb9160791f584b46d39e (patch)
tree98a81dc0215cfc10bf3d93ab85fb871275895bcc /keyboards/kingly_keys
parent16fe4b8b77c2eee7fb1598063d2903086bd03ca4 (diff)
downloadqmk_firmware-f38a3b7408e38f6467a2eb9160791f584b46d39e.tar.gz
qmk_firmware-f38a3b7408e38f6467a2eb9160791f584b46d39e.zip
[Keymap] little foot (#7305)
* Personal keymap - fix quoting in description fix issue with userspace disabling audio wip Update keyboards/kingly_keys/little_foot/keymaps/yanfali/rules.mk Co-authored-by: Ryan <fauxpark@gmail.com> * Update keyboards/kingly_keys/little_foot/config.h Co-authored-by: Nick Brassel <nick@tzarc.org> Co-authored-by: Yan-Fa Li <yanfa.li@fireeye.com> Co-authored-by: Ryan <fauxpark@gmail.com> Co-authored-by: Nick Brassel <nick@tzarc.org>
Diffstat (limited to 'keyboards/kingly_keys')
-rw-r--r--keyboards/kingly_keys/little_foot/config.h3
-rw-r--r--keyboards/kingly_keys/little_foot/keymaps/yanfali/config.h10
-rw-r--r--keyboards/kingly_keys/little_foot/keymaps/yanfali/keymap.c40
-rw-r--r--keyboards/kingly_keys/little_foot/keymaps/yanfali/rules.mk4
4 files changed, 55 insertions, 2 deletions
diff --git a/keyboards/kingly_keys/little_foot/config.h b/keyboards/kingly_keys/little_foot/config.h
index e0bd0daf99..a872579c97 100644
--- a/keyboards/kingly_keys/little_foot/config.h
+++ b/keyboards/kingly_keys/little_foot/config.h
@@ -11,7 +11,7 @@
* 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
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#pragma once
@@ -24,7 +24,6 @@
#define DEVICE_VER 0x0001
#define MANUFACTURER Kingly-Keys
#define PRODUCT The Little Foot
-#define DESCRIPTION A Mighty Small, 45-Percent, Ortholinear Keyboard.
/* key matrix size */
#define MATRIX_ROWS 5
diff --git a/keyboards/kingly_keys/little_foot/keymaps/yanfali/config.h b/keyboards/kingly_keys/little_foot/keymaps/yanfali/config.h
new file mode 100644
index 0000000000..72892851e0
--- /dev/null
+++ b/keyboards/kingly_keys/little_foot/keymaps/yanfali/config.h
@@ -0,0 +1,10 @@
+#pragma once
+
+#define TAPPING_TERM 150
+#define RETRO_TAPPING
+
+#ifdef AUDIO_ENABLE
+ #define STARTUP_SONG SONG(NOCTURNE_OP_9_NO_1)
+ #define AUDIO_CLICKY
+ #define AUDIO_CLICKY_FREQ_RANDOMNESS 0.8f
+#endif
diff --git a/keyboards/kingly_keys/little_foot/keymaps/yanfali/keymap.c b/keyboards/kingly_keys/little_foot/keymaps/yanfali/keymap.c
new file mode 100644
index 0000000000..2ce2babf69
--- /dev/null
+++ b/keyboards/kingly_keys/little_foot/keymaps/yanfali/keymap.c
@@ -0,0 +1,40 @@
+
+#include QMK_KEYBOARD_H
+
+// Layer names
+enum{
+ // - Base layer:
+ _BASE,
+ // - Symbols, numbers, and functions:
+ _FN,
+ // - Alternate Function layer:
+ _LN
+};
+
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+
+ [_BASE] = LAYOUT_split_space_base(
+ KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0,
+ KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P,
+ LCTL_T(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,
+ LSFT_T(KC_ESC), LGUI_T(KC_SPACE), LT(_LN, KC_BSPC), LT(_FN, KC_ENT)
+ ),
+
+ [_FN] = LAYOUT_split_space_base(
+ LT(_LN, KC_ESC), _______, _______, _______, _______, _______, _______, _______, KC_MINS, RESET,
+ KC_TAB, _______, _______, _______, _______, _______, _______, _______, LSFT(KC_MINS), KC_BSLS,
+ KC_LSFT, _______, _______, _______, _______, _______, _______, KC_LBRC, KC_RBRC, KC_QUOT,
+ AU_TOG, CK_TOGG , _______, _______, _______, _______, _______, _______, _______, _______,
+ _______, KC_LALT, RGB_MOD, _______
+ ),
+
+ [_LN] = LAYOUT_split_space_base(
+ _______, KC_F1, KC_F2, KC_F3, _______, _______, _______, KC_7, KC_8, KC_9,
+ _______, KC_F4, KC_F5, KC_F6, _______, _______, _______, KC_4, KC_5, KC_6,
+ _______, KC_F7, KC_F8, KC_F9, _______, _______, _______, KC_1, KC_2, KC_3,
+ _______, KC_F10, KC_F11, KC_F12, _______, _______, _______, _______, KC_0, _______,
+ _______, _______, _______, _______
+ )
+};
diff --git a/keyboards/kingly_keys/little_foot/keymaps/yanfali/rules.mk b/keyboards/kingly_keys/little_foot/keymaps/yanfali/rules.mk
new file mode 100644
index 0000000000..a61cff2750
--- /dev/null
+++ b/keyboards/kingly_keys/little_foot/keymaps/yanfali/rules.mk
@@ -0,0 +1,4 @@
+CTPC=yes
+CONSOLE_ENABLE = yes # Console for debug
+COMMAND_ENABLE = yes # Commands for debug and configuration
+AUDIO_ENABLE = yes