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

[Keyboard] Idobao Montex V2(RGB) #15865

Merged
merged 24 commits into from
Jun 16, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
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
57 changes: 57 additions & 0 deletions keyboards/idobao/montex/v2/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
// Copyright 2022 peepeetee (@peepeetee)
// SPDX-License-Identifier: GPL-2.0-or-later

#pragma once

#include "config_common.h"

/* USB Device descriptor parameter */
#define VENDOR_ID 0x6964 // "id"
#define PRODUCT_ID 0x6060
#define DEVICE_VER 0x0002
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

VIA issues may require changing the PRODUCT_ID too (although the matrix layout seems to be exactly the same as on V1, so the basic VIA JSON for V1 will still work for V2, changing from RGBLIGHT_ENABLE to RGB_MATRIX_ENABLE will require a separate VIA JSON if you want to have proper effect names there; also the backlight feature was in V1, but not in V2).

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

product ID changed to 0x0127 + new VIA json pending at the-via

#define MANUFACTURER IDOBAO
#define PRODUCT Montex

/* 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 { D4, D6, D7, B4, B5, C6 }
#define MATRIX_COL_PINS { D5, D3, D2, D1, D0 }

#define DIODE_DIRECTION ROW2COL


#define RGB_DI_PIN B1
#ifdef RGB_DI_PIN
#define RGBLED_NUM 31
#define RGBLIGHT_HUE_STEP 8
#define RGBLIGHT_SAT_STEP 8
#define RGBLIGHT_VAL_STEP 8
#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
#endif

// generated by KBFirmware JSON to QMK Parser
// https://noroadsleft.github.io/kbf_qmk_converter/
39 changes: 39 additions & 0 deletions keyboards/idobao/montex/v2/info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"keyboard_name": "A201",
"url": "",
"maintainer": "qmk",
"layouts": {
"LAYOUT": {
"layout": [
{ "label": "K00 (D4,D5)", "x": 0, "y": 0 },
{ "label": "K01 (D4,D3)", "x": 1, "y": 0 },
{ "label": "K02 (D4,D2)", "x": 2, "y": 0 },
{ "label": "K03 (D4,D1)", "x": 3, "y": 0 },
{ "label": "K04 (D4,D0)", "x": 4, "y": 0 },
{ "label": "K10 (D6,D5)", "x": 0, "y": 1 },
{ "label": "K11 (D6,D3)", "x": 1, "y": 1 },
{ "label": "K12 (D6,D2)", "x": 2, "y": 1 },
{ "label": "K13 (D6,D1)", "x": 3, "y": 1 },
{ "label": "K14 (D6,D0)", "x": 4, "y": 1 },
{ "label": "K20 (D7,D5)", "x": 0, "y": 2 },
{ "label": "K21 (D7,D3)", "x": 1, "y": 2 },
{ "label": "K22 (D7,D2)", "x": 2, "y": 2 },
{ "label": "K23 (D7,D1)", "x": 3, "y": 2 },
{ "label": "K24 (D7,D0)", "x": 4, "y": 2, "h": 2 },
{ "label": "K30 (B4,D5)", "x": 0, "y": 3 },
{ "label": "K31 (B4,D3)", "x": 1, "y": 3 },
{ "label": "K32 (B4,D2)", "x": 2, "y": 3 },
{ "label": "K33 (B4,D1)", "x": 3, "y": 3 },
{ "label": "K40 (B5,D5)", "x": 0, "y": 4 },
{ "label": "K41 (B5,D3)", "x": 1, "y": 4 },
{ "label": "K42 (B5,D2)", "x": 2, "y": 4 },
{ "label": "K43 (B5,D1)", "x": 3, "y": 4 },
{ "label": "K53 (C6,D1)", "x": 4, "y": 4, "h": 2 },
{ "label": "K50 (C6,D5)", "x": 0, "y": 5 },
{ "label": "K51 (C6,D3)", "x": 1, "y": 5, "w": 2 },
{ "label": "K52 (C6,D2)", "x": 3, "y": 5 }
]
}
}
,"meta": "https://noroadsleft.github.io/kbf_qmk_converter/"
}
26 changes: 26 additions & 0 deletions keyboards/idobao/montex/v2/keymaps/default/keymap.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
// Copyright 2022 peepeetee (@peepeetee)
// SPDX-License-Identifier: GPL-2.0-or-later

#include QMK_KEYBOARD_H

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {

[0] = LAYOUT(
KC_DLR, KC_LPRN, KC_RPRN, MO(1), KC_DEL,
KC_NLCK, KC_ESC, KC_SLSH, KC_PAST, KC_PMNS,
KC_EQL, KC_P7, KC_P8, KC_P9, KC_PPLS,
KC_TAB, KC_P4, KC_P5, KC_P6,
KC_CAPS, KC_P1, KC_P2, KC_P3, KC_PENT,
KC_BSPC, KC_P0, KC_DOT
),

[1] = LAYOUT(
RESET, _______, _______, _______, _______,
_______, _______, _______, _______, _______,
RGB_TOG, RGB_MOD, _______, _______, _______,
_______, _______, _______, _______,
_______, _______, _______, _______, _______,
_______, _______, _______
),

};
1 change: 1 addition & 0 deletions keyboards/idobao/montex/v2/keymaps/default/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# The default keymap for v2
27 changes: 27 additions & 0 deletions keyboards/idobao/montex/v2/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# v2

![v2](imgur.com image replace me!)

*A short description of the keyboard/project*

* Keyboard Maintainer: [peepeetee](https://github.com/peepeetee)
* Hardware Supported: *The PCBs, controllers supported*
* Hardware Availability: *Links to where you can find this hardware*

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

make v2:default

Flashing example for this keyboard:

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

# Bootloader selection
BOOTLOADER = atmel-dfu

# Build Options
# change yes to no to disable
#
BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite
MOUSEKEY_ENABLE = yes # Mouse keys
EXTRAKEY_ENABLE = yes # Audio control and System control
CONSOLE_ENABLE = yes # Console for debug
COMMAND_ENABLE = yes # 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
peepeetee marked this conversation as resolved.
Show resolved Hide resolved
BLUETOOTH_ENABLE = no # Enable Bluetooth
AUDIO_ENABLE = no # Audio output

# generated by KBFirmware JSON to QMK Parser
# https://noroadsleft.github.io/kbf_qmk_converter/
4 changes: 4 additions & 0 deletions keyboards/idobao/montex/v2/v2.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// Copyright 2022 peepeetee (@peepeetee)
// SPDX-License-Identifier: GPL-2.0-or-later

#include "v2.h"
27 changes: 27 additions & 0 deletions keyboards/idobao/montex/v2/v2.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// Copyright 2022 peepeetee (@peepeetee)
// SPDX-License-Identifier: GPL-2.0-or-later

#pragma once

#include "quantum.h"

#define XXX KC_NO

#define LAYOUT( \
K00, K01, K02, K03, K04, \
K10, K11, K12, K13, K14, \
K20, K21, K22, K23, K24, \
K30, K31, K32, K33, \
K40, K41, K42, K43, K53, \
K50, K51, K52 \
) { \
{ K00, K01, K02, K03, K04 }, \
{ K10, K11, K12, K13, K14 }, \
{ K20, K21, K22, K23, K24 }, \
{ K30, K31, K32, K33, XXX }, \
{ K40, K41, K42, K43, XXX }, \
{ K50, K51, K52, K53, XXX }, \
}
peepeetee marked this conversation as resolved.
Show resolved Hide resolved

// generated by KBFirmware JSON to QMK Parser
// https://noroadsleft.github.io/kbf_qmk_converter/