Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding RM_Numpad #15983

Merged
merged 22 commits into from
Apr 13, 2022
Merged
Show file tree
Hide file tree
Changes from 9 commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
4f2718c
adding rm_numpad
jrucker2004 Jan 22, 2022
2fd5b6c
adding url
jrucker2004 Jan 22, 2022
55dd615
adding image
jrucker2004 Jan 22, 2022
d7e4416
Apply suggestions from code review
RuckerMachine Jan 22, 2022
1bf4ab3
adding bootloader to readme
jrucker2004 Jan 22, 2022
57a8d0c
embedding image
jrucker2004 Jan 22, 2022
85f19a1
adding layouts to rm_numpad.h
jrucker2004 Feb 8, 2022
e05df8f
rolling back breaking changes
jrucker2004 Feb 8, 2022
2f5ff41
updating layouts
jrucker2004 Feb 17, 2022
3a2b9a1
Update keyboards/rmkeebs/rm_numpad/rules.mk
RuckerMachine Feb 21, 2022
dda8a0e
Update keyboards/rmkeebs/rm_numpad/keymaps/default/keymap.c
RuckerMachine Feb 26, 2022
3cfae44
Update keyboards/rmkeebs/rm_numpad/keymaps/ortho/keymap.c
RuckerMachine Feb 26, 2022
6de35fe
Update keyboards/rmkeebs/rm_numpad/keymaps/split_plus/keymap.c
RuckerMachine Feb 26, 2022
4be3868
Update keyboards/rmkeebs/rm_numpad/rm_numpad.c
RuckerMachine Feb 26, 2022
4c85545
Update keyboards/rmkeebs/rm_numpad/readme.md
RuckerMachine Mar 26, 2022
72e4c1a
updating image
jrucker2004 Mar 26, 2022
c274235
Update keyboards/rmkeebs/rm_numpad/config.h
RuckerMachine Mar 26, 2022
626965c
Merge branch 'rm_numpad' of https://github.com/RuckerMachine/qmk_firm…
jrucker2004 Mar 26, 2022
7c1c772
Update keyboards/rmkeebs/rm_numpad/rm_numpad.h
RuckerMachine Mar 26, 2022
704d4f1
Update keyboards/rmkeebs/rm_numpad/rm_numpad.h
RuckerMachine Mar 27, 2022
e09c80c
Update keyboards/rmkeebs/rm_numpad/rm_numpad.h
RuckerMachine Mar 27, 2022
fa9d06e
Update keyboards/rmkeebs/rm_numpad/rm_numpad.h
RuckerMachine Mar 27, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
159 changes: 159 additions & 0 deletions keyboards/rmkeebs/rm_numpad/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,159 @@
/*
Copyright 2021 RuckerMachine

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 0xFEED
#define PRODUCT_ID 0x524E /* RN (RMKeebs Numpad) */
#define DEVICE_VER 0x0001
#define MANUFACTURER RMKeebs
#define PRODUCT rm_numpad

/* key matrix size */
#define MATRIX_ROWS 6
#define MATRIX_COLS 5

/*
* 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)
*
*/

#define MATRIX_ROW_PINS { B4, F7, C7, C6, F1, F0 }
#define MATRIX_COL_PINS { F4, F5, F6, B5, B6 }

#define UNUSED_PINS

/* COL2ROW, ROW2COL */
#define DIODE_DIRECTION COL2ROW

/* define encoder pins */
#define ENCODERS_PAD_A { D7 }
#define ENCODERS_PAD_B { D4 }

/*
* Split Keyboard specific options, make sure you have 'SPLIT_KEYBOARD = yes' in your rules.mk, and define SOFT_SERIAL_PIN.
*
* #define SOFT_SERIAL_PIN D0 // or D1, D2, D3, E6
*/

//#define LED_NUM_LOCK_PIN B0
//#define LED_CAPS_LOCK_PIN B1
//#define LED_SCROLL_LOCK_PIN B2
//#define LED_COMPOSE_PIN B3
//#define LED_KANA_PIN B4

