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

Add support for Idobao Montex #13214

Merged
merged 30 commits into from
Jul 3, 2021
Merged
Show file tree
Hide file tree
Changes from 13 commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
efae0b0
add Custom Corne
NachoxMacho Jun 16, 2021
3e449d9
add montex base
NachoxMacho Jun 16, 2021
c6a2e7b
fix row issue
NachoxMacho Jun 16, 2021
600f64d
add default keymap layout
NachoxMacho Jun 16, 2021
2d249bd
Delete keyboards/crkbd/keymaps/NachoxMacho directory
NachoxMacho Jun 16, 2021
19c8786
Delete keyboards/montex/keymaps/NachoxMacho directory
NachoxMacho Jun 16, 2021
4751a62
Switch #ifndef to #pragma once
NachoxMacho Jun 16, 2021
43fdd61
Switch #ifndef to #pragma once
NachoxMacho Jun 16, 2021
58e2836
Update montex.c
NachoxMacho Jun 16, 2021
0f06133
add url
NachoxMacho Jun 16, 2021
44115a7
Create readme.md
NachoxMacho Jun 16, 2021
71808ae
Merge pull request #1 from NachoxMacho/master
NachoxMacho Jun 16, 2021
27dba12
Update info.json
NachoxMacho Jun 16, 2021
951e892
Update keyboards/montex/keymaps/default/config.h
NachoxMacho Jun 17, 2021
a1bb3f8
Update keyboards/montex/keymaps/default/config.h
NachoxMacho Jun 17, 2021
b535941
Update keyboards/montex/keymaps/default/config.h
NachoxMacho Jun 17, 2021
daf9e83
Update keyboards/montex/rules.mk
NachoxMacho Jun 17, 2021
de963d9
Add GPL licenses
NachoxMacho Jun 17, 2021
b137125
Merge branch 'montex-keyboard' of https://github.com/NachoxMacho/qmk_…
NachoxMacho Jun 17, 2021
43e4bdc
update default keymap reset combo to match factory default
NachoxMacho Jun 17, 2021
5f9cbaf
Update keyboards/montex/montex.c
NachoxMacho Jun 17, 2021
5431963
Added bootloader instructions
NachoxMacho Jun 17, 2021
ab0bf39
Merge branch 'montex-keyboard' of https://github.com/NachoxMacho/qmk_…
NachoxMacho Jun 17, 2021
6f6460c
remove fluff from rules.mk
NachoxMacho Jun 17, 2021
0390459
add missing GPL license
NachoxMacho Jun 17, 2021
ab67657
Update keyboards/montex/rules.mk
NachoxMacho Jun 20, 2021
744d891
Apply suggestions from PR
NachoxMacho Jun 20, 2021
d633e68
Apply suggestions from code review
NachoxMacho Jun 20, 2021
ce94422
cleanup more whitespace
NachoxMacho Jun 20, 2021
5eb63f6
Changes based on PR
NachoxMacho Jun 26, 2021
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
47 changes: 47 additions & 0 deletions keyboards/montex/info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"keyboard_name": "montex numpad",
"url": "https://www.idobao.net/products/ldobao-montex-pad-hot-swappable-mechanical-keyboard-kit",
"maintainer": "NachoxMacho",
"width": 5,
"height": 6,
"layouts": {
"LAYOUT_numpad_6x5": {
"layout": [
{ "label": "0,0", "x": 0, "y": 0},
{ "label": "0,1", "x": 1, "y": 0},
{ "label": "0,2", "x": 2, "y": 0},
{ "label": "0,3", "x": 3, "y": 0},
{ "label": "0,4", "x": 4, "y": 0},

{ "label": "1,0", "x": 0, "y": 1.25},
{ "label": "1,1", "x": 1, "y": 1.25},
{ "label": "1,2", "x": 2, "y": 1.25},
{ "label": "1,3", "x": 3, "y": 1.25},
{ "label": "1,4", "x": 4, "y": 1.25},

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

{ "label": "3,0", "x": 0, "y": 3.25},
{ "label": "3,1", "x": 1, "y": 3.25},
{ "label": "3,2", "x": 2, "y": 3.25},
{ "label": "3,3", "x": 3, "y": 3.25},
{ "label": "3,4", "x": 4, "y": 2.25, "h": 2},

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

{ "label": "5,0", "x": 0, "y": 5.25},
{ "label": "5,1", "x": 1, "y": 5.25, "w": 2},
{ "label": "5,3", "x": 3, "y": 5.25},
{ "label": "5,4", "x": 4, "y": 4.25, "h": 2}

]
}
}
}

