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 M6-C Keyboard Firmware #21852

Merged
merged 4 commits into from
Sep 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
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
10 changes: 10 additions & 0 deletions keyboards/wolf/m6_c/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// Copyright 2023 contact@vwolf.be
// SPDX-License-Identifier: GPL-2.0-or-later
#pragma once

#define RGB_MATRIX_LED_COUNT 6
#define RGB_DISABLE_WHEN_USB_SUSPENDED
#define RGB_MATRIX_KEYPRESSES
#define RGB_MATRIX_FRAMEBUFFER_EFFECTS

#define RGB_MATRIX_DEFAULT_MODE RGB_MATRIX_CYCLE_ALL
101 changes: 101 additions & 0 deletions keyboards/wolf/m6_c/info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
{
"manufacturer": "Rama",
"keyboard_name": "M6-C",
"maintainer": "ToastyStoemp",
"bootloader": "atmel-dfu",
"diode_direction": "COL2ROW",
"features": {
"bootmagic": true,
"command": false,
"console": false,
"extrakey": true,
"mousekey": true,
"nkro": false,
"rgb_matrix": true
},
"matrix_pins": {
"cols": ["B0", "B1", "B7"],
"rows": ["B2", "B3"]
},
"processor": "atmega32u4",
"ws2812": {
"pin": "D5"
},
"rgb_matrix": {
"driver": "ws2812",
"max_brightness": 120,
"animations": {
"solid_color": true,
"alphas_mods": true,
"gradient_up_down": true,
"gradient_left_right": true,
"breathing": true,
"band_sat": true,
"band_val": true,
"band_pinwheel_sat": true,
"band_pinwheel_val": true,
"band_spiral_sat": true,
"band_spiral_val": true,
"cycle_all": true,
"cycle_left_right": true,
"cycle_up_down": true,
"cycle_out_in": true,
"cycle_out_in_dual": true,
"rainbow_moving_chevron": true,
"cycle_pinwheel": true,
"cycle_spiral": true,
"dual_beacon": true,
"rainbow_beacon": true,
"rainbow_pinwheels": true,
"raindrops": true,
"jellybean_raindrops": true,
"hue_breathing": true,
"hue_pendulum": true,
"hue_wave": true,
"pixel_fractal": true,
"pixel_flow": true,
"pixel_rain": true,
"typing_heatmap": true,
"digital_rain": true,
"solid_reactive_simple": true,
"solid_reactive": true,
"solid_reactive_wide": true,
"solid_reactive_multiwide": true,
"solid_reactive_cross": true,
"solid_reactive_multicross": true,
"solid_reactive_nexus": true,
"solid_reactive_multinexus": true,
"splash": true,
"multisplash": true,
"solid_splash": true,
"solid_multisplash": true
},
"layout": [
{ "flags": 4, "matrix": [0, 0], "x": 0, "y": 0 },
{ "flags": 4, "matrix": [0, 1], "x": 122, "y": 0 },
{ "flags": 4, "matrix": [0, 2], "x": 243, "y": 0 },
{ "flags": 4, "matrix": [1, 2], "x": 244, "y": 64 },
{ "flags": 4, "matrix": [1, 1], "x": 122, "y": 64 },
{ "flags": 4, "matrix": [1, 0], "x": 0, "y": 64 }
]
},
"url": "",
"usb": {
"device_version": "1.0.0",
"pid": "0x0060",
"vid": "0x5453"
},
"community_layouts": ["ortho_2x3"],
"layouts": {
"LAYOUT_ortho_2x3": {
"layout": [
{ "matrix": [0, 0], "x": 0, "y": 0 },
{ "matrix": [0, 1], "x": 1, "y": 0 },
{ "matrix": [0, 2], "x": 2, "y": 0 },
{ "matrix": [1, 0], "x": 0, "y": 1 },
{ "matrix": [1, 1], "x": 1, "y": 1 },
{ "matrix": [1, 2], "x": 2, "y": 1 }
]
}
}
}
12 changes: 12 additions & 0 deletions keyboards/wolf/m6_c/keymaps/default/keymap.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// Copyright 2020-2022 QMK (@qmk)
// SPDX-License-Identifier: GPL-2.0-or-later

#include QMK_KEYBOARD_H

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

[0] = LAYOUT_ortho_2x3(
KC_1, KC_2, KC_3,
KC_4, KC_5, KC_6
)
};
12 changes: 12 additions & 0 deletions keyboards/wolf/m6_c/keymaps/via/keymap.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// Copyright 2020-2022 QMK (@qmk)
// SPDX-License-Identifier: GPL-2.0-or-later

#include QMK_KEYBOARD_H

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

[0] = LAYOUT_ortho_2x3(
KC_1, KC_2, KC_3,
KC_4, KC_5, KC_6
)
};
2 changes: 2 additions & 0 deletions keyboards/wolf/m6_c/keymaps/via/rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
VIA_ENABLE = yes
LTO_ENABLE = yes
drashna marked this conversation as resolved.
Show resolved Hide resolved
24 changes: 24 additions & 0 deletions keyboards/wolf/m6_c/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# M6-C

![M6-C](https://i.imgur.com/gkRotHh.jpeg)

The following is the QMK Firmware for the M6-C PCB.

* Keyboard Maintainer: [Wolf](https://github.com/ToastyStoemp)
* Hardware Supported: M6-C PCB
* Hardware Availability: https://ramaworks.store/products/m6-c

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

make wolf/m6_c:default

Flashing example for this keyboard:

make wolf/m6_c: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 ESC key and plug in the keyboard (Top Left most switch)
* **Physical reset button**: Double press the button through the pinhole in the case
* **Keycode in layout**: Press the key mapped to `QK_BOOT`
2 changes: 2 additions & 0 deletions keyboards/wolf/m6_c/rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Processor frequency
F_CPU = 8000000