//#define BACKLIGHT_PIN B7
//#define BACKLIGHT_LEVELS 3
//#define BACKLIGHT_BREATHING

//#define RGB_DI_PIN E2
//#ifdef RGB_DI_PIN
//# define RGBLED_NUM 16
//# define RGBLIGHT_HUE_STEP 8
//# define RGBLIGHT_SAT_STEP 8
//# define RGBLIGHT_VAL_STEP 8
//# define RGBLIGHT_LIMIT_VAL 255 /* 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

/* 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 useful 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

/* disable these deprecated features by default */
#define NO_ACTION_MACRO
#define NO_ACTION_FUNCTION

RuckerMachine marked this conversation as resolved.
Show resolved Hide resolved
/* Bootmagic Lite key configuration */
//#define BOOTMAGIC_LITE_ROW 0
//#define BOOTMAGIC_LITE_COLUMN 0
102 changes: 102 additions & 0 deletions keyboards/rmkeebs/rm_numpad/info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
{
"keyboard_name": "rm_numpad",
"url": "https://www.rmkeebs.com/product/rm-numpad/",
"maintainer": "RuckerMachine",
"layouts": {
"LAYOUT_default": {
"layout": [
{"label": "Pause", "x": 0, "y": 0.25},
{"label": "Prev", "x": 1, "y": 0.25},
{"label": "Next", "x": 2, "y": 0.25},
{"label": "Mute", "x": 3.5, "y": 0},

{"label": "Num_Lock", "x": 0, "y": 1.25},
{"label": "/", "x": 1, "y": 1.25},
{"label": "*", "x": 2, "y": 1.25},
{"label": "-", "x": 3, "y": 1.25},

{"label": "7", "x": 0, "y": 2.25},
{"label": "8", "x": 1, "y": 2.25},
{"label": "9", "x": 2, "y": 2.25},
{"label": "+", "x": 3, "y": 2.25, "h": 2},

{"label": "4", "x": 0, "y": 3.25},
{"label": "5", "x": 1, "y": 3.25},
{"label": "6", "x": 2, "y": 3.25},

{"label": "1", "x": 0, "y": 4.25},
{"label": "2", "x": 1, "y": 4.25},
{"label": "3", "x": 2, "y": 4.25},
{"label": "Enter", "x": 3, "y": 4.25, "h": 2},

{"label": "0", "x": 0, "y": 5.25, "w": 2},
{"label": ".", "x": 2, "y": 5.25}
]
},
"LAYOUT_split_plus": {
"layout": [
{"label": "Pause", "x": 0, "y": 0.25},
{"label": "Prev", "x": 1, "y": 0.25},
{"label": "Next", "x": 2, "y": 0.25},
{"label": "Mute", "x": 3.5, "y": 0},

{"label": "Num_Lock", "x": 0, "y": 1.25},
{"label": "/", "x": 1, "y": 1.25},
{"label": "*", "x": 2, "y": 1.25},
{"label": "-", "x": 3, "y": 1.25},

{"label": "7", "x": 0, "y": 2.25},
{"label": "8", "x": 1, "y": 2.25},
{"label": "9", "x": 2, "y": 2.25},
{"label": "=", "x": 3, "y": 2.25},

{"label": "4", "x": 0, "y": 3.25},
{"label": "5", "x": 1, "y": 3.25},
{"label": "6", "x": 2, "y": 3.25},
{"label": "+", "x": 3, "y": 3.25},

{"label": "1", "x": 0, "y": 4.25},
{"label": "2", "x": 1, "y": 4.25},
{"label": "3", "x": 2, "y": 4.25},
{"label": "Enter", "x": 3, "y": 4.25, "h": 2},

{"label": "0", "x": 0, "y": 5.25, "w": 2},
{"label": ".", "x": 2, "y": 5.25}
]
},
"LAYOUT_ortho": {
"layout": [
{"label": "Pause", "x": 0, "y": 0.25},
{"label": "Prev", "x": 1, "y": 0.25},
{"label": "Next", "x": 2, "y": 0.25},
{"label": "Mute", "x": 3.5, "y": 0},

{"label": "Num_Lock", "x": 0, "y": 1.25},
{"label": "/", "x": 1, "y": 1.25},
{"label": "*", "x": 2, "y": 1.25},
{"label": "-", "x": 3, "y": 1.25},

{"label": "7", "x": 0, "y": 2.25},
{"label": "8", "x": 1, "y": 2.25},
{"label": "9", "x": 2, "y": 2.25},
{"label": "=", "x": 3, "y": 2.25},

{"label": "4", "x": 0, "y": 3.25},
{"label": "5", "x": 1, "y": 3.25},
{"label": "6", "x": 2, "y": 3.25},
{"label": "+", "x": 3, "y": 3.25},

{"label": "1", "x": 0, "y": 4.25},
{"label": "2", "x": 1, "y": 4.25},
{"label": "3", "x": 2, "y": 4.25},
{"label": "Enter", "x": 3, "y": 4.25},

{"label": "0", "x": 0, "y": 5.25},
{"label": "00", "x": 1, "y": 5.25},
{"label": ".", "x": 2, "y": 5.25},
{"label": "Delete", "x": 3, "y": 5.25}
]
}

}
}
40 changes: 40 additions & 0 deletions keyboards/rmkeebs/rm_numpad/keymaps/default/keymap.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
/* Copyright 2021 RuckerMachine
*
* 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



const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
/* Base */
LAYOUT_numpad_6x4(
KC_MPLY, KC_MPRV, KC_MNXT, KC_MUTE,
KC_NLCK, KC_PSLS, KC_PAST, KC_PMNS,
KC_P7, KC_P8, KC_P9, KC_PPLS,
KC_P4, KC_P5, KC_P6,
KC_P1, KC_P2, KC_P3, KC_PENT,
KC_P0, KC_PDOT
)

};

