From b4184f2108e68ef51e438785cb832b06931e06a7 Mon Sep 17 00:00:00 2001 From: nendezkombet <82454371+nendezkombet@users.noreply.github.com> Date: Fri, 19 Aug 2022 14:59:11 +0700 Subject: [PATCH 01/29] Add files via upload --- keyboards/keebformom/config.h | 101 ++++++++++ keyboards/keebformom/info.json | 52 +++++ keyboards/keebformom/keebformom.c | 17 ++ keyboards/keebformom/keebformom.h | 40 ++++ keyboards/keebformom/keymaps/default/config.h | 29 +++ keyboards/keebformom/keymaps/default/keymap.c | 177 ++++++++++++++++++ .../keebformom/keymaps/default/readme.md | 47 +++++ keyboards/keebformom/keymaps/default/rules.mk | 2 + keyboards/keebformom/readme.md | 27 +++ keyboards/keebformom/rules.mk | 23 +++ 10 files changed, 515 insertions(+) create mode 100644 keyboards/keebformom/config.h create mode 100644 keyboards/keebformom/info.json create mode 100644 keyboards/keebformom/keebformom.c create mode 100644 keyboards/keebformom/keebformom.h create mode 100644 keyboards/keebformom/keymaps/default/config.h create mode 100644 keyboards/keebformom/keymaps/default/keymap.c create mode 100644 keyboards/keebformom/keymaps/default/readme.md create mode 100644 keyboards/keebformom/keymaps/default/rules.mk create mode 100644 keyboards/keebformom/readme.md create mode 100644 keyboards/keebformom/rules.mk diff --git a/keyboards/keebformom/config.h b/keyboards/keebformom/config.h new file mode 100644 index 000000000000..7611ef08c14b --- /dev/null +++ b/keyboards/keebformom/config.h @@ -0,0 +1,101 @@ +/* Copyright 2022 Sandipratama + +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 . +*/ + +#pragma once + +#include "config_common.h" + +/* USB Device descriptor parameter */ +#define VENDOR_ID 0x458F +#define PRODUCT_ID 0x14E2 +#define DEVICE_VER 0x0001 +#define MANUFACTURER nendezkombet/sandipratama +#define PRODUCT Keeb For Mom + +/* key matrix size */ +#define MATRIX_ROWS 4 +#define MATRIX_COLS 10 + +/* + * Keyboard Matrix Assignments + * + * Change this to how you wired your keyboard + * COLS: AVR pins used for columns, left to right + * ROWS: AVR pins used for rows, top to bottom + * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode) + * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) + * + */ +/* KFM PCB default pin-out */ +#define MATRIX_ROW_PINS { F5, F6, F7, B1 } +#define MATRIX_COL_PINS { B3, B2, D1, D0, D4, C6, D7, E6, B4, B5 } +#define UNUSED_PINS + +/* COL2ROW, ROW2COL */ +#define DIODE_DIRECTION COL2ROW + +#define RGB_DI_PIN F4 +#ifdef RGB_DI_PIN +#define RGBLED_NUM 8 +#define RGBLIGHT_HUE_STEP 8 +#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 */ +# define RGBLIGHT_EFFECT_BREATHING +# define RGBLIGHT_EFFECT_RAINBOW_MOOD +# define RGBLIGHT_EFFECT_RAINBOW_SWIRL +#endif + +/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ +#define DEBOUNCE 5 + +/* + * 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 action features */ +//#define NO_ACTION_LAYER +//#define NO_ACTION_TAPPING +//#define NO_ACTION_ONESHOT +#define TAPPING_TERM 200 + +/* disable these deprecated features by default */ +//#define NO_ACTION_MACRO +//#define NO_ACTION_FUNCTION + \ No newline at end of file diff --git a/keyboards/keebformom/info.json b/keyboards/keebformom/info.json new file mode 100644 index 000000000000..94fe509c3d10 --- /dev/null +++ b/keyboards/keebformom/info.json @@ -0,0 +1,52 @@ +{ + "keyboard_name": "Keeb For Mom", + "url": "", + "maintainer": "qmk", + "layouts": { + "LAYOUT_ortho_4x10": { + "layout": [ + {"x":0, "y":0}, + {"x":1, "y":0}, + {"x":2, "y":0}, + {"x":3, "y":0}, + {"x":4, "y":0}, + {"x":5, "y":0}, + {"x":6, "y":0}, + {"x":7, "y":0}, + {"x":8, "y":0}, + {"x":9, "y":0}, + {"x":0, "y":1}, + {"x":1, "y":1}, + {"x":2, "y":1}, + {"x":3, "y":1}, + {"x":4, "y":1}, + {"x":5, "y":1}, + {"x":6, "y":1}, + {"x":7, "y":1}, + {"x":8, "y":1}, + {"x":9, "y":1}, + {"x":0, "y":2}, + {"x":1, "y":2}, + {"x":2, "y":2}, + {"x":3, "y":2}, + {"x":4, "y":2}, + {"x":5, "y":2}, + {"x":6, "y":2}, + {"x":7, "y":2}, + {"x":8, "y":2}, + {"x":9, "y":2}, + {"x":0, "y":3}, + {"x":1, "y":3}, + {"x":2, "y":3}, + {"x":3, "y":3}, + {"x":4, "y":3}, + {"x":5, "y":3}, + {"x":6, "y":3}, + {"x":7, "y":3}, + {"x":8, "y":3}, + {"x":9, "y":3} + + ] + } + } +} diff --git a/keyboards/keebformom/keebformom.c b/keyboards/keebformom/keebformom.c new file mode 100644 index 000000000000..18de3af9ef54 --- /dev/null +++ b/keyboards/keebformom/keebformom.c @@ -0,0 +1,17 @@ +/* Copyright 2022 Sandipratama + +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 . +*/ + +#include "keebformom.h" \ No newline at end of file diff --git a/keyboards/keebformom/keebformom.h b/keyboards/keebformom/keebformom.h new file mode 100644 index 000000000000..88830e8aefe1 --- /dev/null +++ b/keyboards/keebformom/keebformom.h @@ -0,0 +1,40 @@ +/* Copyright 2022 Sandipratama + +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 . +*/ + +#pragma once + +#include "quantum.h" + +/* This is 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_ortho_4x10( \ + 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, \ + k30, k31, k32, k33, k34, k35, k36, k37, k38, k39 \ +) \ +{ \ + { 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, }, \ + { k30, k31, k32, k33, k34, k35, k36, k37, k38, k39 } \ +} diff --git a/keyboards/keebformom/keymaps/default/config.h b/keyboards/keebformom/keymaps/default/config.h new file mode 100644 index 000000000000..39b51b05baf2 --- /dev/null +++ b/keyboards/keebformom/keymaps/default/config.h @@ -0,0 +1,29 @@ +/* Copyright 2022 Sandipratama + +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 . +*/ + +#pragma once + +#include "config_common.h" + +#ifdef AUDIO_ENABLE +#define AUDIO_PIN B6 +#define NO_MUSIC_MODE +#define STARTUP_SONG SONG(MAJOR_SOUND) +#endif + +#define COMBO_COUNT 8 +#define MIDI_ADVANCED + \ No newline at end of file diff --git a/keyboards/keebformom/keymaps/default/keymap.c b/keyboards/keebformom/keymaps/default/keymap.c new file mode 100644 index 000000000000..4b3f550cb5eb --- /dev/null +++ b/keyboards/keebformom/keymaps/default/keymap.c @@ -0,0 +1,177 @@ +/* Copyright 2022 Sandipratama + * + * 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 . + */ + +#include QMK_KEYBOARD_H +#include "midi.h" +extern MidiDevice midi_device; + + +enum layers { + _FIRST = 0, + _SECOND, + _THIRD, + _FOURTH, + _MIDI +}; + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + +/* + * ,---------------------------------------------------------------------. + * | Q (ESC) W | E | R | T(MIDI)Y | U | I | O(DEL) P | + * |------+------+------+------+------+------+------+------+------+------| + * | A (TAB) S | D | F | G(TO 1)H | J | K | L(CAPS);: | + * |------+------+------+------+------+------+------+------+------+------| + * | Z | X | C | V | B(TO 2)N | M | ,< | .>(TO3)/? | + * |------+------+------+------+------+------+------+------+------+------| + * | CTRL | ALT | SHIFT| L2 |ENTER | SPACE| L1 | MUTE | PLAY | BSPC | + * `---------------------------------------------------------------------' + */ +[_FIRST] = LAYOUT_ortho_4x10( + 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, KC_LALT, KC_LSFT, MO(1), KC_ENT, KC_SPC, MO(2), KC_MUTE, KC_MPLY, KC_BSPC +), +/* + * ,---------------------------------------------------------------------. + * | ! | @ | { | } | ' | " | - | 7 | 8 | 9 | + * |------+------+------+------+------+-------------+------+------+------| + * | # | $ | ( | ) | ^ | _ | + | 4 | 5 | 6 | + * |------+------+------+------+------+------+------+------+------+------| + * | % | & | [ | ] | * | | | 1 | 2 | 3 | + * |------+------+------+------+------+------+------+------+------+------| + * | BASE | | \ | | | | | | = | 0 | BSPC | + * `---------------------------------------------------------------------' + */ + +[_SECOND] = LAYOUT_ortho_4x10( + KC_EXLM, KC_AT, KC_LCBR, KC_RCBR, KC_QUOT, KC_DQT, KC_PLUS, KC_7, KC_8, KC_9, + KC_HASH, KC_DLR, KC_LPRN, KC_RPRN, KC_CIRC, KC_UNDS, KC_MINS, KC_4, KC_5, KC_6, + KC_PERC, KC_AMPR, KC_LBRC, KC_RBRC, KC_ASTR, _______, _______, KC_1, KC_2, KC_3, + TO(0), _______, KC_BSLS, KC_PIPE, _______, _______, _______, KC_EQL, KC_0, KC_BSPC +), + +/* + * ,---------------------------------------------------------------------. + * | INS | HOME | PGUP | | CAPT |SELECT| | | UP | | + * |------+------+------+------+------+-------------+------+------+------| + * | DEL | END | PGDN | | SAVE | COPY | | LEFT | DOWN | RGHT | + * |------+------+------+------+------+------+------+------+------+------| + * | | | | | MYCMP| PASTE| | | | | + * |------+------+------+------+------+------+------+------+------+------| + * | BASE | | | | | | | VOLD | | VOLU | + * `---------------------------------------------------------------------' + */ +[_THIRD] = LAYOUT_ortho_4x10( + KC_INS, KC_HOME, KC_PGUP, KC_NO, SGUI(KC_S), LCTL(KC_A), KC_NO, KC_NO, KC_UP, KC_NO, + KC_DEL, KC_END, KC_PGDN, KC_NO, LCTL(KC_S), LCTL(KC_C), KC_NO, KC_LEFT, KC_DOWN, KC_RGHT, + KC_NO, KC_NO, KC_NO, KC_NO, LWIN(KC_E), LCTL(KC_V), KC_NO, KC_NO, KC_NO, KC_NO, + TO(0), _______, _______, _______, _______, _______, _______, KC_VOLD, _______, KC_VOLU +), +/* Adjust + * ,---------------------------------------------------------------------. + * |RGB M+| HUD | HUI | | F1 | F2 | F3 | F4 | F5 | F6 | + * |------+------+------+------+------+-------------+------+------+------| + * |RGB M-| SAD | SAI | | F7 | F8 | F9 | F10 | F11 | F12 | + * |------+------+------+------+------+------+------+------+------+------| + * |RGB TG| VAD | VAI | | | | | | | | + * |------+------+------+------+------+------+------+------+------+------| + * | BASE | | | | | | | | | | + * `---------------------------------------------------------------------' + */ +[_FOURTH] = LAYOUT_ortho_4x10( + RGB_MOD, RGB_HUD, RGB_HUI, KC_NO, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, + RGB_RMOD,RGB_SAD, RGB_SAI, KC_NO, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, + RGB_TOG, RGB_VAD, RGB_VAI, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, + TO(0), _______, _______, _______, _______, _______, _______, _______, _______, _______ +), +/* Midi + * ,---------------------------------------------------------------------. + * | | | Eb | Gb | Ab | Ab | Bb | Db | | TR+ | + * |------+------+------+------+------+-------------+------+------+------| + * | | G | A | B | C | D | E | F | | TR- | + * |------+------+------+------+------+------+------+------+------+------| + * | C | D | E | F | G | A | B | C | D | OT+ | + * |------+------+------+------+------+------+------+------+------+------| + * | BASE | | | | | | | | | OT- | + * `---------------------------------------------------------------------' + */ +[_MIDI] = LAYOUT_ortho_4x10( + KC_NO , KC_NO, MI_Eb , MI_Gb, MI_Ab , MI_Ab , MI_Bb, MI_Db, KC_NO, MI_TRNSU, + KC_NO , MI_G , MI_A , MI_B , MI_C, MI_D, MI_E, MI_F, KC_NO, MI_TRNSD, + MI_C , MI_D , MI_E , MI_F , MI_G, MI_A, MI_B, MI_C, MI_D, MI_OCTU, + TO(0), KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, MI_OCTD +) +}; + +#ifdef AUDIO_ENABLE + float my_song1[][2] = SONG(AUDIO_OFF_SOUND); + float my_song2[][2] = SONG(AUDIO_ON_SOUND); + float my_song3[][2] = SONG(GUITAR_SOUND); + float my_song4[][2] = SONG(VIOLIN_SOUND); +#endif + +layer_state_t layer_state_set_user(layer_state_t state) { + switch (get_highest_layer(state)) { + case 1: + #ifdef AUDIO_ENABLE + PLAY_SONG(my_song1); + + #endif + break; + case 2: + #ifdef AUDIO_ENABLE + PLAY_SONG(my_song2); + + #endif + break; + case 3: + #ifdef AUDIO_ENABLE + PLAY_SONG(my_song3); + + #endif + break; + case 4: + #ifdef AUDIO_ENABLE + PLAY_SONG(my_song4); + + #endif + break; + } + return state; +} + +// Combo key +const uint16_t PROGMEM test_combo1[] = {KC_Q, KC_W, COMBO_END}; +const uint16_t PROGMEM test_combo2[] = {KC_MPLY, KC_BSPC, COMBO_END}; +const uint16_t PROGMEM test_combo3[] = {KC_L, KC_SCLN, COMBO_END}; +const uint16_t PROGMEM test_combo4[] = {KC_A, KC_S, COMBO_END}; +const uint16_t PROGMEM test_combo5[] = {KC_T, KC_Y, COMBO_END}; +const uint16_t PROGMEM test_combo6[] = {KC_G, KC_H, COMBO_END}; +const uint16_t PROGMEM test_combo7[] = {KC_B, KC_N, COMBO_END}; +const uint16_t PROGMEM test_combo8[] = {KC_O, KC_P, COMBO_END}; +combo_t key_combos[COMBO_COUNT] = { + COMBO(test_combo1, KC_ESC), + COMBO(test_combo2, TO(3)), + COMBO(test_combo3, KC_CAPS), + COMBO(test_combo4, KC_TAB), + COMBO(test_combo5, TO(4)), + COMBO(test_combo6, TO(1)), + COMBO(test_combo7, TO(2)), + COMBO(test_combo8, KC_DEL), +}; +// qmk compile -kb keebformom -km ding \ No newline at end of file diff --git a/keyboards/keebformom/keymaps/default/readme.md b/keyboards/keebformom/keymaps/default/readme.md new file mode 100644 index 000000000000..a8a29dc59b94 --- /dev/null +++ b/keyboards/keebformom/keymaps/default/readme.md @@ -0,0 +1,47 @@ +# The default keymap for Keeb For Mom + + * ,---------------------------------------------------------------------. + * | Q (ESC) W | E | R | T(MIDI)Y | U | I | O(DEL) P | + * |------+------+------+------+------+------+------+------+------+------| + * | A (TAB) S | D | F | G(TO 1)H | J | K | L(CAPS);: | + * |------+------+------+------+------+------+------+------+------+------| + * | Z | X | C | V | B(TO 2)N | M | ,< | .>(TO3)/? | + * |------+------+------+------+------+------+------+------+------+------| + * | CTRL | ALT | SHIFT| L2 |ENTER | SPACE| L1 | MUTE | PLAY | BSPC | + * `---------------------------------------------------------------------' + * ,---------------------------------------------------------------------. + * | ! | @ | { | } | ' | " | - | 7 | 8 | 9 | + * |------+------+------+------+------+-------------+------+------+------| + * | # | $ | ( | ) | ^ | _ | + | 4 | 5 | 6 | + * |------+------+------+------+------+------+------+------+------+------| + * | % | & | [ | ] | * | | | 1 | 2 | 3 | + * |------+------+------+------+------+------+------+------+------+------| + * | BASE | | \ | | | | | | = | 0 | BSPC | + * `---------------------------------------------------------------------' + * ,---------------------------------------------------------------------. + * | INS | HOME | PGUP | | CAPT |SELECT| | | UP | | + * |------+------+------+------+------+-------------+------+------+------| + * | DEL | END | PGDN | | SAVE | COPY | | LEFT | DOWN | RGHT | + * |------+------+------+------+------+------+------+------+------+------| + * | | | | | MYCMP| PASTE| | | | | + * |------+------+------+------+------+------+------+------+------+------| + * | BASE | | | | | | | VOLD | | VOLU | + * `---------------------------------------------------------------------' + * ,---------------------------------------------------------------------. + * |RGB M+| HUD | HUI | | F1 | F2 | F3 | F4 | F5 | F6 | + * |------+------+------+------+------+-------------+------+------+------| + * |RGB M-| SAD | SAI | | F7 | F8 | F9 | F10 | F11 | F12 | + * |------+------+------+------+------+------+------+------+------+------| + * |RGB TG| VAD | VAI | | | | | | | | + * |------+------+------+------+------+------+------+------+------+------| + * | BASE | | | | | | | | | | + * `---------------------------------------------------------------------' + * ,---------------------------------------------------------------------. + * | | | Eb | Gb | Ab | Ab | Bb | Db | | TR+ | + * |------+------+------+------+------+-------------+------+------+------| + * | | G | A | B | C | D | E | F | | TR- | + * |------+------+------+------+------+------+------+------+------+------| + * | C | D | E | F | G | A | B | C | D | OT+ | + * |------+------+------+------+------+------+------+------+------+------| + * | BASE | | | | | | | | | OT- | + * `---------------------------------------------------------------------' diff --git a/keyboards/keebformom/keymaps/default/rules.mk b/keyboards/keebformom/keymaps/default/rules.mk new file mode 100644 index 000000000000..184b82508df0 --- /dev/null +++ b/keyboards/keebformom/keymaps/default/rules.mk @@ -0,0 +1,2 @@ +COMBO_ENABLE = yes +MIDI_ENABLE = yes \ No newline at end of file diff --git a/keyboards/keebformom/readme.md b/keyboards/keebformom/readme.md new file mode 100644 index 000000000000..6ba2d31f1620 --- /dev/null +++ b/keyboards/keebformom/readme.md @@ -0,0 +1,27 @@ +# Keeb For Mom + +![KeebForMom](https://user-images.githubusercontent.com/82454371/181726757-91a95865-3763-4eb9-a22a-bf9bcdbccc05.JPG) + +KFM is a low cost 4x5 modular mechanical keyboard that everyone can build. Modular it's mean two PCBs can be combined become one 40% keyboard, so you can use the PCB board as single 4x5 macro pad or 4x10 ortholinier mechanical keyboard. The PCB board has some feature like south facing switches orientation, RGB perkey and passive buzzer supported which can be used as layer indicator. + +* Keyboard Maintainer: [sandipratama](https://github.com/nendezkombet) +* Hardware Supported: KFM PCB +* Hardware Availability: https://github.com/nendezkombet/Keeb-For-Mom + +Make example for this keyboard (after setting up your build environment): + + make keebformom:default + +Flashing example for this keyboard: + + make keebformom: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). + +## Bootloader + +Enter the bootloader in 3 ways: + +* **Bootmagic reset**: Hold down the key at (0,0) in the matrix (usually the top left key or Escape) and plug in the keyboard +* **Physical reset button**: Briefly press the button on the back of the PCB - some may have pads you must short instead +* **Keycode in layout**: Press the key mapped to `RESET` if it is available \ No newline at end of file diff --git a/keyboards/keebformom/rules.mk b/keyboards/keebformom/rules.mk new file mode 100644 index 000000000000..5dc22adf7b4e --- /dev/null +++ b/keyboards/keebformom/rules.mk @@ -0,0 +1,23 @@ +# MCU name +MCU = atmega32u4 + +# Bootloader selection +BOOTLOADER = caterina + +# Build Options +# change yes to no to disable +# +BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite +MOUSEKEY_ENABLE = no # Mouse keys +EXTRAKEY_ENABLE = yes # Audio control and System control +CONSOLE_ENABLE = no # Console for debug +COMMAND_ENABLE = no # Commands for debug and configuration +NKRO_ENABLE = no # Enable N-Key Rollover +BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality +RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow +AUDIO_ENABLE = yes # Audio output +LTO_ENABLE = yes +COMBO_ENABLE = yes +NO_USB_STARTUP_CHECK = yes +ENCODER_ENABLE = no +LAYOUTS = ortho_4x10 From ecebf7c2054853928d50d284e729d18bc3e9f85c Mon Sep 17 00:00:00 2001 From: nendezkombet <82454371+nendezkombet@users.noreply.github.com> Date: Fri, 19 Aug 2022 15:04:56 +0700 Subject: [PATCH 02/29] Update readme.md --- .../keebformom/keymaps/default/readme.md | 46 ------------------- 1 file changed, 46 deletions(-) diff --git a/keyboards/keebformom/keymaps/default/readme.md b/keyboards/keebformom/keymaps/default/readme.md index a8a29dc59b94..93a6ead3ea15 100644 --- a/keyboards/keebformom/keymaps/default/readme.md +++ b/keyboards/keebformom/keymaps/default/readme.md @@ -1,47 +1 @@ # The default keymap for Keeb For Mom - - * ,---------------------------------------------------------------------. - * | Q (ESC) W | E | R | T(MIDI)Y | U | I | O(DEL) P | - * |------+------+------+------+------+------+------+------+------+------| - * | A (TAB) S | D | F | G(TO 1)H | J | K | L(CAPS);: | - * |------+------+------+------+------+------+------+------+------+------| - * | Z | X | C | V | B(TO 2)N | M | ,< | .>(TO3)/? | - * |------+------+------+------+------+------+------+------+------+------| - * | CTRL | ALT | SHIFT| L2 |ENTER | SPACE| L1 | MUTE | PLAY | BSPC | - * `---------------------------------------------------------------------' - * ,---------------------------------------------------------------------. - * | ! | @ | { | } | ' | " | - | 7 | 8 | 9 | - * |------+------+------+------+------+-------------+------+------+------| - * | # | $ | ( | ) | ^ | _ | + | 4 | 5 | 6 | - * |------+------+------+------+------+------+------+------+------+------| - * | % | & | [ | ] | * | | | 1 | 2 | 3 | - * |------+------+------+------+------+------+------+------+------+------| - * | BASE | | \ | | | | | | = | 0 | BSPC | - * `---------------------------------------------------------------------' - * ,---------------------------------------------------------------------. - * | INS | HOME | PGUP | | CAPT |SELECT| | | UP | | - * |------+------+------+------+------+-------------+------+------+------| - * | DEL | END | PGDN | | SAVE | COPY | | LEFT | DOWN | RGHT | - * |------+------+------+------+------+------+------+------+------+------| - * | | | | | MYCMP| PASTE| | | | | - * |------+------+------+------+------+------+------+------+------+------| - * | BASE | | | | | | | VOLD | | VOLU | - * `---------------------------------------------------------------------' - * ,---------------------------------------------------------------------. - * |RGB M+| HUD | HUI | | F1 | F2 | F3 | F4 | F5 | F6 | - * |------+------+------+------+------+-------------+------+------+------| - * |RGB M-| SAD | SAI | | F7 | F8 | F9 | F10 | F11 | F12 | - * |------+------+------+------+------+------+------+------+------+------| - * |RGB TG| VAD | VAI | | | | | | | | - * |------+------+------+------+------+------+------+------+------+------| - * | BASE | | | | | | | | | | - * `---------------------------------------------------------------------' - * ,---------------------------------------------------------------------. - * | | | Eb | Gb | Ab | Ab | Bb | Db | | TR+ | - * |------+------+------+------+------+-------------+------+------+------| - * | | G | A | B | C | D | E | F | | TR- | - * |------+------+------+------+------+------+------+------+------+------| - * | C | D | E | F | G | A | B | C | D | OT+ | - * |------+------+------+------+------+------+------+------+------+------| - * | BASE | | | | | | | | | OT- | - * `---------------------------------------------------------------------' From f75fa6714c261f5f0766a1df8ff4ae27f571effc Mon Sep 17 00:00:00 2001 From: nendezkombet <82454371+nendezkombet@users.noreply.github.com> Date: Fri, 19 Aug 2022 15:05:17 +0700 Subject: [PATCH 03/29] Update keymap.c --- keyboards/keebformom/keymaps/default/keymap.c | 1 - 1 file changed, 1 deletion(-) diff --git a/keyboards/keebformom/keymaps/default/keymap.c b/keyboards/keebformom/keymaps/default/keymap.c index 4b3f550cb5eb..ed16fdc2a991 100644 --- a/keyboards/keebformom/keymaps/default/keymap.c +++ b/keyboards/keebformom/keymaps/default/keymap.c @@ -174,4 +174,3 @@ combo_t key_combos[COMBO_COUNT] = { COMBO(test_combo7, TO(2)), COMBO(test_combo8, KC_DEL), }; -// qmk compile -kb keebformom -km ding \ No newline at end of file From 0b1f68d842478e4687e5c1acf909d5623909f03a Mon Sep 17 00:00:00 2001 From: nendezkombet <82454371+nendezkombet@users.noreply.github.com> Date: Sat, 20 Aug 2022 15:55:43 +0700 Subject: [PATCH 04/29] Update keyboards/keebformom/config.h Co-authored-by: Drashna Jaelre --- keyboards/keebformom/config.h | 6 ------ 1 file changed, 6 deletions(-) diff --git a/keyboards/keebformom/config.h b/keyboards/keebformom/config.h index 7611ef08c14b..f7f603bacc93 100644 --- a/keyboards/keebformom/config.h +++ b/keyboards/keebformom/config.h @@ -18,12 +18,6 @@ along with this program. If not, see . #include "config_common.h" -/* USB Device descriptor parameter */ -#define VENDOR_ID 0x458F -#define PRODUCT_ID 0x14E2 -#define DEVICE_VER 0x0001 -#define MANUFACTURER nendezkombet/sandipratama -#define PRODUCT Keeb For Mom /* key matrix size */ #define MATRIX_ROWS 4 From 2a64a2cf0187c4dd27b883467bcc81fe77eaa42b Mon Sep 17 00:00:00 2001 From: nendezkombet <82454371+nendezkombet@users.noreply.github.com> Date: Sat, 20 Aug 2022 15:55:56 +0700 Subject: [PATCH 05/29] Update keyboards/keebformom/config.h Co-authored-by: Drashna Jaelre --- keyboards/keebformom/config.h | 1 - 1 file changed, 1 deletion(-) diff --git a/keyboards/keebformom/config.h b/keyboards/keebformom/config.h index f7f603bacc93..338214b74038 100644 --- a/keyboards/keebformom/config.h +++ b/keyboards/keebformom/config.h @@ -36,7 +36,6 @@ along with this program. If not, see . /* KFM PCB default pin-out */ #define MATRIX_ROW_PINS { F5, F6, F7, B1 } #define MATRIX_COL_PINS { B3, B2, D1, D0, D4, C6, D7, E6, B4, B5 } -#define UNUSED_PINS /* COL2ROW, ROW2COL */ #define DIODE_DIRECTION COL2ROW From d60042d3a392c603b547aaba14e3ed63d8fcb778 Mon Sep 17 00:00:00 2001 From: nendezkombet <82454371+nendezkombet@users.noreply.github.com> Date: Sat, 20 Aug 2022 15:56:02 +0700 Subject: [PATCH 06/29] Update keyboards/keebformom/info.json Co-authored-by: Drashna Jaelre --- keyboards/keebformom/info.json | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/keyboards/keebformom/info.json b/keyboards/keebformom/info.json index 94fe509c3d10..6f40e577f089 100644 --- a/keyboards/keebformom/info.json +++ b/keyboards/keebformom/info.json @@ -2,6 +2,12 @@ "keyboard_name": "Keeb For Mom", "url": "", "maintainer": "qmk", + "manufacturer": "nendezkombet/sandipratama", + "usb": { + "vid": "0x458F", + "pid": "0x14E2", + "device_version": "1.0.0" + }, "layouts": { "LAYOUT_ortho_4x10": { "layout": [ From 6f49768049d54fd3f4c0bb7627281e748c780f38 Mon Sep 17 00:00:00 2001 From: nendezkombet <82454371+nendezkombet@users.noreply.github.com> Date: Sat, 20 Aug 2022 15:56:09 +0700 Subject: [PATCH 07/29] Update keyboards/keebformom/readme.md Co-authored-by: Drashna Jaelre --- keyboards/keebformom/readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keyboards/keebformom/readme.md b/keyboards/keebformom/readme.md index 6ba2d31f1620..df806694c387 100644 --- a/keyboards/keebformom/readme.md +++ b/keyboards/keebformom/readme.md @@ -24,4 +24,4 @@ Enter the bootloader in 3 ways: * **Bootmagic reset**: Hold down the key at (0,0) in the matrix (usually the top left key or Escape) and plug in the keyboard * **Physical reset button**: Briefly press the button on the back of the PCB - some may have pads you must short instead -* **Keycode in layout**: Press the key mapped to `RESET` if it is available \ No newline at end of file +* **Keycode in layout**: Press the key mapped to `QK_BOOT` if it is available \ No newline at end of file From e291dbda8d8b53f4e6af1834745edaf298728be1 Mon Sep 17 00:00:00 2001 From: nendezkombet <82454371+nendezkombet@users.noreply.github.com> Date: Sat, 20 Aug 2022 15:56:23 +0700 Subject: [PATCH 08/29] Update keyboards/keebformom/rules.mk Co-authored-by: Drashna Jaelre --- keyboards/keebformom/rules.mk | 1 - 1 file changed, 1 deletion(-) diff --git a/keyboards/keebformom/rules.mk b/keyboards/keebformom/rules.mk index 5dc22adf7b4e..5ab80c439a6e 100644 --- a/keyboards/keebformom/rules.mk +++ b/keyboards/keebformom/rules.mk @@ -19,5 +19,4 @@ AUDIO_ENABLE = yes # Audio output LTO_ENABLE = yes COMBO_ENABLE = yes NO_USB_STARTUP_CHECK = yes -ENCODER_ENABLE = no LAYOUTS = ortho_4x10 From 2f66e9aa76defbe5d8e4361a5df9bb05c8ebef15 Mon Sep 17 00:00:00 2001 From: nendezkombet <82454371+nendezkombet@users.noreply.github.com> Date: Tue, 23 Aug 2022 17:46:34 +0700 Subject: [PATCH 09/29] Update keyboards/keebformom/config.h Co-authored-by: Drashna Jaelre --- keyboards/keebformom/config.h | 1 - 1 file changed, 1 deletion(-) diff --git a/keyboards/keebformom/config.h b/keyboards/keebformom/config.h index 338214b74038..27ec4b8f8bdd 100644 --- a/keyboards/keebformom/config.h +++ b/keyboards/keebformom/config.h @@ -86,7 +86,6 @@ along with this program. If not, see . //#define NO_ACTION_LAYER //#define NO_ACTION_TAPPING //#define NO_ACTION_ONESHOT -#define TAPPING_TERM 200 /* disable these deprecated features by default */ //#define NO_ACTION_MACRO From 9173fcece9339db2c68879e904b7460fb8b184d7 Mon Sep 17 00:00:00 2001 From: nendezkombet <82454371+nendezkombet@users.noreply.github.com> Date: Tue, 23 Aug 2022 17:47:28 +0700 Subject: [PATCH 10/29] Update keyboards/keebformom/keymaps/default/config.h Co-authored-by: Drashna Jaelre --- keyboards/keebformom/keymaps/default/config.h | 1 - 1 file changed, 1 deletion(-) diff --git a/keyboards/keebformom/keymaps/default/config.h b/keyboards/keebformom/keymaps/default/config.h index 39b51b05baf2..573e90247f37 100644 --- a/keyboards/keebformom/keymaps/default/config.h +++ b/keyboards/keebformom/keymaps/default/config.h @@ -16,7 +16,6 @@ along with this program. If not, see . #pragma once -#include "config_common.h" #ifdef AUDIO_ENABLE #define AUDIO_PIN B6 From 7a9993744a679d9adaf0d9144f5dbb51d57bd2c7 Mon Sep 17 00:00:00 2001 From: nendezkombet <82454371+nendezkombet@users.noreply.github.com> Date: Tue, 23 Aug 2022 17:50:22 +0700 Subject: [PATCH 11/29] fix audio pin --- keyboards/keebformom/keymaps/default/config.h | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/keyboards/keebformom/keymaps/default/config.h b/keyboards/keebformom/keymaps/default/config.h index 573e90247f37..257857eb4ccc 100644 --- a/keyboards/keebformom/keymaps/default/config.h +++ b/keyboards/keebformom/keymaps/default/config.h @@ -16,13 +16,6 @@ along with this program. If not, see . #pragma once - -#ifdef AUDIO_ENABLE -#define AUDIO_PIN B6 -#define NO_MUSIC_MODE -#define STARTUP_SONG SONG(MAJOR_SOUND) -#endif - #define COMBO_COUNT 8 #define MIDI_ADVANCED - \ No newline at end of file + From 9e19d67e1940999532eb2b03f6555fbedba7554b Mon Sep 17 00:00:00 2001 From: nendezkombet <82454371+nendezkombet@users.noreply.github.com> Date: Tue, 23 Aug 2022 17:51:30 +0700 Subject: [PATCH 12/29] define audio pin --- keyboards/keebformom/config.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/keyboards/keebformom/config.h b/keyboards/keebformom/config.h index 27ec4b8f8bdd..b3f5d98ee2d5 100644 --- a/keyboards/keebformom/config.h +++ b/keyboards/keebformom/config.h @@ -90,4 +90,10 @@ along with this program. If not, see . /* disable these deprecated features by default */ //#define NO_ACTION_MACRO //#define NO_ACTION_FUNCTION - \ No newline at end of file + +#ifdef AUDIO_ENABLE +#define AUDIO_PIN B6 +#define NO_MUSIC_MODE +#define STARTUP_SONG SONG(MAJOR_SOUND) +#endif + From c5ea042b2577e27ab8a7082d174edd282ecefbae Mon Sep 17 00:00:00 2001 From: nendezkombet <82454371+nendezkombet@users.noreply.github.com> Date: Wed, 24 Aug 2022 22:03:24 +0700 Subject: [PATCH 13/29] Update rules.mk --- keyboards/keebformom/rules.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keyboards/keebformom/rules.mk b/keyboards/keebformom/rules.mk index 5ab80c439a6e..e82cd828bebc 100644 --- a/keyboards/keebformom/rules.mk +++ b/keyboards/keebformom/rules.mk @@ -7,7 +7,7 @@ BOOTLOADER = caterina # Build Options # change yes to no to disable # -BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite +BOOTMAGIC_ENABLE = no # Enable Bootmagic Lite MOUSEKEY_ENABLE = no # Mouse keys EXTRAKEY_ENABLE = yes # Audio control and System control CONSOLE_ENABLE = no # Console for debug From 6c76a4212226b474d8d6e1340304765c5b556d2b Mon Sep 17 00:00:00 2001 From: nendezkombet <82454371+nendezkombet@users.noreply.github.com> Date: Thu, 13 Oct 2022 20:05:00 +0700 Subject: [PATCH 14/29] Update config.h --- keyboards/keebformom/config.h | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/keyboards/keebformom/config.h b/keyboards/keebformom/config.h index b3f5d98ee2d5..d315fe2778e0 100644 --- a/keyboards/keebformom/config.h +++ b/keyboards/keebformom/config.h @@ -42,11 +42,11 @@ along with this program. If not, see . #define RGB_DI_PIN F4 #ifdef RGB_DI_PIN -#define RGBLED_NUM 8 +#define RGBLED_NUM 40 #define RGBLIGHT_HUE_STEP 8 #define RGBLIGHT_SAT_STEP 8 #define RGBLIGHT_VAL_STEP 8 -#define RGBLIGHT_LIMIT_VAL 200 /* The maximum brightness level */ +#define RGBLIGHT_LIMIT_VAL 150 /* The maximum brightness level */ #define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */ # define RGBLIGHT_EFFECT_BREATHING # define RGBLIGHT_EFFECT_RAINBOW_MOOD @@ -90,10 +90,4 @@ along with this program. If not, see . /* disable these deprecated features by default */ //#define NO_ACTION_MACRO //#define NO_ACTION_FUNCTION - -#ifdef AUDIO_ENABLE -#define AUDIO_PIN B6 -#define NO_MUSIC_MODE -#define STARTUP_SONG SONG(MAJOR_SOUND) -#endif From 7093bbd049d96c8c45c9c0e375b35f4d63bba415 Mon Sep 17 00:00:00 2001 From: nendezkombet <82454371+nendezkombet@users.noreply.github.com> Date: Thu, 13 Oct 2022 20:06:20 +0700 Subject: [PATCH 15/29] Update config.h --- keyboards/keebformom/keymaps/default/config.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/keyboards/keebformom/keymaps/default/config.h b/keyboards/keebformom/keymaps/default/config.h index 257857eb4ccc..d947ed2f6c23 100644 --- a/keyboards/keebformom/keymaps/default/config.h +++ b/keyboards/keebformom/keymaps/default/config.h @@ -17,5 +17,3 @@ along with this program. If not, see . #pragma once #define COMBO_COUNT 8 -#define MIDI_ADVANCED - From 10ba6d26aa628fbd596af0d1e1ab3becbf9c8254 Mon Sep 17 00:00:00 2001 From: nendezkombet <82454371+nendezkombet@users.noreply.github.com> Date: Thu, 13 Oct 2022 20:11:28 +0700 Subject: [PATCH 16/29] Update keymap.c --- keyboards/keebformom/keymaps/default/keymap.c | 83 +++---------------- 1 file changed, 12 insertions(+), 71 deletions(-) diff --git a/keyboards/keebformom/keymaps/default/keymap.c b/keyboards/keebformom/keymaps/default/keymap.c index ed16fdc2a991..1c8180edccc2 100644 --- a/keyboards/keebformom/keymaps/default/keymap.c +++ b/keyboards/keebformom/keymaps/default/keymap.c @@ -15,23 +15,20 @@ */ #include QMK_KEYBOARD_H -#include "midi.h" -extern MidiDevice midi_device; enum layers { _FIRST = 0, _SECOND, _THIRD, - _FOURTH, - _MIDI + _FOURTH }; const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { -/* +/* FIRST * ,---------------------------------------------------------------------. - * | Q (ESC) W | E | R | T(MIDI)Y | U | I | O(DEL) P | + * | Q (ESC) W | E | R | T | Y | U | I | O(DEL) P | * |------+------+------+------+------+------+------+------+------+------| * | A (TAB) S | D | F | G(TO 1)H | J | K | L(CAPS);: | * |------+------+------+------+------+------+------+------+------+------| @@ -46,7 +43,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_LCTL, KC_LALT, KC_LSFT, MO(1), KC_ENT, KC_SPC, MO(2), KC_MUTE, KC_MPLY, KC_BSPC ), -/* +/* SECOND * ,---------------------------------------------------------------------. * | ! | @ | { | } | ' | " | - | 7 | 8 | 9 | * |------+------+------+------+------+-------------+------+------+------| @@ -65,7 +62,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { TO(0), _______, KC_BSLS, KC_PIPE, _______, _______, _______, KC_EQL, KC_0, KC_BSPC ), -/* +/* THIRD * ,---------------------------------------------------------------------. * | INS | HOME | PGUP | | CAPT |SELECT| | | UP | | * |------+------+------+------+------+-------------+------+------+------| @@ -82,7 +79,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { KC_NO, KC_NO, KC_NO, KC_NO, LWIN(KC_E), LCTL(KC_V), KC_NO, KC_NO, KC_NO, KC_NO, TO(0), _______, _______, _______, _______, _______, _______, KC_VOLD, _______, KC_VOLU ), -/* Adjust +/* FOURTH * ,---------------------------------------------------------------------. * |RGB M+| HUD | HUI | | F1 | F2 | F3 | F4 | F5 | F6 | * |------+------+------+------+------+-------------+------+------+------| @@ -98,79 +95,23 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { RGB_RMOD,RGB_SAD, RGB_SAI, KC_NO, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, RGB_TOG, RGB_VAD, RGB_VAI, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, TO(0), _______, _______, _______, _______, _______, _______, _______, _______, _______ -), -/* Midi - * ,---------------------------------------------------------------------. - * | | | Eb | Gb | Ab | Ab | Bb | Db | | TR+ | - * |------+------+------+------+------+-------------+------+------+------| - * | | G | A | B | C | D | E | F | | TR- | - * |------+------+------+------+------+------+------+------+------+------| - * | C | D | E | F | G | A | B | C | D | OT+ | - * |------+------+------+------+------+------+------+------+------+------| - * | BASE | | | | | | | | | OT- | - * `---------------------------------------------------------------------' - */ -[_MIDI] = LAYOUT_ortho_4x10( - KC_NO , KC_NO, MI_Eb , MI_Gb, MI_Ab , MI_Ab , MI_Bb, MI_Db, KC_NO, MI_TRNSU, - KC_NO , MI_G , MI_A , MI_B , MI_C, MI_D, MI_E, MI_F, KC_NO, MI_TRNSD, - MI_C , MI_D , MI_E , MI_F , MI_G, MI_A, MI_B, MI_C, MI_D, MI_OCTU, - TO(0), KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, MI_OCTD ) }; -#ifdef AUDIO_ENABLE - float my_song1[][2] = SONG(AUDIO_OFF_SOUND); - float my_song2[][2] = SONG(AUDIO_ON_SOUND); - float my_song3[][2] = SONG(GUITAR_SOUND); - float my_song4[][2] = SONG(VIOLIN_SOUND); -#endif - -layer_state_t layer_state_set_user(layer_state_t state) { - switch (get_highest_layer(state)) { - case 1: - #ifdef AUDIO_ENABLE - PLAY_SONG(my_song1); - - #endif - break; - case 2: - #ifdef AUDIO_ENABLE - PLAY_SONG(my_song2); - - #endif - break; - case 3: - #ifdef AUDIO_ENABLE - PLAY_SONG(my_song3); - - #endif - break; - case 4: - #ifdef AUDIO_ENABLE - PLAY_SONG(my_song4); - - #endif - break; - } - return state; -} - // Combo key const uint16_t PROGMEM test_combo1[] = {KC_Q, KC_W, COMBO_END}; const uint16_t PROGMEM test_combo2[] = {KC_MPLY, KC_BSPC, COMBO_END}; const uint16_t PROGMEM test_combo3[] = {KC_L, KC_SCLN, COMBO_END}; const uint16_t PROGMEM test_combo4[] = {KC_A, KC_S, COMBO_END}; -const uint16_t PROGMEM test_combo5[] = {KC_T, KC_Y, COMBO_END}; -const uint16_t PROGMEM test_combo6[] = {KC_G, KC_H, COMBO_END}; -const uint16_t PROGMEM test_combo7[] = {KC_B, KC_N, COMBO_END}; -const uint16_t PROGMEM test_combo8[] = {KC_O, KC_P, COMBO_END}; +const uint16_t PROGMEM test_combo5[] = {KC_G, KC_H, COMBO_END}; +const uint16_t PROGMEM test_combo6[] = {KC_B, KC_N, COMBO_END}; +const uint16_t PROGMEM test_combo7[] = {KC_O, KC_P, COMBO_END}; combo_t key_combos[COMBO_COUNT] = { COMBO(test_combo1, KC_ESC), COMBO(test_combo2, TO(3)), COMBO(test_combo3, KC_CAPS), COMBO(test_combo4, KC_TAB), - COMBO(test_combo5, TO(4)), - COMBO(test_combo6, TO(1)), - COMBO(test_combo7, TO(2)), - COMBO(test_combo8, KC_DEL), + COMBO(test_combo5, TO(1)), + COMBO(test_combo6, TO(2)), + COMBO(test_combo7, KC_DEL), }; From 6bfd730c464a65f2a0b1e982b7eeb35eb2514272 Mon Sep 17 00:00:00 2001 From: nendezkombet <82454371+nendezkombet@users.noreply.github.com> Date: Thu, 13 Oct 2022 20:12:17 +0700 Subject: [PATCH 17/29] Update rules.mk --- keyboards/keebformom/keymaps/default/rules.mk | 1 - 1 file changed, 1 deletion(-) diff --git a/keyboards/keebformom/keymaps/default/rules.mk b/keyboards/keebformom/keymaps/default/rules.mk index 184b82508df0..ab1e438182a3 100644 --- a/keyboards/keebformom/keymaps/default/rules.mk +++ b/keyboards/keebformom/keymaps/default/rules.mk @@ -1,2 +1 @@ COMBO_ENABLE = yes -MIDI_ENABLE = yes \ No newline at end of file From fa864c40eb0322a5e95f06454be8b76488b6d506 Mon Sep 17 00:00:00 2001 From: nendezkombet <82454371+nendezkombet@users.noreply.github.com> Date: Thu, 13 Oct 2022 20:12:54 +0700 Subject: [PATCH 18/29] Update rules.mk --- keyboards/keebformom/rules.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/keyboards/keebformom/rules.mk b/keyboards/keebformom/rules.mk index e82cd828bebc..3e02ca58a7ee 100644 --- a/keyboards/keebformom/rules.mk +++ b/keyboards/keebformom/rules.mk @@ -14,8 +14,8 @@ CONSOLE_ENABLE = no # Console for debug COMMAND_ENABLE = no # Commands for debug and configuration NKRO_ENABLE = no # Enable N-Key Rollover BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality -RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow -AUDIO_ENABLE = yes # Audio output +RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow +AUDIO_ENABLE = no # Audio output LTO_ENABLE = yes COMBO_ENABLE = yes NO_USB_STARTUP_CHECK = yes From 81281861ef717e347ffda0d2a64b06f0f2354fbb Mon Sep 17 00:00:00 2001 From: nendezkombet <82454371+nendezkombet@users.noreply.github.com> Date: Thu, 13 Oct 2022 20:13:51 +0700 Subject: [PATCH 19/29] Update config.h --- keyboards/keebformom/keymaps/default/config.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keyboards/keebformom/keymaps/default/config.h b/keyboards/keebformom/keymaps/default/config.h index d947ed2f6c23..2c89e9373912 100644 --- a/keyboards/keebformom/keymaps/default/config.h +++ b/keyboards/keebformom/keymaps/default/config.h @@ -16,4 +16,4 @@ along with this program. If not, see . #pragma once -#define COMBO_COUNT 8 +#define COMBO_COUNT 7 From 1b43f0661f199fbc4591e97cba60142b33db4128 Mon Sep 17 00:00:00 2001 From: nendezkombet <82454371+nendezkombet@users.noreply.github.com> Date: Fri, 28 Oct 2022 08:26:49 +0700 Subject: [PATCH 20/29] move image host --- keyboards/keebformom/readme.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/keyboards/keebformom/readme.md b/keyboards/keebformom/readme.md index df806694c387..e2071f85976b 100644 --- a/keyboards/keebformom/readme.md +++ b/keyboards/keebformom/readme.md @@ -1,6 +1,6 @@ # Keeb For Mom -![KeebForMom](https://user-images.githubusercontent.com/82454371/181726757-91a95865-3763-4eb9-a22a-bf9bcdbccc05.JPG) +![KeebForMom](https://imagizer.imageshack.com/img923/9191/of1evn.jpg) KFM is a low cost 4x5 modular mechanical keyboard that everyone can build. Modular it's mean two PCBs can be combined become one 40% keyboard, so you can use the PCB board as single 4x5 macro pad or 4x10 ortholinier mechanical keyboard. The PCB board has some feature like south facing switches orientation, RGB perkey and passive buzzer supported which can be used as layer indicator. @@ -24,4 +24,4 @@ Enter the bootloader in 3 ways: * **Bootmagic reset**: Hold down the key at (0,0) in the matrix (usually the top left key or Escape) and plug in the keyboard * **Physical reset button**: Briefly press the button on the back of the PCB - some may have pads you must short instead -* **Keycode in layout**: Press the key mapped to `QK_BOOT` if it is available \ No newline at end of file +* **Keycode in layout**: Press the key mapped to `QK_BOOT` if it is available From d273b5ad32b642d41c2ab8e8eba3e764d0cdd4f3 Mon Sep 17 00:00:00 2001 From: nendezkombet <82454371+nendezkombet@users.noreply.github.com> Date: Fri, 16 Dec 2022 18:18:20 +0700 Subject: [PATCH 21/29] change image host --- keyboards/keebformom/readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keyboards/keebformom/readme.md b/keyboards/keebformom/readme.md index e2071f85976b..7966f531cbcb 100644 --- a/keyboards/keebformom/readme.md +++ b/keyboards/keebformom/readme.md @@ -1,6 +1,6 @@ # Keeb For Mom -![KeebForMom](https://imagizer.imageshack.com/img923/9191/of1evn.jpg) +![KeebForMom](https://i.imgur.com/MvBatHS.jpg) KFM is a low cost 4x5 modular mechanical keyboard that everyone can build. Modular it's mean two PCBs can be combined become one 40% keyboard, so you can use the PCB board as single 4x5 macro pad or 4x10 ortholinier mechanical keyboard. The PCB board has some feature like south facing switches orientation, RGB perkey and passive buzzer supported which can be used as layer indicator. From 57cbbbe4f52c6e7786045c73bf35136e44ee3ec1 Mon Sep 17 00:00:00 2001 From: nendezkombet <82454371+nendezkombet@users.noreply.github.com> Date: Fri, 16 Dec 2022 18:20:17 +0700 Subject: [PATCH 22/29] Update keyboards/keebformom/rules.mk Co-authored-by: Ryan --- keyboards/keebformom/rules.mk | 1 - 1 file changed, 1 deletion(-) diff --git a/keyboards/keebformom/rules.mk b/keyboards/keebformom/rules.mk index 3e02ca58a7ee..efa62e0ed577 100644 --- a/keyboards/keebformom/rules.mk +++ b/keyboards/keebformom/rules.mk @@ -17,6 +17,5 @@ BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow AUDIO_ENABLE = no # Audio output LTO_ENABLE = yes -COMBO_ENABLE = yes NO_USB_STARTUP_CHECK = yes LAYOUTS = ortho_4x10 From 056539f5ae4d95cdfa8cf5420812c0bae5483d0e Mon Sep 17 00:00:00 2001 From: nendezkombet <82454371+nendezkombet@users.noreply.github.com> Date: Fri, 16 Dec 2022 18:21:07 +0700 Subject: [PATCH 23/29] Update keyboards/keebformom/config.h Co-authored-by: Ryan --- keyboards/keebformom/config.h | 5 ----- 1 file changed, 5 deletions(-) diff --git a/keyboards/keebformom/config.h b/keyboards/keebformom/config.h index d315fe2778e0..fd389d899ed1 100644 --- a/keyboards/keebformom/config.h +++ b/keyboards/keebformom/config.h @@ -86,8 +86,3 @@ along with this program. If not, see . //#define NO_ACTION_LAYER //#define NO_ACTION_TAPPING //#define NO_ACTION_ONESHOT - -/* disable these deprecated features by default */ -//#define NO_ACTION_MACRO -//#define NO_ACTION_FUNCTION - From 2bb26e908edb83833c8fff20120b0557c2f2cc71 Mon Sep 17 00:00:00 2001 From: nendezkombet <82454371+nendezkombet@users.noreply.github.com> Date: Thu, 2 Feb 2023 13:33:25 +0700 Subject: [PATCH 24/29] Update keyboards/keebformom/config.h Co-authored-by: Ryan --- keyboards/keebformom/config.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/keyboards/keebformom/config.h b/keyboards/keebformom/config.h index fd389d899ed1..9a8a1644f37f 100644 --- a/keyboards/keebformom/config.h +++ b/keyboards/keebformom/config.h @@ -19,10 +19,6 @@ along with this program. If not, see . #include "config_common.h" -/* key matrix size */ -#define MATRIX_ROWS 4 -#define MATRIX_COLS 10 - /* * Keyboard Matrix Assignments * From 8e6e483d7f2dde286459f16fcc4dec644a1a0894 Mon Sep 17 00:00:00 2001 From: nendezkombet <82454371+nendezkombet@users.noreply.github.com> Date: Thu, 2 Feb 2023 13:34:02 +0700 Subject: [PATCH 25/29] Update keyboards/keebformom/config.h Co-authored-by: Ryan --- keyboards/keebformom/config.h | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/keyboards/keebformom/config.h b/keyboards/keebformom/config.h index 9a8a1644f37f..9fba21845ae7 100644 --- a/keyboards/keebformom/config.h +++ b/keyboards/keebformom/config.h @@ -52,27 +52,6 @@ along with this program. If not, see . /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ #define DEBOUNCE 5 -/* - * 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. From e355ea3691e4ebe5fbfa9c3b1727b9d613d51d2f Mon Sep 17 00:00:00 2001 From: nendezkombet <82454371+nendezkombet@users.noreply.github.com> Date: Thu, 2 Feb 2023 13:35:01 +0700 Subject: [PATCH 26/29] Update keyboards/keebformom/readme.md Co-authored-by: Ryan --- keyboards/keebformom/readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keyboards/keebformom/readme.md b/keyboards/keebformom/readme.md index 7966f531cbcb..88f407908a77 100644 --- a/keyboards/keebformom/readme.md +++ b/keyboards/keebformom/readme.md @@ -1,6 +1,6 @@ # Keeb For Mom -![KeebForMom](https://i.imgur.com/MvBatHS.jpg) +![KeebForMom](https://i.imgur.com/MvBatHSh.jpg) KFM is a low cost 4x5 modular mechanical keyboard that everyone can build. Modular it's mean two PCBs can be combined become one 40% keyboard, so you can use the PCB board as single 4x5 macro pad or 4x10 ortholinier mechanical keyboard. The PCB board has some feature like south facing switches orientation, RGB perkey and passive buzzer supported which can be used as layer indicator. From 2e73c51c29ea5e5ef5c7bfc38d6f9ea644c8190b Mon Sep 17 00:00:00 2001 From: nendezkombet <82454371+nendezkombet@users.noreply.github.com> Date: Thu, 2 Feb 2023 13:35:21 +0700 Subject: [PATCH 27/29] Update keyboards/keebformom/info.json Co-authored-by: Ryan --- keyboards/keebformom/info.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/keyboards/keebformom/info.json b/keyboards/keebformom/info.json index 6f40e577f089..5d9c9b6515c4 100644 --- a/keyboards/keebformom/info.json +++ b/keyboards/keebformom/info.json @@ -8,6 +8,8 @@ "pid": "0x14E2", "device_version": "1.0.0" }, + "processor": "atmega32u4", + "bootloader": "caterina", "layouts": { "LAYOUT_ortho_4x10": { "layout": [ From 04795bdd88dbdd472842a2bcc2f8895d2fd7df8c Mon Sep 17 00:00:00 2001 From: nendezkombet <82454371+nendezkombet@users.noreply.github.com> Date: Thu, 2 Feb 2023 13:35:28 +0700 Subject: [PATCH 28/29] Update keyboards/keebformom/rules.mk Co-authored-by: Ryan --- keyboards/keebformom/rules.mk | 6 ------ 1 file changed, 6 deletions(-) diff --git a/keyboards/keebformom/rules.mk b/keyboards/keebformom/rules.mk index efa62e0ed577..50c95c8bbde7 100644 --- a/keyboards/keebformom/rules.mk +++ b/keyboards/keebformom/rules.mk @@ -1,9 +1,3 @@ -# MCU name -MCU = atmega32u4 - -# Bootloader selection -BOOTLOADER = caterina - # Build Options # change yes to no to disable # From 52d0e9885b69fe04d17594b842d608de51df3540 Mon Sep 17 00:00:00 2001 From: jack <0x6a73@protonmail.com> Date: Thu, 2 Feb 2023 19:04:30 -0700 Subject: [PATCH 29/29] Update keyboards/keebformom/config.h --- keyboards/keebformom/config.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/keyboards/keebformom/config.h b/keyboards/keebformom/config.h index 9fba21845ae7..e64802e8e461 100644 --- a/keyboards/keebformom/config.h +++ b/keyboards/keebformom/config.h @@ -16,9 +16,6 @@ along with this program. If not, see . #pragma once -#include "config_common.h" - - /* * Keyboard Matrix Assignments *