52 changes: 52 additions & 0 deletions keyboards/montex/keymaps/default/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
#pragma once

#include "config_common.h"

/* USB Device descriptor parameter */
#define VENDOR_ID 0xFEED
#define PRODUCT_ID 0x6060
#define DEVICE_VER 0x0001

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

/* key matrix pins */
#define MATRIX_ROW_PINS { D4, D6, D7, B4, B5, C6 }
#define MATRIX_COL_PINS { D5, D3, D2, D1, D0 }
#define UNUSED_PINS

/* COL2ROW or ROW2COL */
#define DIODE_DIRECTION ROW2COL

/* number of backlight levels */
#define BACKLIGHT_PIN B6
#ifdef BACKLIGHT_PIN
#define BACKLIGHT_LEVELS 3
#endif

/* Set 0 if debouncing isn't needed */
#define DEBOUNCING_DELAY 5

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

/* key combination for command */
#define IS_COMMAND() ( \
keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
)

/* prevent stuck modifiers */
#define PREVENT_STUCK_MODIFIERS

#define RGB_DI_PIN B1
#ifdef RGB_DI_PIN
#define RGBLIGHT_ANIMATIONS
#define RGBLED_NUM 4
#define RGBLIGHT_HUE_STEP 8
#define RGBLIGHT_SAT_STEP 8
#define RGBLIGHT_VAL_STEP 8
#endif
51 changes: 51 additions & 0 deletions keyboards/montex/keymaps/default/keymap.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
#include QMK_KEYBOARD_H

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
/*
* ┌───┌───┬───┬───┬───┐
* │ ` │Esc│Tab│MO1│Bsp│
* ├───┼───┼───┼───┼───┤
* │ , │Num│ / │ * │ - │
* ├───┼───┼───┼───┼───┤
* │Gui│ 7 │ 8 │ 9 │   │
* ├───┼───┼───┼───┤ + │
* │Alt│ 4 │ 5 │ 6 │   │
* ├───┼───┼───┼───┼───┤
* │Shi│ 1 │ 2 │ 3 │   │
* ├───┼───┴───┼───┤Ent│
* │Ctr│ 0     │ . │   │
* └───┴───────┴───┴───┘
*/
[0] = LAYOUT_numpad_6x5(
KC_GRAVE, KC_ESC, KC_TAB, MO(1), KC_BSPC,
KC_COMMA, KC_NLCK, KC_PSLS, KC_PAST, KC_PMNS,
KC_LGUI, KC_P7, KC_P8, KC_P9,
KC_LALT, KC_P4, KC_P5, KC_P6, KC_PPLS,
KC_LSHIFT, KC_P1, KC_P2, KC_P3,
KC_LCTRL, KC_P0, KC_PDOT, KC_PENT
),

/*
* ┌───┌───┐───┬───┬───┐
* │ ` │Rst│Tab│MO1│Bsp│
* ├───┼───┘───┼───┼───┤
* │ , │Num│ / │ * │ - │
* ├───┼───┼───┼───┼───┤
* │Gui│Hom│ ↑ │PgU│   │
* ├───┼───┼───┼───┤ + │
* │Alt│ ← │   │ → │   │
* ├───┼───┼───┼───┤───┤
* │Shi│End│ ↓ │PgD│   │
* ├───┼───┴───┼───┤Ent│
* │Ctr│Insert │Del│   │
* └───┴───────┴───┘───┘
*/
[1] = LAYOUT_numpad_6x5(
_______, RESET, _______, _______, _______,
_______, _______, _______, _______, _______,
_______, KC_HOME, KC_UP, KC_PGUP,
_______, KC_LEFT, XXXXXXX, KC_RGHT, _______,
_______, KC_END, KC_DOWN, KC_PGDN,
_______, KC_INS, KC_DEL, _______
)
};
8 changes: 8 additions & 0 deletions keyboards/montex/montex.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#include "montex.h"

