-
-
Notifications
You must be signed in to change notification settings - Fork 39.5k
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
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
7240b6e
[Keyboard] Idobao Montex V2(RGB)
peepeetee 92a0e57
add RGB matrix
peepeetee 17664db
add VIA implementation, clean up
peepeetee 3d6ef18
squeeze some AVR; VIA now compiles
peepeetee 6b0e814
readme
peepeetee bcf9d91
add RGB_MOD
peepeetee e9f1182
add via lighting
peepeetee d1ddccb
add some missed RGB effects
peepeetee 2a61acc
Different Wiring than old Montex
chofstede eb30fbd
Merge pull request #4 from chofstede/patch-13
peepeetee 8e22e5f
apply @chofstede 's fix to via keymap
peepeetee c9a1bf7
rename folder to `v1rgb`
133a090
rename files to `v1rgb.*`
91ee21c
several code adjustments, and RGB matrix redo
c0ee490
copt v2 keymap with [Fn] at bottom left
a8aa758
credit @willi-on-fire for helping us test
d3b1911
fix for [6] key co-ord typo
1a3c749
added keymap readme
d7f1213
Merge pull request #6
vinorodrigues 84abb27
Apply suggestions from code review
vinorodrigues 59b9dc4
disable PIXEL_FRACTAL on suggestion from sigprof
479c287
Delete config.h
57011be
Merge branch 'qmk:master' into montex_rgb
vinorodrigues f8bfb39
RESET -> QK_BOOT
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
#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/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, _______, _______, _______, | ||
_______, _______, _______, _______, | ||
_______, _______, _______, _______, _______, | ||
_______, _______, _______ | ||
), | ||
|
||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# The default keymap for v2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/ |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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 fromRGBLIGHT_ENABLE
toRGB_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).There was a problem hiding this comment.
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