bool encoder_update_user(uint8_t index, bool clockwise) {
if (clockwise) {
tap_code(KC_VOLU);
} else {
tap_code(KC_VOLD);
}
return false;
};
RuckerMachine marked this conversation as resolved.
Show resolved Hide resolved
5 changes: 5 additions & 0 deletions keyboards/rmkeebs/rm_numpad/keymaps/default/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# The default keymap for rm_numpad


![Default Layout](https://i.imgur.com/APQGsvU.png)

56 changes: 56 additions & 0 deletions keyboards/rmkeebs/rm_numpad/keymaps/ortho/keymap.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
/* Copyright 2021 RuckerMachine
*
* 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 custom_keycodes {
DBL_ZRO = SAFE_RANGE,
};

bool process_record_user(uint16_t keycode, keyrecord_t *record) {
switch (keycode) {
case DBL_ZRO:
if (record->event.pressed) {
// when keycode DBL_ZRO is pressed
SEND_STRING("00");
} else {
// when keycode DBL_ZRO is released
}
break;

}
return true;
};

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
/* Base */
LAYOUT_ortho_6x4(
KC_MPLY, KC_MPRV, KC_MNXT, KC_MUTE,
KC_NLCK, KC_PSLS, KC_PAST, KC_PMNS,
KC_P7, KC_P8, KC_P9, KC_EQL,
KC_P4, KC_P5, KC_P6, KC_PPLS,
KC_P1, KC_P2, KC_P3, KC_PENT,
KC_P0, DBL_ZRO, KC_PDOT, KC_DEL
)
};

bool encoder_update_user(uint8_t index, bool clockwise) {
if (clockwise) {
tap_code(KC_VOLU);
} else {
tap_code(KC_VOLD);
}
return false;
};
RuckerMachine marked this conversation as resolved.
Show resolved Hide resolved
4 changes: 4 additions & 0 deletions keyboards/rmkeebs/rm_numpad/keymaps/ortho/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# The ortho keymap for rm_numpad


![ortho layout](https://i.imgur.com/z8Pt9R6.png)
Loading