void keyboard_pre_init_kb(void) {
// put your keyboard start-up code here
// runs once when the firmware starts up

matrix_init_user();
}
19 changes: 19 additions & 0 deletions keyboards/montex/montex.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#pragma once

#include "quantum.h"

#define LAYOUT_numpad_6x5( \
K00, K01, K02, K03, K04, \
K10, K11, K12, K13, K14, \
K20, K21, K22, K23, K24, \
K30, K31, K32, K33, \
K40, K41, K42, K43, \
K50, K51, K52, K53 \
) { \
{ K00, K01, K02, K03, K04 }, \
{ K10, K11, K12, K13, K14 }, \
{ K20, K21, K22, K23, K24 }, \
{ K30, K31, K32, K33, KC_NO }, \
{ K40, K41, K42, K43, KC_NO }, \
{ K50, K51, K52, K53, KC_NO } \
}
15 changes: 15 additions & 0 deletions keyboards/montex/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# IDOBAO MONTEX

A hotswap numpad from IDOBAO.

## Support:

* Keyboard Maintainer: [NachoxMacho](https://github.com/NachoxMacho)
* Hardware Supported: IDOBAO MONTEX
* Hardware Availability: [IDOBAO](https://www.idobao.net/products/ldobao-montex-pad-hot-swappable-mechanical-keyboard-kit)

Make example for this keyboard (after setting up your build environment):

make montex:default

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).
56 changes: 56 additions & 0 deletions keyboards/montex/rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# MCU name
MCU = atmega32u4

# Processor frequency.
# This will define a symbol, F_CPU, in all source code files equal to the
# processor frequency in Hz. You can then use this symbol in your source code to
# calculate timings. Do NOT tack on a 'UL' at the end, this will be done
# automatically to create a 32-bit value in your source code.
#
# This will be an integer division of F_USB below, as it is sourced by
# F_USB after it has run through any CPU prescalers. Note that this value
# does not *change* the processor frequency - it should merely be updated to
# reflect the processor speed set externally so that the code can use accurate
# software delays.
F_CPU = 16000000

#
# LUFA specific
#
# Target architecture (see library "Board Types" documentation).
ARCH = AVR8

# Input clock frequency.
# This will define a symbol, F_USB, in all source code files equal to the
# input clock frequency (before any prescaling is performed) in Hz. This value may
# differ from F_CPU if prescaling is used on the latter, and is required as the
# raw input clock is fed directly to the PLL sections of the AVR for high speed
# clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL'
# at the end, this will be done automatically to create a 32-bit value in your
# source code.
#
# If no clock division is performed on the input clock inside the AVR (via the
# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
F_USB = $(F_CPU)

# Interrupt driven control endpoint task(+60)
OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT


# Boot Section Size in *bytes*
OPT_DEFS += -DBOOTLOADER_SIZE=4096


# Build Options
# comment out to disable the options.
#
BOOTMAGIC_ENABLE ?= yes # Virtual DIP switch configuration(+1000)
MOUSEKEY_ENABLE ?= yes # Mouse keys(+4700)
EXTRAKEY_ENABLE ?= yes # Audio control and System control(+450)
CONSOLE_ENABLE ?= no # Console for debug(+400)
COMMAND_ENABLE ?= no # Commands for debug and configuration
SLEEP_LED_ENABLE ?= no # Breathing sleep LED during USB suspend
NKRO_ENABLE ?= yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
BACKLIGHT_ENABLE ?= yes # Enable keyboard backlight functionality
AUDIO_ENABLE ?= no
RGBLIGHT_ENABLE ?= yes
51 changes: 51 additions & 0 deletions layouts/default/numpad_6x5/default_numpad_6x5/keymap.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
#include QMK_KEYBOARD_H

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
/*
* ┌───┌───┬───┬───┬───┐
* │ ` │Esc│Tab│MO1│Bsp│
* ├───┼───┼───┼───┼───┤
* │ , │Num│ / │ * │ - │
* ├───┼───┼───┼───┼───┤
* │Gui│ 7 │ 8 │ 9 │   │
* ├───┼───┼───┼───┤ + │
* │Alt│ 4 │ 5 │ 6 │   │
* ├───┼───┼───┼───┼───┤
* │Shi│ 1 │ 2 │ 3 │   │
* ├───┼───┴───┼───┤Ent│
* │Ctr│ 0     │ . │   │
* └───┴───────┴───┴───┘
*/
[0] = LAYOUT_numpad_6x5(
KC_GRAVE, KC_ESC, KC_TAB, MO(1), KC_BSPC,
KC_COMMA, KC_NLCK, KC_PSLS, KC_PAST, KC_PMNS,
KC_LGUI, KC_P7, KC_P8, KC_P9,
KC_LALT, KC_P4, KC_P5, KC_P6, KC_PPLS,
KC_LSHIFT, KC_P1, KC_P2, KC_P3,
KC_LCTRL, KC_P0, KC_PDOT, KC_PENT
),

/*
* ┌───┌───┐───┬───┬───┐
* │ ` │Rst│Tab│MO1│Bsp│
* ├───┼───┘───┼───┼───┤
* │ , │Num│ / │ * │ - │
* ├───┼───┼───┼───┼───┤
* │Gui│Hom│ ↑ │PgU│   │
* ├───┼───┼───┼───┤ + │
* │Alt│ ← │   │ → │   │
* ├───┼───┼───┼───┤───┤
* │Shi│End│ ↓ │PgD│   │
* ├───┼───┴───┼───┤Ent│
* │Ctr│Insert │Del│   │
* └───┴───────┴───┘───┘
*/
[1] = LAYOUT_numpad_6x5(
_______, RESET, _______, _______, _______,
_______, _______, _______, _______, _______,
_______, KC_HOME, KC_UP, KC_PGUP,
_______, KC_LEFT, XXXXXXX, KC_RGHT, _______,
_______, KC_END, KC_DOWN, KC_PGDN,
_______, KC_INS, KC_DEL, _______
)
};
45 changes: 45 additions & 0 deletions layouts/default/numpad_6x5/info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"keyboard_name": "6x5 number pad layout",
"url": "",
"maintainer": "qmk",
"width": 5,
"height": 6,
"layouts": {
"LAYOUT_numpad_6x5": {
"layout": [
{"x":0, "y":0},
{"x":1, "y":0},
{"x":2, "y":0},
{"x":3, "y":0},
{"x":4, "y":0},

{"x":0, "y":1},
{"x":1, "y":1},
{"x":2, "y":1},
{"x":3, "y":1},
{"x":4, "y":1},

{"x":0, "y":2},
{"x":1, "y":2},
{"x":2, "y":2},
{"x":3, "y":2},

{"x":0, "y":3},
{"x":1, "y":3},
{"x":2, "y":3},
{"x":3, "y":3},
{"x":4, "y":2, "h":2},

{"x":0, "y":4},
{"x":1, "y":4},
{"x":2, "y":4},
{"x":3, "y":4},

{"x":0, "y":5},
{"x":1, "y":5, "w":2},
{"x":3, "y":5},
{"x":4, "y":4, "h":2}
]
}
}
}
6 changes: 6 additions & 0 deletions layouts/default/numpad_6x5/layout.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[{a:7},"","","","",""],
["","","","",""],
["","","","",{h:2},""],
["","","",""],
["","","","",{h:2},""],
["",{w:2},"",""]
3 changes: 3 additions & 0 deletions layouts/default/numpad_6x5/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# numpad_6x5

LAYOUT_numpad_6x5