* Added RAMA WORKS M65-B, M65-BX, M10-C, M50-A * Review changes * Review changes * Review changes * Increase layers to 10 for M10-C, M10-Bpull/10078/head
@ -1,13 +1,14 @@ | |||||
#include QMK_KEYBOARD_H | #include QMK_KEYBOARD_H | ||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||||
LAYOUT( | |||||
KC_KP_7, KC_KP_8, KC_KP_9, KC_KP_4, KC_KP_5, KC_KP_6, KC_KP_1, KC_KP_2, KC_KP_3, KC_KP_0 ), | |||||
LAYOUT( | |||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS ), | |||||
LAYOUT( | |||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS ), | |||||
LAYOUT( | |||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS ) | |||||
LAYOUT( KC_KP_7, KC_KP_8, KC_KP_9, KC_KP_4, KC_KP_5, KC_KP_6, KC_KP_1, KC_KP_2, KC_KP_3, KC_KP_0 ), | |||||
LAYOUT( KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS ), | |||||
LAYOUT( KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS ), | |||||
LAYOUT( KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS ), | |||||
LAYOUT( KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS ), | |||||
LAYOUT( KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS ), | |||||
LAYOUT( KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS ), | |||||
LAYOUT( KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS ), | |||||
LAYOUT( KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS ), | |||||
LAYOUT( KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS ) | |||||
}; | }; |
@ -0,0 +1,120 @@ | |||||
/* Copyright 2020 Jason Williams (Wilba) | |||||
* | |||||
* 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 0x5241 // "RA" | |||||
#define PRODUCT_ID 0x00AC // 10-C | |||||
#define DEVICE_VER 0x0001 | |||||
#define MANUFACTURER RAMA WORKS | |||||
#define PRODUCT RAMA WORKS M10-C | |||||
/* key matrix size */ | |||||
#define MATRIX_ROWS 1 | |||||
#define MATRIX_COLS 10 | |||||
/* | |||||
* 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 { E6 } | |||||
#define MATRIX_COL_PINS { D7, B6, F0, D6, B5, F1, D4, B4, F4, F5 } | |||||
#define UNUSED_PINS | |||||
/* COL2ROW, ROW2COL*/ | |||||
#define DIODE_DIRECTION COL2ROW | |||||
/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | |||||
#define DEBOUNCE 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 | |||||
/* disable these deprecated features by default */ | |||||
#define NO_ACTION_MACRO | |||||
#define NO_ACTION_FUNCTION | |||||
// IS31FL3731 driver | |||||
#define DRIVER_COUNT 1 | |||||
#define DRIVER_LED_TOTAL 12 | |||||
// Enable WT RGB backlight | |||||
#define RGB_BACKLIGHT_ENABLED 1 | |||||
// This conditionally compiles the backlight code for M10-C specifics | |||||
#define RGB_BACKLIGHT_M10_C | |||||
// enable/disable LEDs based on layout | |||||
#define RGB_BACKLIGHT_USE_SPLIT_BACKSPACE 0 | |||||
#define RGB_BACKLIGHT_USE_SPLIT_LEFT_SHIFT 0 | |||||
#define RGB_BACKLIGHT_USE_SPLIT_RIGHT_SHIFT 0 | |||||
#define RGB_BACKLIGHT_USE_7U_SPACEBAR 0 | |||||
#define RGB_BACKLIGHT_USE_ISO_ENTER 0 | |||||
#define RGB_BACKLIGHT_DISABLE_HHKB_BLOCKER_LEDS 0 | |||||
// disable backlight when USB suspended (PC sleep/hibernate/shutdown) | |||||
#define RGB_BACKLIGHT_DISABLE_WHEN_USB_SUSPENDED 0 | |||||
// disable backlight after timeout in minutes, 0 = no timeout | |||||
#define RGB_BACKLIGHT_DISABLE_AFTER_TIMEOUT 0 | |||||
// the default brightness | |||||
#define RGB_BACKLIGHT_BRIGHTNESS 255 | |||||
// the default effect (RGB test) | |||||
#define RGB_BACKLIGHT_EFFECT 255 | |||||
// the default effect speed (0-3) | |||||
#define RGB_BACKLIGHT_EFFECT_SPEED 0 | |||||
// the default color1 and color2 | |||||
#define RGB_BACKLIGHT_COLOR_1 { .h = 0, .s = 255 } | |||||
#define RGB_BACKLIGHT_COLOR_2 { .h = 127, .s = 255 } | |||||
// These define which keys in the matrix are alphas/mods | |||||
// Used for backlight effects so colors are different for | |||||
// alphas vs. mods | |||||
// Each value is for a row, bit 0 is column 0 | |||||
// Alpha=0 Mod=1 | |||||
#define RGB_BACKLIGHT_ALPHAS_MODS_ROW_0 0b0000000000000000 | |||||
#define RGB_BACKLIGHT_ALPHAS_MODS_ROW_1 0b0000000000000000 | |||||
#define RGB_BACKLIGHT_ALPHAS_MODS_ROW_2 0b0000000000000000 | |||||
#define RGB_BACKLIGHT_ALPHAS_MODS_ROW_3 0b0000000000000000 | |||||
#define RGB_BACKLIGHT_ALPHAS_MODS_ROW_4 0b0000000000000000 | |||||
#define RGB_BACKLIGHT_CAPS_LOCK_INDICATOR { .color = { .h = 0, .s = 0 }, .index = 255 } | |||||
#define RGB_BACKLIGHT_LAYER_1_INDICATOR { .color = { .h = 0, .s = 0 }, .index = 255 } | |||||
#define RGB_BACKLIGHT_LAYER_2_INDICATOR { .color = { .h = 0, .s = 0 }, .index = 255 } | |||||
#define RGB_BACKLIGHT_LAYER_3_INDICATOR { .color = { .h = 0, .s = 0 }, .index = 255 } | |||||
#define DYNAMIC_KEYMAP_LAYER_COUNT 10 | |||||
// Backlight config starts after VIA's EEPROM usage, | |||||
// dynamic keymaps start after this. | |||||
#define VIA_EEPROM_CUSTOM_CONFIG_SIZE 51 | |||||
// VIA lighting is handled by the keyboard-level code | |||||
#define VIA_CUSTOM_LIGHTING_ENABLE |
@ -0,0 +1,12 @@ | |||||
{ | |||||
"keyboard_name": "RAMA WORKS M10-C", | |||||
"url": "http://rama.works", | |||||
"maintainer": "Wilba", | |||||
"width": 3, | |||||
"height": 4, | |||||
"layouts": { | |||||
"LAYOUT": { | |||||
"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":0, "y":1}, {"label":"0,4", "x":1, "y":1}, {"label":"0,5", "x":2, "y":1}, {"label":"0,6", "x":0, "y":2}, {"label":"0,7", "x":1, "y":2}, {"label":"0,8", "x":2, "y":2}, {"label":"0,9", "x":1, "y":3, "w":2}] | |||||
} | |||||
} | |||||
} |
@ -0,0 +1,25 @@ | |||||
/* Copyright 2020 Jason Williams (Wilba) | |||||
* | |||||
* 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] = { | |||||
LAYOUT( KC_KP_7, KC_KP_8, KC_KP_9, KC_KP_4, KC_KP_5, KC_KP_6, KC_KP_1, KC_KP_2, KC_KP_3, KC_KP_0 ), | |||||
/* | |||||
LAYOUT( KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS ), | |||||
LAYOUT( KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS ), | |||||
LAYOUT( KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS ) | |||||
*/ | |||||
}; |
@ -0,0 +1,29 @@ | |||||
/* Copyright 2020 Jason Williams (Wilba) | |||||
* | |||||
* 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] = { | |||||
LAYOUT( KC_KP_7, KC_KP_8, KC_KP_9, KC_KP_4, KC_KP_5, KC_KP_6, KC_KP_1, KC_KP_2, KC_KP_3, KC_KP_0 ), | |||||
LAYOUT( KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS ), | |||||
LAYOUT( KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS ), | |||||
LAYOUT( KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS ), | |||||
LAYOUT( KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS ), | |||||
LAYOUT( KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS ), | |||||
LAYOUT( KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS ), | |||||
LAYOUT( KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS ), | |||||
LAYOUT( KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS ), | |||||
LAYOUT( KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS ) | |||||
}; |
@ -0,0 +1 @@ | |||||
VIA_ENABLE = yes |
@ -0,0 +1,18 @@ | |||||
/* Copyright 2020 Jason Williams (Wilba) | |||||
* | |||||
* 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/>. | |||||
*/ | |||||
#ifndef RGB_BACKLIGHT_M10_C | |||||
#error RGB_BACKLIGHT_M10_C not defined | |||||
#endif |
@ -0,0 +1,35 @@ | |||||
/* Copyright 2020 Jason Williams (Wilba) | |||||
* | |||||
* 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 "quantum.h" | |||||
#include "keyboards/wilba_tech/wt_rgb_backlight_keycodes.h" | |||||
#include "via.h" | |||||
/* This is a shortcut to help you visually see your layout. | |||||
* | |||||
* The first section contains all of the arguments representing the physical | |||||
* layout of the board and position of the keys. | |||||
* | |||||
* The second converts the arguments into a two-dimensional array which | |||||
* represents the switch matrix. | |||||
*/ | |||||
#define LAYOUT( \ | |||||
K00, K01, K02, K03, K04, K05, K06, K07, K08, K09 \ | |||||
) { \ | |||||
{K00, K01, K02, K03, K04, K05, K06, K07, K08, K09}, \ | |||||
} |
@ -0,0 +1,19 @@ | |||||
# RAMA WORKS M10-C | |||||
![RAMA WORKS M10-C](https://cdn.shopify.com/s/files/1/2689/3156/products/M10-C-LNY.1539_1296x1296.jpg?v=1580018332) | |||||
The RAMA WORKS M10-C is an ortholinear keyboard made by Rama Works. | |||||
* Keyboard Maintainer: [Wilba6582](https://github.com/Wilba6582) | |||||
* Hardware Supported: RAMA WORKS M10-C PCB | |||||
* Hardware Availability: [RAMA WORKS Store](https://ramaworks.store/) | |||||
Make example for this keyboard (after setting up your build environment): | |||||
make wilba_tech/rama_works_m10_c:default | |||||
Flashing example for this keyboard: | |||||
make wilba_tech/rama_works_m10_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). |
@ -0,0 +1,35 @@ | |||||
# MCU name | |||||
MCU = atmega32u4 | |||||
# Bootloader selection | |||||
BOOTLOADER = atmel-dfu | |||||
# Build Options | |||||
# change yes to no to disable | |||||
# | |||||
BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration | |||||
MOUSEKEY_ENABLE = no # Mouse keys | |||||
EXTRAKEY_ENABLE = yes # Audio control and System control | |||||
CONSOLE_ENABLE = no # Console for debug | |||||
COMMAND_ENABLE = no # Commands for debug and configuration | |||||
# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | |||||
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | |||||
# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | |||||
NKRO_ENABLE = yes # USB Nkey Rollover | |||||
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | |||||
RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | |||||
BLUETOOTH_ENABLE = no # Enable Bluetooth | |||||
AUDIO_ENABLE = no # Audio output | |||||
CIE1931_CURVE = yes | |||||
# Do not put the microcontroller into power saving mode | |||||
# when we get USB suspend event. We want it to keep updating | |||||
# backlight effects. | |||||
OPT_DEFS += -DNO_SUSPEND_POWER_DOWN | |||||
# project specific files | |||||
SRC = keyboards/wilba_tech/wt_main.c \ | |||||
keyboards/wilba_tech/wt_rgb_backlight.c \ | |||||
quantum/color.c \ | |||||
drivers/issi/is31fl3731.c \ | |||||
drivers/avr/i2c_master.c |
@ -0,0 +1,118 @@ | |||||
/* Copyright 2020 Jason Williams (Wilba) | |||||
* | |||||
* 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 0x5241 // "RA" | |||||
#define PRODUCT_ID 0x050A // 50-A | |||||
#define DEVICE_VER 0x0001 | |||||
#define MANUFACTURER RAMA WORKS | |||||
#define PRODUCT RAMA WORKS M50-A | |||||
/* key matrix size */ | |||||
#define MATRIX_ROWS 4 | |||||
#define MATRIX_COLS 13 | |||||
/* | |||||
* 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 { F0, F1, F5, F6 } | |||||
#define MATRIX_COL_PINS { F4, B5, C7, C6, B6, B2, B3, B1, B4, D7, D6, D4, D3 } | |||||
#define UNUSED_PINS | |||||
/* COL2ROW, ROW2COL */ | |||||
#define DIODE_DIRECTION COL2ROW | |||||
/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | |||||
#define DEBOUNCE 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 | |||||
/* disable these deprecated features by default */ | |||||
#define NO_ACTION_MACRO | |||||
#define NO_ACTION_FUNCTION | |||||
// IS31FL3731 driver | |||||
#define DRIVER_COUNT 2 | |||||
#define DRIVER_LED_TOTAL 72 | |||||
// Enable WT RGB backlight | |||||
#define RGB_BACKLIGHT_ENABLED 1 | |||||
// This conditionally compiles the backlight code for M50-A specifics | |||||
#define RGB_BACKLIGHT_M50_A | |||||
// enable/disable LEDs based on layout | |||||
#define RGB_BACKLIGHT_USE_SPLIT_BACKSPACE 0 | |||||
#define RGB_BACKLIGHT_USE_SPLIT_LEFT_SHIFT 0 | |||||
#define RGB_BACKLIGHT_USE_SPLIT_RIGHT_SHIFT 0 | |||||
#define RGB_BACKLIGHT_USE_7U_SPACEBAR 0 | |||||
#define RGB_BACKLIGHT_USE_ISO_ENTER 0 | |||||
#define RGB_BACKLIGHT_DISABLE_HHKB_BLOCKER_LEDS 0 | |||||
// disable backlight when USB suspended (PC sleep/hibernate/shutdown) | |||||
#define RGB_BACKLIGHT_DISABLE_WHEN_USB_SUSPENDED 0 | |||||
// disable backlight after timeout in minutes, 0 = no timeout | |||||
#define RGB_BACKLIGHT_DISABLE_AFTER_TIMEOUT 0 | |||||
// the default brightness | |||||
#define RGB_BACKLIGHT_BRIGHTNESS 255 | |||||
// the default effect (RGB test) | |||||
#define RGB_BACKLIGHT_EFFECT 255 | |||||
// the default effect speed (0-3) | |||||
#define RGB_BACKLIGHT_EFFECT_SPEED 0 | |||||
// the default color1 and color2 | |||||
#define RGB_BACKLIGHT_COLOR_1 { .h = 0, .s = 255 } | |||||
#define RGB_BACKLIGHT_COLOR_2 { .h = 127, .s = 255 } | |||||
// These define which keys in the matrix are alphas/mods | |||||
// Used for backlight effects so colors are different for | |||||
// alphas vs. mods | |||||
// Each value is for a row, bit 0 is column 0 | |||||
// Alpha=0 Mod=1 | |||||
#define RGB_BACKLIGHT_ALPHAS_MODS_ROW_0 0b0001000000000011 | |||||
#define RGB_BACKLIGHT_ALPHAS_MODS_ROW_1 0b0001000000000011 | |||||
#define RGB_BACKLIGHT_ALPHAS_MODS_ROW_2 0b0001000000000011 | |||||
#define RGB_BACKLIGHT_ALPHAS_MODS_ROW_3 0b0001111111111111 | |||||
#define RGB_BACKLIGHT_ALPHAS_MODS_ROW_4 0b0000000000000000 | |||||
#define RGB_BACKLIGHT_CAPS_LOCK_INDICATOR { .color = { .h = 0, .s = 0 }, .index = 255 } | |||||
#define RGB_BACKLIGHT_LAYER_1_INDICATOR { .color = { .h = 0, .s = 0 }, .index = 255 } | |||||
#define RGB_BACKLIGHT_LAYER_2_INDICATOR { .color = { .h = 0, .s = 0 }, .index = 255 } | |||||
#define RGB_BACKLIGHT_LAYER_3_INDICATOR { .color = { .h = 0, .s = 0 }, .index = 255 } | |||||
// Backlight config starts after VIA's EEPROM usage, | |||||
// dynamic keymaps start after this. | |||||
#define VIA_EEPROM_CUSTOM_CONFIG_SIZE 31 | |||||
// VIA lighting is handled by the keyboard-level code | |||||
#define VIA_CUSTOM_LIGHTING_ENABLE |
@ -0,0 +1,12 @@ | |||||
{ | |||||
"keyboard_name": "RAMA WORKS M50-A", | |||||
"url": "http://rama.works", | |||||
"maintainer": "Wilba", | |||||
"width": 13.25, | |||||
"height": 4, | |||||
"layouts": { | |||||
"LAYOUT": { | |||||
"layout": [{"label":"0,0", "x":0, "y":0}, {"label":"0,1", "x":1.25, "y":0}, {"label":"0,2", "x":2.25, "y":0}, {"label":"0,3", "x":3.25, "y":0}, {"label":"0,4", "x":4.25, "y":0}, {"label":"0,5", "x":5.25, "y":0}, {"label":"0,6", "x":6.25, "y":0}, {"label":"0,7", "x":7.25, "y":0}, {"label":"0,8", "x":8.25, "y":0}, {"label":"0,9", "x":9.25, "y":0}, {"label":"0,10", "x":10.25, "y":0}, {"label":"0,11", "x":11.25, "y":0}, {"label":"0,12", "x":12.25, "y":0}, {"label":"1,0", "x":0, "y":1}, {"label":"1,1", "x":1.25, "y":1}, {"label":"1,2", "x":2.25, "y":1}, {"label":"1,3", "x":3.25, "y":1}, {"label":"1,4", "x":4.25, "y":1}, {"label":"1,5", "x":5.25, "y":1}, {"label":"1,6", "x":6.25, "y":1}, {"label":"1,7", "x":7.25, "y":1}, {"label":"1,8", "x":8.25, "y":1}, {"label":"1,9", "x":9.25, "y":1}, {"label":"1,10", "x":10.25, "y":1}, {"label":"1,11", "x":11.25, "y":1}, {"label":"1,12", "x":12.25, "y":1}, {"label":"2,0", "x":0, "y":2}, {"label":"2,1", "x":1.25, "y":2}, {"label":"2,2", "x":2.25, "y":2}, {"label":"2,3", "x":3.25, "y":2}, {"label":"2,4", "x":4.25, "y":2}, {"label":"2,5", "x":5.25, "y":2}, {"label":"2,6", "x":6.25, "y":2}, {"label":"2,7", "x":7.25, "y":2}, {"label":"2,8", "x":8.25, "y":2}, {"label":"2,9", "x":9.25, "y":2}, {"label":"2,10", "x":10.25, "y":2}, {"label":"2,11", "x":11.25, "y":2}, {"label":"2,12", "x":12.25, "y":2}, {"label":"3,0", "x":0, "y":3}, {"label":"3,1", "x":1.25, "y":3}, {"label":"3,2", "x":2.25, "y":3}, {"label":"3,3", "x":3.25, "y":3}, {"label":"3,4", "x":4.25, "y":3}, {"label":"3,5", "x":5.25, "y":3}, {"label":"3,6", "x":6.25, "y":3}, {"label":"3,7", "x":7.25, "y":3}, {"label":"3,8", "x":8.25, "y":3}, {"label":"3,9", "x":9.25, "y":3}, {"label":"3,10", "x":10.25, "y":3}, {"label":"3,11", "x":11.25, "y":3}, {"label":"3,12", "x":12.25, "y":3}] | |||||
} | |||||
} | |||||
} |
@ -0,0 +1,95 @@ | |||||
/* Copyright 2020 Jason Williams (Wilba) | |||||
* | |||||
* 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] = { | |||||
/* Qwerty | |||||
* ,------------------------------------------------------------------------------------------. | |||||
* | | Tab | Q | W | E | R | T | Y | U | I | O | P | Bksp | | |||||
* |------+------+------+------+------+------+------+------+------+------+------+------+------| | |||||
* | | Esc | A | S | D | F | G | H | J | K | L | ; | " | | |||||
* |------+------+------+------+------+------+------+------+------+------+------+------+------| | |||||
* | | Shift| Z | X | C | V | B | N | M | , | . | / |Enter | | |||||
* |------+------+------+------+------+------+------+------+------+------+------+------+------| | |||||
* | | | Ctrl | Alt | GUI |Lower | Space |Raise | Left | Down | Up |Right | | |||||
* `------------------------------------------------------------------------------------------' | |||||
*/ | |||||
[0] = LAYOUT( | |||||
_______, KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, | |||||
_______, KC_ESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, | |||||
_______, KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT, | |||||
_______, _______, KC_LCTL, KC_LALT, KC_LGUI, FN_MO13, KC_SPC, KC_SPC, FN_MO23, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT | |||||
), | |||||
/* Lower | |||||
* ,------------------------------------------------------------------------------------------. | |||||
* | | ~ | ! | @ | # | $ | % | ^ | & | * | ( | ) | Bksp | | |||||
* |------+------+------+------+------+------+------+------+------+------+------+------+------| | |||||
* | | Del | F1 | F2 | F3 | F4 | F5 | F6 | _ | + | { | } | | | | |||||
* |------+------+------+------+------+------+------+------+------+------+------+------+------| | |||||
* | | | F7 | F8 | F9 | F10 | F11 | F12 |ISO ~ |ISO | | Home | End | | | |||||
* |------+------+------+------+------+------+------+------+------+------+------+------+------| | |||||
* | | | | | | | | | Next | Vol- | Vol+ | Play | | |||||
* `------------------------------------------------------------------------------------------' | |||||
*/ | |||||
[1] = LAYOUT( | |||||
_______, KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_BSPC, | |||||
_______, KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE, | |||||
_______, _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, S(KC_NUHS), S(KC_NUBS), KC_HOME, KC_END, _______, | |||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY | |||||
), | |||||
/* Raise | |||||
* ,------------------------------------------------------------------------------------------. | |||||
* | | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | Bksp | | |||||
* |------+------+------+------+------+------+------+------+------+------+------+------+------| | |||||
* | | Del | F1 | F2 | F3 | F4 | F5 | F6 | - | = | [ | ] | \ | | |||||
* |------+------+------+------+------+------+------+------+------+------+------+------+------| | |||||
* | | | F7 | F8 | F9 | F10 | F11 | F12 |ISO # |ISO / |Pg Up |Pg Dn | | | |||||
* |------+------+------+------+------+------+------+------+------+------+------+------+------| | |||||
* | | | | | | | | | Next | Vol- | Vol+ | Play | | |||||
* `------------------------------------------------------------------------------------------' | |||||
*/ | |||||
[2] = LAYOUT( | |||||
_______, KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, | |||||
_______, KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS, | |||||
_______, _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_NUHS, KC_NUBS, KC_PGUP, KC_PGDN, _______, | |||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY | |||||
), | |||||
/* Adjust (Lower + Raise) | |||||
* ,------------------------------------------------------------------------------------------. | |||||
* | | | | | | | | | | | | | | | |||||
* |------+------+------+------+------+------+------+------+------+------+------+------+------| | |||||
* | | | | | | | | | | | | | | | |||||
* |------+------+------+------+------+------+------+------+------+------+------+------+------| | |||||
* | | | | | | | | | | | | | | | |||||
* |------+------+------+------+------+------+------+------+------+------+------+------+------| | |||||
* | | | | | | | | | | | | | | |||||
* `------------------------------------------------------------------------------------------' | |||||
*/ | |||||
/* | |||||
[3] = LAYOUT( | |||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | |||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | |||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | |||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | |||||
) | |||||
*/ | |||||
}; |
@ -0,0 +1,93 @@ | |||||
/* Copyright 2020 Jason Williams (Wilba) | |||||
* | |||||
* 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] = { | |||||
/* Qwerty | |||||
* ,------------------------------------------------------------------------------------------. | |||||
* | | Tab | Q | W | E | R | T | Y | U | I | O | P | Bksp | | |||||
* |------+------+------+------+------+------+------+------+------+------+------+------+------| | |||||
* | | Esc | A | S | D | F | G | H | J | K | L | ; | " | | |||||
* |------+------+------+------+------+------+------+------+------+------+------+------+------| | |||||
* | | Shift| Z | X | C | V | B | N | M | , | . | / |Enter | | |||||
* |------+------+------+------+------+------+------+------+------+------+------+------+------| | |||||
* | | | Ctrl | Alt | GUI |Lower | Space |Raise | Left | Down | Up |Right | | |||||
* `------------------------------------------------------------------------------------------' | |||||
*/ | |||||
[0] = LAYOUT( | |||||
_______, KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, | |||||
_______, KC_ESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, | |||||
_______, KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT, | |||||
_______, _______, KC_LCTL, KC_LALT, KC_LGUI, FN_MO13, KC_SPC, KC_SPC, FN_MO23, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT | |||||
), | |||||
/* Lower | |||||
* ,------------------------------------------------------------------------------------------. | |||||
* | | ~ | ! | @ | # | $ | % | ^ | & | * | ( | ) | Bksp | | |||||
* |------+------+------+------+------+------+------+------+------+------+------+------+------| | |||||
* | | Del | F1 | F2 | F3 | F4 | F5 | F6 | _ | + | { | } | | | | |||||
* |------+------+------+------+------+------+------+------+------+------+------+------+------| | |||||
* | | | F7 | F8 | F9 | F10 | F11 | F12 |ISO ~ |ISO | | Home | End | | | |||||
* |------+------+------+------+------+------+------+------+------+------+------+------+------| | |||||
* | | | | | | | | | Next | Vol- | Vol+ | Play | | |||||
* `------------------------------------------------------------------------------------------' | |||||
*/ | |||||
[1] = LAYOUT( | |||||
_______, KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_BSPC, | |||||
_______, KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE, | |||||
_______, _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, S(KC_NUHS), S(KC_NUBS), KC_HOME, KC_END, _______, | |||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY | |||||
), | |||||
/* Raise | |||||
* ,------------------------------------------------------------------------------------------. | |||||
* | | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | Bksp | | |||||
* |------+------+------+------+------+------+------+------+------+------+------+------+------| | |||||
* | | Del | F1 | F2 | F3 | F4 | F5 | F6 | - | = | [ | ] | \ | | |||||
* |------+------+------+------+------+------+------+------+------+------+------+------+------| | |||||
* | | | F7 | F8 | F9 | F10 | F11 | F12 |ISO # |ISO / |Pg Up |Pg Dn | | | |||||
* |------+------+------+------+------+------+------+------+------+------+------+------+------| | |||||
* | | | | | | | | | Next | Vol- | Vol+ | Play | | |||||
* `------------------------------------------------------------------------------------------' | |||||
*/ | |||||
[2] = LAYOUT( | |||||
_______, KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, | |||||
_______, KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS, | |||||
_______, _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_NUHS, KC_NUBS, KC_PGUP, KC_PGDN, _______, | |||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY | |||||
), | |||||
/* Adjust (Lower + Raise) | |||||
* ,------------------------------------------------------------------------------------------. | |||||
* | | | | | | | | | | | | | | | |||||
* |------+------+------+------+------+------+------+------+------+------+------+------+------| | |||||
* | | | | | | | | | | | | | | | |||||
* |------+------+------+------+------+------+------+------+------+------+------+------+------| | |||||
* | | | | | | | | | | | | | | | |||||
* |------+------+------+------+------+------+------+------+------+------+------+------+------| | |||||
* | | | | | | | | | | | | | | |||||
* `------------------------------------------------------------------------------------------' | |||||
*/ | |||||
[3] = LAYOUT( | |||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | |||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | |||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | |||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | |||||
) | |||||
}; |
@ -0,0 +1 @@ | |||||
VIA_ENABLE = yes |
@ -0,0 +1,18 @@ | |||||
/* Copyright 2020 Jason Williams (Wilba) | |||||
* | |||||
* 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/>. | |||||
*/ | |||||
#ifndef RGB_BACKLIGHT_M50_A | |||||
#error RGB_BACKLIGHT_M50_A not defined | |||||
#endif |
@ -0,0 +1,41 @@ | |||||
/* Copyright 2020 Jason Williams (Wilba) | |||||
* | |||||
* 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 "quantum.h" | |||||
#include "keyboards/wilba_tech/wt_rgb_backlight_keycodes.h" | |||||
#include "via.h" | |||||
/* This is a shortcut to help you visually see your layout. | |||||
* | |||||
* The first section contains all of the arguments representing the physical | |||||
* layout of the board and position of the keys. | |||||
* | |||||
* The second converts the arguments into a two-dimensional array which | |||||
* represents the switch matrix. | |||||
*/ | |||||
#define LAYOUT( \ | |||||
K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, \ | |||||
K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, \ | |||||
K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, \ | |||||
K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C \ | |||||
) { \ | |||||
{ K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C }, \ | |||||
{ K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C }, \ | |||||
{ K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C }, \ | |||||
{ K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C } \ | |||||
} | |||||
@ -0,0 +1,19 @@ | |||||
# RAMA WORKS M50-A | |||||
![RAMA WORKS M50-A](https://images.squarespace-cdn.com/content/v1/563c788ae4b099120ae219e2/1586599330524-K5GC9PIVQD3IDSIIMEWA/ke17ZwdGBToddI8pDm48kPTrHXgsMrSIMwe6YW3w1AZ7gQa3H78H3Y0txjaiv_0fDoOvxcdMmMKkDsyUqMSsMWxHk725yiiHCCLfrh8O1z4YTzHvnKhyp6Da-NYroOW3ZGjoBKy3azqku80C789l0k5fwC0WRNFJBIXiBeNI5fKTrY37saURwPBw8fO2esROAxn-RKSrlQamlL27g22X2A/M50-A-SCENE-01.1868.JPG?format=1500w) | |||||
The RAMA WORKS M50-A is an ortholinear keyboard made by Rama Works. | |||||
* Keyboard Maintainer: [Wilba6582](https://github.com/Wilba6582) | |||||
* Hardware Supported: RAMA WORKS M50-A PCB | |||||
* Hardware Availability: [RAMA WORKS Store](https://ramaworks.store/) | |||||
Make example for this keyboard (after setting up your build environment): | |||||
make wilba_tech/rama_works_m50_a:default | |||||
Flashing example for this keyboard: | |||||
make wilba_tech/rama_works_m50_a: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). |
@ -0,0 +1,35 @@ | |||||
# MCU name | |||||
MCU = atmega32u4 | |||||
# Bootloader selection | |||||
BOOTLOADER = atmel-dfu | |||||
# Build Options | |||||
# change yes to no to disable | |||||
# | |||||
BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration | |||||
MOUSEKEY_ENABLE = no # Mouse keys | |||||
EXTRAKEY_ENABLE = yes # Audio control and System control | |||||
CONSOLE_ENABLE = no # Console for debug | |||||
COMMAND_ENABLE = no # Commands for debug and configuration | |||||
# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | |||||
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | |||||
# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | |||||
NKRO_ENABLE = yes # USB Nkey Rollover | |||||
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | |||||
RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | |||||
BLUETOOTH_ENABLE = no # Enable Bluetooth | |||||
AUDIO_ENABLE = no # Audio output | |||||
CIE1931_CURVE = yes | |||||
# Do not put the microcontroller into power saving mode | |||||
# when we get USB suspend event. We want it to keep updating | |||||
# backlight effects. | |||||
OPT_DEFS += -DNO_SUSPEND_POWER_DOWN | |||||
# project specific files | |||||
SRC = keyboards/wilba_tech/wt_main.c \ | |||||
keyboards/wilba_tech/wt_rgb_backlight.c \ | |||||
quantum/color.c \ | |||||
drivers/issi/is31fl3731.c \ | |||||
drivers/avr/i2c_master.c |
@ -0,0 +1,114 @@ | |||||
/* Copyright 2020 Jason Williams (Wilba) | |||||
* | |||||
* 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 0x5241 // "RA" | |||||
#define PRODUCT_ID 0x065B // 65-B | |||||
#define DEVICE_VER 0x0001 | |||||
#define MANUFACTURER RAMA WORKS | |||||
#define PRODUCT RAMA WORKS M65-B | |||||
/* key matrix size */ | |||||
#define MATRIX_ROWS 5 | |||||
#define MATRIX_COLS 15 | |||||
/* | |||||
* 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 { F0, F1, F4, F6, F7 } | |||||
#define MATRIX_COL_PINS { F5, D5, B1, B2, B3, D3, D2, C7, C6, B6, B5, B4, D7, D6, D4 } | |||||
#define UNUSED_PINS | |||||
/* COL2ROW, ROW2COL */ | |||||
#define DIODE_DIRECTION COL2ROW | |||||
/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | |||||
#define DEBOUNCE 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 | |||||
// IS31FL3731 driver | |||||
#define DRIVER_COUNT 2 | |||||
#define DRIVER_LED_TOTAL 72 | |||||
// Enable WT RGB backlight | |||||
#define RGB_BACKLIGHT_ENABLED 1 | |||||
// This conditionally compiles the backlight code for M65-B specifics | |||||
#define RGB_BACKLIGHT_M65_B | |||||
// enable/disable LEDs based on layout | |||||
#define RGB_BACKLIGHT_USE_SPLIT_BACKSPACE 1 | |||||
#define RGB_BACKLIGHT_USE_SPLIT_LEFT_SHIFT 0 | |||||
#define RGB_BACKLIGHT_USE_SPLIT_RIGHT_SHIFT 0 | |||||
#define RGB_BACKLIGHT_USE_7U_SPACEBAR 1 | |||||
#define RGB_BACKLIGHT_USE_ISO_ENTER 0 | |||||
#define RGB_BACKLIGHT_DISABLE_HHKB_BLOCKER_LEDS 0 | |||||
// disable backlight when USB suspended (PC sleep/hibernate/shutdown) | |||||
#define RGB_BACKLIGHT_DISABLE_WHEN_USB_SUSPENDED 0 | |||||
// disable backlight after timeout in minutes, 0 = no timeout | |||||
#define RGB_BACKLIGHT_DISABLE_AFTER_TIMEOUT 0 | |||||
// the default brightness | |||||
#define RGB_BACKLIGHT_BRIGHTNESS 255 | |||||
// the default effect (RGB test) | |||||
#define RGB_BACKLIGHT_EFFECT 255 | |||||
// the default effect speed (0-3) | |||||
#define RGB_BACKLIGHT_EFFECT_SPEED 0 | |||||
// the default color1 and color2 | |||||
#define RGB_BACKLIGHT_COLOR_1 { .h = 0, .s = 255 } | |||||
#define RGB_BACKLIGHT_COLOR_2 { .h = 127, .s = 255 } | |||||
// These define which keys in the matrix are alphas/mods | |||||
// Used for backlight effects so colors are different for | |||||
// alphas vs. mods | |||||
// Each value is for a row, bit 0 is column 0 | |||||
// Alpha=0 Mod=1 | |||||
#define RGB_BACKLIGHT_ALPHAS_MODS_ROW_0 0b0110000000000001 | |||||
#define RGB_BACKLIGHT_ALPHAS_MODS_ROW_1 0b0110000000000001 | |||||
#define RGB_BACKLIGHT_ALPHAS_MODS_ROW_2 0b0111000000000001 | |||||
#define RGB_BACKLIGHT_ALPHAS_MODS_ROW_3 0b0111000000000001 | |||||
#define RGB_BACKLIGHT_ALPHAS_MODS_ROW_4 0b0111100000000111 | |||||
#define RGB_BACKLIGHT_CAPS_LOCK_INDICATOR { .color = { .h = 0, .s = 0 }, .index = 255 } | |||||
#define RGB_BACKLIGHT_LAYER_1_INDICATOR { .color = { .h = 0, .s = 0 }, .index = 255 } | |||||
#define RGB_BACKLIGHT_LAYER_2_INDICATOR { .color = { .h = 0, .s = 0 }, .index = 255 } | |||||
#define RGB_BACKLIGHT_LAYER_3_INDICATOR { .color = { .h = 0, .s = 0 }, .index = 255 } | |||||
// Backlight config starts after VIA's EEPROM usage, | |||||
// dynamic keymaps start after this. | |||||
#define VIA_EEPROM_CUSTOM_CONFIG_SIZE 31 | |||||
// VIA lighting is handled by the keyboard-level code | |||||
#define VIA_CUSTOM_LIGHTING_ENABLE |
@ -0,0 +1,12 @@ | |||||
{ | |||||
"keyboard_name": "RAMA WORKS M65-B", | |||||
"url": "http://rama.works", | |||||
"maintainer": "Wilba", | |||||
"width": 16, | |||||
"height": 5, | |||||
"layouts": { | |||||
"LAYOUT_all": { | |||||
"layout": [{"label":"Esc", "x":0, "y":0}, {"label":"!", "x":1, "y":0}, {"label":"@", "x":2, "y":0}, {"label":"#", "x":3, "y":0}, {"label":"$", "x":4, "y":0}, {"label":"%", "x":5, "y":0}, {"label":"^", "x":6, "y":0}, {"label":"&", "x":7, "y":0}, {"label":"*", "x":8, "y":0}, {"label":"(", "x":9, "y":0}, {"label":")", "x":10, "y":0}, {"label":"_", "x":11, "y":0}, {"label":"+", "x":12, "y":0}, {"label":"PrtSc", "x":13, "y":0}, {"label":"Pause", "x":14, "y":0}, {"label":"Num Lock", "x":15, "y":0}, {"label":"Tab", "x":0, "y":1, "w":1.5}, {"label":"Q", "x":1.5, "y":1}, {"label":"W", "x":2.5, "y":1}, {"label":"E", "x":3.5, "y":1}, {"label":"R", "x":4.5, "y":1}, {"label":"T", "x":5.5, "y":1}, {"label":"Y", "x":6.5, "y":1}, {"label":"U", "x":7.5, "y":1}, {"label":"I", "x":8.5, "y":1}, {"label":"O", "x":9.5, "y":1}, {"label":"P", "x":10.5, "y":1}, {"label":"{", "x":11.5, "y":1}, {"label":"}", "x":12.5, "y":1}, {"label":"|", "x":13.5, "y":1, "w":1.5}, {"label":"Insert", "x":15, "y":1}, {"label":"Caps Lock", "x":0, "y":2, "w":1.75}, {"label":"A", "x":1.75, "y":2}, {"label":"S", "x":2.75, "y":2}, {"label":"D", "x":3.75, "y":2}, {"label":"F", "x":4.75, "y":2}, {"label":"G", "x":5.75, "y":2}, {"label":"H", "x":6.75, "y":2}, {"label":"J", "x":7.75, "y":2}, {"label":"K", "x":8.75, "y":2}, {"label":"L", "x":9.75, "y":2}, {"label":":", "x":10.75, "y":2}, {"label":"\"", "x":11.75, "y":2}, {"label":"Enter", "x":12.75, "y":2, "w":2.25}, {"label":"Home", "x":15, "y":2}, {"label":"Shift", "x":0, "y":3, "w":2.25}, {"label":"Z", "x":2.25, "y":3}, {"label":"X", "x":3.25, "y":3}, {"label":"C", "x":4.25, "y":3}, {"label":"V", "x":5.25, "y":3}, {"label":"B", "x":6.25, "y":3}, {"label":"N", "x":7.25, "y":3}, {"label":"M", "x":8.25, "y":3}, {"label":"<", "x":9.25, "y":3}, {"label":">", "x":10.25, "y":3}, {"label":"?", "x":11.25, "y":3}, {"label":"Shift", "x":12.25, "y":3, "w":1.75}, {"label":"\u2191", "x":14, "y":3}, {"label":"/", "x":15, "y":3}, {"label":"Ctrl", "x":0, "y":4, "w":1.5}, {"label":"Win", "x":1.5, "y":4}, {"label":"Alt", "x":2.5, "y":4, "w":1.5}, {"x":4, "y":4, "w":7}, {"label":"Ctrl", "x":11, "y":4, "w":1.5}, {"label":"\u2190", "x":13, "y":4}, {"label":"\u2193", "x":14, "y":4}, {"label":"\u2192", "x":15, "y":4}] | |||||
} | |||||
} | |||||
} |
@ -0,0 +1,38 @@ | |||||
#include QMK_KEYBOARD_H | |||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||||
// Default layer | |||||
[0] = LAYOUT_all( | |||||
KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSLS, KC_DEL, KC_HOME, | |||||
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSPC, KC_PGUP, | |||||
KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, KC_PGDN, | |||||
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_END, | |||||
MO(1), KC_LGUI, KC_LALT, KC_SPC, MO(2), KC_LEFT, KC_DOWN, KC_RGHT), | |||||
// Fn1 Layer | |||||
[1] = LAYOUT_all( | |||||
KC_GRV, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_INS, KC_DEL, KC_TRNS, | |||||
KC_CAPS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_PSCR, KC_SLCK, KC_PAUS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | |||||
KC_TRNS, KC_VOLD, KC_VOLU, KC_MUTE, KC_EJCT, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | |||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | |||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), | |||||
// Fn2 Layer | |||||
[2] = LAYOUT_all( | |||||
KC_TRNS, EF_DEC, EF_INC, H1_DEC, H1_INC, H2_DEC, H2_INC, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, BR_DEC, BR_INC, KC_TRNS, KC_TRNS, KC_TRNS, | |||||
KC_TRNS, KC_TRNS, KC_TRNS, S1_DEC, S1_INC, S2_DEC, S2_INC, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, ES_DEC, ES_INC, KC_TRNS, KC_TRNS, | |||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | |||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | |||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), | |||||
// Fn3 Layer | |||||
/* | |||||
[3] = LAYOUT_all( | |||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | |||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | |||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | |||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | |||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), | |||||
*/ | |||||
}; |
@ -0,0 +1,36 @@ | |||||
#include QMK_KEYBOARD_H | |||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||||
// Default layer | |||||
[0] = LAYOUT_all( | |||||
KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSLS, KC_DEL, KC_HOME, | |||||
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSPC, KC_PGUP, | |||||
KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, KC_PGDN, | |||||
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_END, | |||||
MO(1), KC_LGUI, KC_LALT, KC_SPC, MO(2), KC_LEFT, KC_DOWN, KC_RGHT), | |||||
// Fn1 Layer | |||||
[1] = LAYOUT_all( | |||||
KC_GRV, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_INS, KC_DEL, KC_TRNS, | |||||
KC_CAPS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_PSCR, KC_SLCK, KC_PAUS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | |||||
KC_TRNS, KC_VOLD, KC_VOLU, KC_MUTE, KC_EJCT, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | |||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | |||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), | |||||
// Fn2 Layer | |||||
[2] = LAYOUT_all( | |||||
KC_TRNS, EF_DEC, EF_INC, H1_DEC, H1_INC, H2_DEC, H2_INC, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, BR_DEC, BR_INC, KC_TRNS, KC_TRNS, KC_TRNS, | |||||
KC_TRNS, KC_TRNS, KC_TRNS, S1_DEC, S1_INC, S2_DEC, S2_INC, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, ES_DEC, ES_INC, KC_TRNS, KC_TRNS, | |||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | |||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | |||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), | |||||
// Fn3 Layer | |||||
[3] = LAYOUT_all( | |||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | |||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | |||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | |||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | |||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), | |||||
}; |
@ -0,0 +1 @@ | |||||
VIA_ENABLE = yes |
@ -0,0 +1,18 @@ | |||||
/* Copyright 2020 Jason Williams (Wilba) | |||||
* | |||||
* 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/>. | |||||
*/ | |||||
#ifndef RGB_BACKLIGHT_M65_B | |||||
#error RGB_BACKLIGHT_M65_B not defined | |||||
#endif |
@ -0,0 +1,45 @@ | |||||
/* Copyright 2020 Jason Williams (Wilba) | |||||
* | |||||
* 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 "quantum.h" | |||||
#include "keyboards/wilba_tech/wt_rgb_backlight_keycodes.h" | |||||
#include "via.h" | |||||
#define ____ KC_NO | |||||
/* This is a shortcut to help you visually see your layout. | |||||
* | |||||
* The first section contains all of the arguments representing the physical | |||||
* layout of the board and position of the keys. | |||||
* | |||||
* The second converts the arguments into a two-dimensional array which | |||||
* represents the switch matrix. | |||||
*/ | |||||
#define LAYOUT_all( \ | |||||
K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K213, K014, \ | |||||
K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114, \ | |||||
K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K214, \ | |||||
K300, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K313, K314, \ | |||||
K400, K401, K402, K407, K411, K412, K413, K414 \ | |||||
) { \ | |||||
{ K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K014 }, \ | |||||
{ K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114 }, \ | |||||
{ K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, K214 }, \ | |||||
{ K300, ____, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K313, K314 }, \ | |||||
{ K400, K401, K402, ____, ____, ____, ____, K407, ____, ____, ____, K411, K412, K413, K414 } \ | |||||
} |
@ -0,0 +1,19 @@ | |||||
# RAMA WORKS M65-B | |||||
![RAMA WORKS M65-B](https://images.squarespace-cdn.com/content/v1/563c788ae4b099120ae219e2/1572021195246-4QHS1WZTE862N635BVR2/ke17ZwdGBToddI8pDm48kAgzYejSbWGRoJP4yk7IdNQUqsxRUqqbr1mOJYKfIPR7LoDQ9mXPOjoJoqy81S2I8N_N4V1vUb5AoIIIbLZhVYy7Mythp_T-mtop-vrsUOmeInPi9iDjx9w8K4ZfjXt2dtCOkMDEaPiGoIoGazr_ji7tWlVp5kgqCHrK9bIsxYYSbSexTd1-frD7527z4SM9QQ/RW-M65-B-WIDE-HERO-A.1710.JPG?format=1500w) | |||||
The RAMA WORKS M65-B is a 65% keyboard made by Rama Works. | |||||
* Keyboard Maintainer: [Wilba6582](https://github.com/Wilba6582) | |||||
* Hardware Supported: RAMA WORKS M65-B PCB | |||||
* Hardware Availability: [RAMA WORKS Store](https://ramaworks.store/) | |||||
Make example for this keyboard (after setting up your build environment): | |||||
make wilba_tech/rama_works_m65_b:default | |||||
Flashing example for this keyboard: | |||||
make wilba_tech/rama_works_m65_b: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). |
@ -0,0 +1,35 @@ | |||||
# MCU name | |||||
MCU = atmega32u4 | |||||
# Bootloader selection | |||||
BOOTLOADER = atmel-dfu | |||||
# Build Options | |||||
# change yes to no to disable | |||||
# | |||||
BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration | |||||
MOUSEKEY_ENABLE = no # Mouse keys | |||||
EXTRAKEY_ENABLE = yes # Audio control and System control | |||||
CONSOLE_ENABLE = no # Console for debug | |||||
COMMAND_ENABLE = no # Commands for debug and configuration | |||||
# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | |||||
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | |||||
# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | |||||
NKRO_ENABLE = yes # USB Nkey Rollover | |||||
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | |||||
RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | |||||
BLUETOOTH_ENABLE = no # Enable Bluetooth | |||||
AUDIO_ENABLE = no # Audio output | |||||
CIE1931_CURVE = yes | |||||
# Do not put the microcontroller into power saving mode | |||||
# when we get USB suspend event. We want it to keep updating | |||||
# backlight effects. | |||||
OPT_DEFS += -DNO_SUSPEND_POWER_DOWN | |||||
# project specific files | |||||
SRC = keyboards/wilba_tech/wt_main.c \ | |||||
keyboards/wilba_tech/wt_rgb_backlight.c \ | |||||
quantum/color.c \ | |||||
drivers/issi/is31fl3731.c \ | |||||
drivers/avr/i2c_master.c |
@ -0,0 +1,114 @@ | |||||
/* Copyright 2020 Jason Williams (Wilba) | |||||
* | |||||
* 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 0x5241 // "RA" | |||||
#define PRODUCT_ID 0x165B // 65-BX | |||||
#define DEVICE_VER 0x0001 | |||||
#define MANUFACTURER RAMA WORKS | |||||
#define PRODUCT RAMA WORKS M65-BX | |||||
/* key matrix size */ | |||||
#define MATRIX_ROWS 5 | |||||
#define MATRIX_COLS 15 | |||||
/* | |||||
* 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 { F0, F1, F4, F6, F7 } | |||||
#define MATRIX_COL_PINS { F5, D5, B1, B2, B3, D3, D2, C7, C6, B6, B5, B4, D7, D6, D4 } | |||||
#define UNUSED_PINS | |||||
/* COL2ROW, ROW2COL */ | |||||
#define DIODE_DIRECTION COL2ROW | |||||
/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | |||||
#define DEBOUNCE 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 | |||||
// IS31FL3731 driver | |||||
#define DRIVER_COUNT 2 | |||||
#define DRIVER_LED_TOTAL 72 | |||||
// Enable WT RGB backlight | |||||
#define RGB_BACKLIGHT_ENABLED 1 | |||||
// This conditionally compiles the backlight code for M65-BX specifics | |||||
#define RGB_BACKLIGHT_M65_BX | |||||
// enable/disable LEDs based on layout | |||||
#define RGB_BACKLIGHT_USE_SPLIT_BACKSPACE 1 | |||||
#define RGB_BACKLIGHT_USE_SPLIT_LEFT_SHIFT 0 | |||||
#define RGB_BACKLIGHT_USE_SPLIT_RIGHT_SHIFT 1 | |||||
#define RGB_BACKLIGHT_USE_7U_SPACEBAR 1 | |||||
#define RGB_BACKLIGHT_USE_ISO_ENTER 0 | |||||
#define RGB_BACKLIGHT_DISABLE_HHKB_BLOCKER_LEDS 0 | |||||
// disable backlight when USB suspended (PC sleep/hibernate/shutdown) | |||||
#define RGB_BACKLIGHT_DISABLE_WHEN_USB_SUSPENDED 0 | |||||
// disable backlight after timeout in minutes, 0 = no timeout | |||||
#define RGB_BACKLIGHT_DISABLE_AFTER_TIMEOUT 0 | |||||
// the default brightness | |||||
#define RGB_BACKLIGHT_BRIGHTNESS 255 | |||||
// the default effect (RGB test) | |||||
#define RGB_BACKLIGHT_EFFECT 255 | |||||
// the default effect speed (0-3) | |||||
#define RGB_BACKLIGHT_EFFECT_SPEED 0 | |||||
// the default color1 and color2 | |||||
#define RGB_BACKLIGHT_COLOR_1 { .h = 0, .s = 255 } | |||||
#define RGB_BACKLIGHT_COLOR_2 { .h = 127, .s = 255 } | |||||
// These define which keys in the matrix are alphas/mods | |||||
// Used for backlight effects so colors are different for | |||||
// alphas vs. mods | |||||
// Each value is for a row, bit 0 is column 0 | |||||
// Alpha=0 Mod=1 | |||||
#define RGB_BACKLIGHT_ALPHAS_MODS_ROW_0 0b0110000000000001 | |||||
#define RGB_BACKLIGHT_ALPHAS_MODS_ROW_1 0b0110000000000001 | |||||
#define RGB_BACKLIGHT_ALPHAS_MODS_ROW_2 0b0111000000000001 | |||||
#define RGB_BACKLIGHT_ALPHAS_MODS_ROW_3 0b0111000000000001 | |||||
#define RGB_BACKLIGHT_ALPHAS_MODS_ROW_4 0b0111100000000111 | |||||
#define RGB_BACKLIGHT_CAPS_LOCK_INDICATOR { .color = { .h = 0, .s = 0 }, .index = 255 } | |||||
#define RGB_BACKLIGHT_LAYER_1_INDICATOR { .color = { .h = 0, .s = 0 }, .index = 255 } | |||||
#define RGB_BACKLIGHT_LAYER_2_INDICATOR { .color = { .h = 0, .s = 0 }, .index = 255 } | |||||
#define RGB_BACKLIGHT_LAYER_3_INDICATOR { .color = { .h = 0, .s = 0 }, .index = 255 } | |||||
// Backlight config starts after VIA's EEPROM usage, | |||||
// dynamic keymaps start after this. | |||||
#define VIA_EEPROM_CUSTOM_CONFIG_SIZE 31 | |||||
// VIA lighting is handled by the keyboard-level code | |||||
#define VIA_CUSTOM_LIGHTING_ENABLE |
@ -0,0 +1,12 @@ | |||||
{ | |||||
"keyboard_name": "RAMA WORKS M65-BX", | |||||
"url": "http://rama.works", | |||||
"maintainer": "Wilba", | |||||
"width": 16, | |||||
"height": 5, | |||||
"layouts": { | |||||
"LAYOUT_all": { | |||||
"layout": [{"label":"Esc", "x":0, "y":0}, {"label":"!", "x":1, "y":0}, {"label":"@", "x":2, "y":0}, {"label":"#", "x":3, "y":0}, {"label":"$", "x":4, "y":0}, {"label":"%", "x":5, "y":0}, {"label":"^", "x":6, "y":0}, {"label":"&", "x":7, "y":0}, {"label":"*", "x":8, "y":0}, {"label":"(", "x":9, "y":0}, {"label":")", "x":10, "y":0}, {"label":"_", "x":11, "y":0}, {"label":"+", "x":12, "y":0}, {"label":"PrtSc", "x":13, "y":0}, {"label":"Pause", "x":14, "y":0}, {"label":"Num Lock", "x":15, "y":0}, {"label":"Tab", "x":0, "y":1, "w":1.5}, {"label":"Q", "x":1.5, "y":1}, {"label":"W", "x":2.5, "y":1}, {"label":"E", "x":3.5, "y":1}, {"label":"R", "x":4.5, "y":1}, {"label":"T", "x":5.5, "y":1}, {"label":"Y", "x":6.5, "y":1}, {"label":"U", "x":7.5, "y":1}, {"label":"I", "x":8.5, "y":1}, {"label":"O", "x":9.5, "y":1}, {"label":"P", "x":10.5, "y":1}, {"label":"{", "x":11.5, "y":1}, {"label":"}", "x":12.5, "y":1}, {"label":"|", "x":13.5, "y":1, "w":1.5}, {"label":"Insert", "x":15, "y":1}, {"label":"Caps Lock", "x":0, "y":2, "w":1.75}, {"label":"A", "x":1.75, "y":2}, {"label":"S", "x":2.75, "y":2}, {"label":"D", "x":3.75, "y":2}, {"label":"F", "x":4.75, "y":2}, {"label":"G", "x":5.75, "y":2}, {"label":"H", "x":6.75, "y":2}, {"label":"J", "x":7.75, "y":2}, {"label":"K", "x":8.75, "y":2}, {"label":"L", "x":9.75, "y":2}, {"label":":", "x":10.75, "y":2}, {"label":"\"", "x":11.75, "y":2}, {"label":"Enter", "x":12.75, "y":2, "w":2.25}, {"label":"Home", "x":15, "y":2}, {"label":"Shift", "x":0, "y":3, "w":2.25}, {"label":"Z", "x":2.25, "y":3}, {"label":"X", "x":3.25, "y":3}, {"label":"C", "x":4.25, "y":3}, {"label":"V", "x":5.25, "y":3}, {"label":"B", "x":6.25, "y":3}, {"label":"N", "x":7.25, "y":3}, {"label":"M", "x":8.25, "y":3}, {"label":"<", "x":9.25, "y":3}, {"label":">", "x":10.25, "y":3}, {"label":"?", "x":11.25, "y":3}, {"label":"Shift", "x":12.25, "y":3, "w":1.75}, {"label":"\u2191", "x":14, "y":3}, {"label":"/", "x":15, "y":3}, {"label":"Ctrl", "x":0, "y":4, "w":1.5}, {"label":"Win", "x":1.5, "y":4}, {"label":"Alt", "x":2.5, "y":4, "w":1.5}, {"x":4, "y":4, "w":7}, {"label":"Ctrl", "x":11, "y":4, "w":1.5}, {"label":"\u2190", "x":13, "y":4}, {"label":"\u2193", "x":14, "y":4}, {"label":"\u2192", "x":15, "y":4}] | |||||
} | |||||
} | |||||
} |
@ -0,0 +1,38 @@ | |||||
#include QMK_KEYBOARD_H | |||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||||
// Default layer | |||||
[0] = LAYOUT_all( | |||||
KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSLS, KC_DEL, KC_HOME, | |||||
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSPC, KC_PGUP, | |||||
KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, KC_PGDN, | |||||
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_END, | |||||
MO(1), KC_LGUI, KC_LALT, KC_SPC, MO(2), KC_LEFT, KC_DOWN, KC_RGHT), | |||||
// Fn1 Layer | |||||
[1] = LAYOUT_all( | |||||
KC_GRV, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_INS, KC_DEL, KC_TRNS, | |||||
KC_CAPS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_PSCR, KC_SLCK, KC_PAUS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | |||||
KC_TRNS, KC_VOLD, KC_VOLU, KC_MUTE, KC_EJCT, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | |||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | |||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), | |||||
// Fn2 Layer | |||||
[2] = LAYOUT_all( | |||||
KC_TRNS, EF_DEC, EF_INC, H1_DEC, H1_INC, H2_DEC, H2_INC, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, BR_DEC, BR_INC, KC_TRNS, KC_TRNS, KC_TRNS, | |||||
KC_TRNS, KC_TRNS, KC_TRNS, S1_DEC, S1_INC, S2_DEC, S2_INC, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, ES_DEC, ES_INC, KC_TRNS, KC_TRNS, | |||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | |||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | |||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), | |||||
// Fn3 Layer | |||||
/* | |||||
[3] = LAYOUT_all( | |||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | |||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | |||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | |||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | |||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), | |||||
*/ | |||||
}; |
@ -0,0 +1,36 @@ | |||||
#include QMK_KEYBOARD_H | |||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||||
// Default layer | |||||
[0] = LAYOUT_all( | |||||
KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSLS, KC_DEL, KC_HOME, | |||||
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSPC, KC_PGUP, | |||||
KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, KC_PGDN, | |||||
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_END, | |||||
MO(1), KC_LGUI, KC_LALT, KC_SPC, MO(2), KC_LEFT, KC_DOWN, KC_RGHT), | |||||
// Fn1 Layer | |||||
[1] = LAYOUT_all( | |||||
KC_GRV, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_INS, KC_DEL, KC_TRNS, | |||||
KC_CAPS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_PSCR, KC_SLCK, KC_PAUS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | |||||
KC_TRNS, KC_VOLD, KC_VOLU, KC_MUTE, KC_EJCT, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | |||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | |||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), | |||||
// Fn2 Layer | |||||
[2] = LAYOUT_all( | |||||
KC_TRNS, EF_DEC, EF_INC, H1_DEC, H1_INC, H2_DEC, H2_INC, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, BR_DEC, BR_INC, KC_TRNS, KC_TRNS, KC_TRNS, | |||||
KC_TRNS, KC_TRNS, KC_TRNS, S1_DEC, S1_INC, S2_DEC, S2_INC, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, ES_DEC, ES_INC, KC_TRNS, KC_TRNS, | |||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | |||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | |||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), | |||||
// Fn3 Layer | |||||
[3] = LAYOUT_all( | |||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | |||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | |||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | |||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | |||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), | |||||
}; |
@ -0,0 +1 @@ | |||||
VIA_ENABLE = yes |
@ -0,0 +1,18 @@ | |||||
/* Copyright 2020 Jason Williams (Wilba) | |||||
* | |||||
* 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/>. | |||||
*/ | |||||
#ifndef RGB_BACKLIGHT_M65_BX | |||||
#error RGB_BACKLIGHT_M65_BX not defined | |||||
#endif |
@ -0,0 +1,45 @@ | |||||
/* Copyright 2020 Jason Williams (Wilba) | |||||
* | |||||
* 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 "quantum.h" | |||||
#include "keyboards/wilba_tech/wt_rgb_backlight_keycodes.h" | |||||
#include "via.h" | |||||
#define ____ KC_NO | |||||
/* This is a shortcut to help you visually see your layout. | |||||
* | |||||
* The first section contains all of the arguments representing the physical | |||||
* layout of the board and position of the keys. | |||||
* | |||||
* The second converts the arguments into a two-dimensional array which | |||||
* represents the switch matrix. | |||||
*/ | |||||
#define LAYOUT_all( \ | |||||
K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K213, K014, \ | |||||
K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114, \ | |||||
K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K214, \ | |||||
K300, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K313, K314, \ | |||||
K400, K401, K402, K407, K411, K412, K413, K414 \ | |||||
) { \ | |||||
{ K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K014 }, \ | |||||
{ K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114 }, \ | |||||
{ K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, K214 }, \ | |||||
{ K300, ____, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K313, K314 }, \ | |||||
{ K400, K401, K402, ____, ____, ____, ____, K407, ____, ____, ____, K411, K412, K413, K414 } \ | |||||
} |
@ -0,0 +1,19 @@ | |||||
# RAMA WORKS M65-BX | |||||
![RAMA WORKS M65-B](https://images.squarespace-cdn.com/content/v1/563c788ae4b099120ae219e2/1572021195246-4QHS1WZTE862N635BVR2/ke17ZwdGBToddI8pDm48kAgzYejSbWGRoJP4yk7IdNQUqsxRUqqbr1mOJYKfIPR7LoDQ9mXPOjoJoqy81S2I8N_N4V1vUb5AoIIIbLZhVYy7Mythp_T-mtop-vrsUOmeInPi9iDjx9w8K4ZfjXt2dtCOkMDEaPiGoIoGazr_ji7tWlVp5kgqCHrK9bIsxYYSbSexTd1-frD7527z4SM9QQ/RW-M65-B-WIDE-HERO-A.1710.JPG?format=1500w) | |||||
The RAMA WORKS M65-B is a 65% keyboard made by Rama Works. The RAMA WORKS M65-BX PCB is the solderable variant with layout options. | |||||
* Keyboard Maintainer: [Wilba6582](https://github.com/Wilba6582) | |||||
* Hardware Supported: RAMA WORKS M65-BX PCB | |||||
* Hardware Availability: [RAMA WORKS Store](https://ramaworks.store/) | |||||
Make example for this keyboard (after setting up your build environment): | |||||
make wilba_tech/rama_works_m65_bx:default | |||||
Flashing example for this keyboard: | |||||
make wilba_tech/rama_works_m65_bx: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). |
@ -0,0 +1,35 @@ | |||||
# MCU name | |||||
MCU = atmega32u4 | |||||
# Bootloader selection | |||||
BOOTLOADER = atmel-dfu | |||||
# Build Options | |||||
# change yes to no to disable | |||||
# | |||||
BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration | |||||
MOUSEKEY_ENABLE = no # Mouse keys | |||||
EXTRAKEY_ENABLE = yes # Audio control and System control | |||||
CONSOLE_ENABLE = no # Console for debug | |||||
COMMAND_ENABLE = no # Commands for debug and configuration | |||||
# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | |||||
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | |||||
# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | |||||
NKRO_ENABLE = yes # USB Nkey Rollover | |||||
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | |||||
RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | |||||
BLUETOOTH_ENABLE = no # Enable Bluetooth | |||||
AUDIO_ENABLE = no # Audio output | |||||
CIE1931_CURVE = yes | |||||
# Do not put the microcontroller into power saving mode | |||||
# when we get USB suspend event. We want it to keep updating | |||||
# backlight effects. | |||||
OPT_DEFS += -DNO_SUSPEND_POWER_DOWN | |||||
# project specific files | |||||
SRC = keyboards/wilba_tech/wt_main.c \ | |||||
keyboards/wilba_tech/wt_rgb_backlight.c \ | |||||
quantum/color.c \ | |||||
drivers/issi/is31fl3731.c \ | |||||
drivers/avr/i2c_master.c |