diff options
Diffstat (limited to 'keyboards/boardsource/the_mark')
-rw-r--r-- | keyboards/boardsource/the_mark/config.h | 55 | ||||
-rw-r--r-- | keyboards/boardsource/the_mark/info.json | 460 | ||||
-rw-r--r-- | keyboards/boardsource/the_mark/keymaps/stanrc85/keymap.c | 98 |
3 files changed, 613 insertions, 0 deletions
diff --git a/keyboards/boardsource/the_mark/config.h b/keyboards/boardsource/the_mark/config.h new file mode 100644 index 0000000000..6d9c9642de --- /dev/null +++ b/keyboards/boardsource/the_mark/config.h @@ -0,0 +1,55 @@ +/* +Copyright 2022 Boardsource + +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 +#ifdef RGB_MATRIX_ENABLE +# define RGB_MATRIX_LED_COUNT 24 +# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 200 +# define RGB_DISABLE_WHEN_USB_SUSPENDED +# define ENABLE_RGB_MATRIX_GRADIENT_UP_DOWN +# define ENABLE_RGB_MATRIX_GRADIENT_LEFT_RIGHT +# define ENABLE_RGB_MATRIX_BREATHING +# define ENABLE_RGB_MATRIX_BAND_SAT +# define ENABLE_RGB_MATRIX_BAND_PINWHEEL_SAT +# define ENABLE_RGB_MATRIX_BAND_SPIRAL_SAT +# define ENABLE_RGB_MATRIX_CYCLE_ALL +# define ENABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT +# define ENABLE_RGB_MATRIX_CYCLE_UP_DOWN +# define ENABLE_RGB_MATRIX_RAINBOW_MOVING_CHEVRON +# define ENABLE_RGB_MATRIX_CYCLE_PINWHEEL +# define ENABLE_RGB_MATRIX_CYCLE_SPIRAL +# define ENABLE_RGB_MATRIX_DUAL_BEACON +# define ENABLE_RGB_MATRIX_RAINBOW_BEACON +# define ENABLE_RGB_MATRIX_RAINBOW_PINWHEELS +# define ENABLE_RGB_MATRIX_RAINDROPS +# define ENABLE_RGB_MATRIX_JELLYBEAN_RAINDROPS +# define ENABLE_RGB_MATRIX_HUE_BREATHING +# define ENABLE_RGB_MATRIX_HUE_PENDULUM +# define ENABLE_RGB_MATRIX_HUE_WAVE +# define ENABLE_RGB_MATRIX_PIXEL_RAIN +# define ENABLE_RGB_MATRIX_PIXEL_FLOW +# define ENABLE_RGB_MATRIX_PIXEL_FRACTAL +# define ENABLE_RGB_MATRIX_TYPING_HEATMAP +# define ENABLE_RGB_MATRIX_DIGITAL_RAIN +# define ENABLE_RGB_MATRIX_SOLID_REACTIVE +# define ENABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE +# define ENABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS +# define ENABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS +# define ENABLE_RGB_MATRIX_SPLASH +# define ENABLE_RGB_MATRIX_MULTISPLASH +# define ENABLE_RGB_MATRIX_SOLID_SPLASH +#endif diff --git a/keyboards/boardsource/the_mark/info.json b/keyboards/boardsource/the_mark/info.json new file mode 100644 index 0000000000..46f10affcd --- /dev/null +++ b/keyboards/boardsource/the_mark/info.json @@ -0,0 +1,460 @@ +{ + "manufacturer": "Boardsource", + "keyboard_name": "The Mark65", + "maintainer": "daysgobye, boardsource, waffle87", + "bootloader": "atmel-dfu", + "diode_direction": "COL2ROW", + "features": { + "bootmagic": true, + "extrakey": true, + "mousekey": true, + "rgblight": true, + "rgb_matrix": false + }, + "matrix_pins": { + "cols": ["B5", "B6", "B7", "F5", "C7", "D0", "D1", "D2", "D3", "D4", "D5", "D6", "D7", "F0", "F1", "F4"], + "rows": ["B0", "B1", "B2", "B3", "B4"] + }, + "processor": "atmega32u4", + "url": "https://boardsource.xyz/projects/5f46409bdce98063626dcb08", + "usb": { + "device_version": "1.0.0", + "pid": "0x0001", + "vid": "0x4273" + }, + "rgblight": { + "led_count": 24, + "pin": "C6", + "sleep": true, + "max_brightness": 200, + "animations": { + "alternating": true, + "breathing": true, + "christmas": true, + "knight": true, + "rainbow_mood": true, + "rainbow_swirl": true, + "rgb_test": true, + "snake": true, + "static_gradient": true, + "twinkle": true + } + }, + "rgb_matrix": { + "layout": [ + { "flags": 2, "x": 224, "y": 42}, + { "flags": 2, "x": 224, "y": 21}, + { "flags": 2, "x": 209, "y": 21}, + { "flags": 2, "x": 179, "y": 21}, + { "flags": 2, "x": 164, "y": 21}, + { "flags": 2, "x": 134, "y": 21}, + { "flags": 2, "x": 119, "y": 21}, + { "flags": 2, "x": 89, "y": 21}, + { "flags": 2, "x": 74, "y": 21}, + { "flags": 2, "x": 45, "y": 21}, + { "flags": 2, "x": 30, "y": 21}, + { "flags": 2, "x": 30, "y": 42}, + { "flags": 2, "x": 30, "y": 64}, + { "flags": 2, "x": 30, "y": 85}, + { "flags": 2, "x": 45, "y": 85}, + { "flags": 2, "x": 74, "y": 85}, + { "flags": 2, "x": 89, "y": 85}, + { "flags": 2, "x": 119, "y": 85}, + { "flags": 2, "x": 134, "y": 85}, + { "flags": 2, "x": 164, "y": 85}, + { "flags": 2, "x": 179, "y": 85}, + { "flags": 2, "x": 209, "y": 85}, + { "flags": 2, "x": 224, "y": 85}, + { "flags": 2, "x": 224, "y": 64} + ] + }, + "layouts": { + "LAYOUT_all": { + "layout": [ + { "label":"Esc", "matrix": [0, 0], "x": 0, "y": 0 }, + { "label":"1!", "matrix": [0, 1], "x": 1, "y": 0 }, + { "label":"2@", "matrix": [0, 2], "x": 2, "y": 0 }, + { "label":"3#", "matrix": [0, 3], "x": 3, "y": 0 }, + { "label":"4$", "matrix": [0, 4], "x": 4, "y": 0 }, + { "label":"5%", "matrix": [0, 5], "x": 5, "y": 0 }, + { "label":"6^", "matrix": [0, 6], "x": 6, "y": 0 }, + { "label":"7&", "matrix": [0, 7], "x": 7, "y": 0 }, + { "label":"8*", "matrix": [0, 8], "x": 8, "y": 0 }, + { "label":"9(", "matrix": [0, 9], "x": 9, "y": 0 }, + { "label":"0)", "matrix": [0, 10], "x": 10, "y": 0 }, + { "label":"-_", "matrix": [0, 11], "x": 11, "y": 0 }, + { "label":"=+", "matrix": [0, 12], "x": 12, "y": 0 }, + { "label":"Backspace", "matrix": [0, 13], "x": 13, "y": 0 }, + { "label":"Backspace", "matrix": [0, 14], "x": 14, "y": 0 }, + { "label":"RGB Toggle", "matrix": [0, 15], "x": 15.25, "y": 0 }, + + { "label":"Tab", "matrix": [1, 0], "x": 0, "y": 1, "w": 1.5 }, + { "label":"Q", "matrix": [1, 2], "x": 1.5, "y": 1 }, + { "label":"W", "matrix": [1, 3], "x": 2.5, "y": 1 }, + { "label":"E", "matrix": [1, 4], "x": 3.5, "y": 1 }, + { "label":"R", "matrix": [1, 5], "x": 4.5, "y": 1 }, + { "label":"T", "matrix": [1, 6], "x": 5.5, "y": 1 }, + { "label":"Y", "matrix": [1, 7], "x": 6.5, "y": 1 }, + { "label":"U", "matrix": [1, 8], "x": 7.5, "y": 1 }, + { "label":"I", "matrix": [1, 9], "x": 8.5, "y": 1 }, + { "label":"O", "matrix": [1, 10], "x": 9.5, "y": 1 }, + { "label":"P", "matrix": [1, 11], "x": 10.5, "y": 1 }, + { "label":"[{", "matrix": [1, 12], "x": 11.5, "y": 1 }, + { "label":"]}", "matrix": [1, 13], "x": 12.5, "y": 1 }, + { "label":"\\|", "matrix": [1, 14], "x": 13.5, "y": 1, "w": 1.5 }, + { "label":"RGB Mode", "matrix": [1, 15], "x": 15.25, "y": 1 }, + + { "label":"Caps Lock", "matrix": [2, 0], "x": 0, "y": 2, "w": 1.75 }, + { "label":"A", "matrix": [2, 2], "x": 1.75, "y": 2 }, + { "label":"S", "matrix": [2, 3], "x": 2.75, "y": 2 }, + { "label":"D", "matrix": [2, 4], "x": 3.75, "y": 2 }, + { "label":"F", "matrix": [2, 5], "x": 4.75, "y": 2 }, + { "label":"G", "matrix": [2, 6], "x": 5.75, "y": 2 }, + { "label":"H", "matrix": [2, 7], "x": 6.75, "y": 2 }, + { "label":"J", "matrix": [2, 8], "x": 7.75, "y": 2 }, + { "label":"K", "matrix": [2, 9], "x": 8.75, "y": 2 }, + { "label":"L", "matrix": [2, 10], "x": 9.75, "y": 2 }, + { "label":";:", "matrix": [2, 11], "x": 10.75, "y": 2 }, + { "label":"'\"", "matrix": [2, 12], "x": 11.75, "y": 2 }, + { "label":"Enter", "matrix": [2, 13], "x": 12.75, "y": 2, "w": 2.25 }, + { "label":"Fn", "matrix": [2, 15], "x": 15.25, "y": 2 }, + + { "label":"Shift", "matrix": [3, 1], "x": 0, "y": 3, "w": 1.25 }, + { "label":"\\|", "matrix": [3, 0], "x": 1.25, "y": 3 }, + { "label":"Z", "matrix": [3, 2], "x": 2.25, "y": 3 }, + { "label":"X", "matrix": [3, 3], "x": 3.25, "y": 3 }, + { "label":"C", "matrix": [3, 4], "x": 4.25, "y": 3 }, + { "label":"V", "matrix": [3, 5], "x": 5.25, "y": 3 }, + { "label":"B", "matrix": [3, 6], "x": 6.25, "y": 3 }, + { "label":"N", "matrix": [3, 7], "x": 7.25, "y": 3 }, + { "label":"M", "matrix": [3, 8], "x": 8.25, "y": 3 }, + { "label":",<", "matrix": [3, 9], "x": 9.25, "y": 3 }, + { "label":".>", "matrix": [3, 10], "x": 10.25, "y": 3 }, + { "label":"/?", "matrix": [3, 11], "x": 11.25, "y": 3 }, + { "label":"Shift", "matrix": [3, 13], "x": 12.25, "y": 3, "w": 1.75 }, + { "label":"\u2191", "matrix": [3, 14], "x": 14.25, "y": 3.25 }, + + { "label":"Ctrl", "matrix": [4, 0], "x": 0, "y": 4, "w": 1.25 }, + { "label":"GUI", "matrix": [4, 1], "x": 1.25, "y": 4, "w": 1.25 }, + { "label":"Alt", "matrix": [4, 3], "x": 2.5, "y": 4, "w": 1.25 }, + { "label":"Space", "matrix": [4, 4], "x": 3.75, "y": 4, "w": 2.25 }, + { "label":"Space", "matrix": [4, 6], "x": 6, "y": 4, "w": 1.25 }, + { "label":"Space", "matrix": [4, 8], "x": 7.25, "y": 4, "w": 2.75 }, + { "label":"Alt", "matrix": [4, 10], "x": 10, "y": 4 }, + { "label":"Ctrl", "matrix": [4, 11], "x": 11, "y": 4 }, + { "label":"`~", "matrix": [4, 12], "x": 12, "y": 4 }, + { "label":"\u2190", "matrix": [4, 13], "x": 13.25, "y": 4.25 }, + { "label":"\u2193", "matrix": [4, 14], "x": 14.25, "y": 4.25 }, + { "label":"\u2192", "matrix": [4, 15], "x": 15.25, "y": 4.25 } + ] + }, + "LAYOUT_ansi": { + "layout": [ + { "label":"Esc", "matrix": [0, 0], "x": 0, "y": 0 }, + { "label":"1!", "matrix": [0, 1], "x": 1, "y": 0 }, + { "label":"2@", "matrix": [0, 2], "x": 2, "y": 0 }, + { "label":"3#", "matrix": [0, 3], "x": 3, "y": 0 }, + { "label":"4$", "matrix": [0, 4], "x": 4, "y": 0 }, + { "label":"5%", "matrix": [0, 5], "x": 5, "y": 0 }, + { "label":"6^", "matrix": [0, 6], "x": 6, "y": 0 }, + { "label":"7&", "matrix": [0, 7], "x": 7, "y": 0 }, + { "label":"8*", "matrix": [0, 8], "x": 8, "y": 0 }, + { "label":"9(", "matrix": [0, 9], "x": 9, "y": 0 }, + { "label":"0)", "matrix": [0, 10], "x": 10, "y": 0 }, + { "label":"-_", "matrix": [0, 11], "x": 11, "y": 0 }, + { "label":"=+", "matrix": [0, 12], "x": 12, "y": 0 }, + { "label":"Backspace", "matrix": [0, 13], "x": 13, "y": 0, "w": 2 }, + { "label":"RGB Toggle", "matrix": [0, 15], "x": 15.25, "y": 0 }, + + { "label":"Tab", "matrix": [1, 0], "x": 0, "y": 1, "w": 1.5 }, + { "label":"Q", "matrix": [1, 2], "x": 1.5, "y": 1 }, + { "label":"W", "matrix": [1, 3], "x": 2.5, "y": 1 }, + { "label":"E", "matrix": [1, 4], "x": 3.5, "y": 1 }, + { "label":"R", "matrix": [1, 5], "x": 4.5, "y": 1 }, + { "label":"T", "matrix": [1, 6], "x": 5.5, "y": 1 }, + { "label":"Y", "matrix": [1, 7], "x": 6.5, "y": 1 }, + { "label":"U", "matrix": [1, 8], "x": 7.5, "y": 1 }, + { "label":"I", "matrix": [1, 9], "x": 8.5, "y": 1 }, + { "label":"O", "matrix": [1, 10], "x": 9.5, "y": 1 }, + { "label":"P", "matrix": [1, 11], "x": 10.5, "y": 1 }, + { "label":"[{", "matrix": [1, 12], "x": 11.5, "y": 1 }, + { "label":"]}", "matrix": [1, 13], "x": 12.5, "y": 1 }, + { "label":"\\|", "matrix": [1, 14], "x": 13.5, "y": 1, "w": 1.5 }, + { "label":"RGB Mode", "matrix": [1, 15], "x": 15.25, "y": 1 }, + + { "label":"Caps Lock", "matrix": [2, 0], "x": 0, "y": 2, "w": 1.75 }, + { "label":"A", "matrix": [2, 2], "x": 1.75, "y": 2 }, + { "label":"S", "matrix": [2, 3], "x": 2.75, "y": 2 }, + { "label":"D", "matrix": [2, 4], "x": 3.75, "y": 2 }, + { "label":"F", "matrix": [2, 5], "x": 4.75, "y": 2 }, + { "label":"G", "matrix": [2, 6], "x": 5.75, "y": 2 }, + { "label":"H", "matrix": [2, 7], "x": 6.75, "y": 2 }, + { "label":"J", "matrix": [2, 8], "x": 7.75, "y": 2 }, + { "label":"K", "matrix": [2, 9], "x": 8.75, "y": 2 }, + { "label":"L", "matrix": [2, 10], "x": 9.75, "y": 2 }, + { "label":";:", "matrix": [2, 11], "x": 10.75, "y": 2 }, + { "label":"'\"", "matrix": [2, 12], "x": 11.75, "y": 2 }, + { "label":"Enter", "matrix": [2, 13], "x": 12.75, "y": 2, "w": 2.25 }, + { "label":"Fn", "matrix": [2, 15], "x": 15.25, "y": 2 }, + + { "label":"Shift", "matrix": [3, 1], "x": 0, "y": 3, "w": 2.25 }, + { "label":"Z", "matrix": [3, 2], "x": 2.25, "y": 3 }, + { "label":"X", "matrix": [3, 3], "x": 3.25, "y": 3 }, + { "label":"C", "matrix": [3, 4], "x": 4.25, "y": 3 }, + { "label":"V", "matrix": [3, 5], "x": 5.25, "y": 3 }, + { "label":"B", "matrix": [3, 6], "x": 6.25, "y": 3 }, + { "label":"N", "matrix": [3, 7], "x": 7.25, "y": 3 }, + { "label":"M", "matrix": [3, 8], "x": 8.25, "y": 3 }, + { "label":",<", "matrix": [3, 9], "x": 9.25, "y": 3 }, + { "label":".>", "matrix": [3, 10], "x": 10.25, "y": 3 }, + { "label":"/?", "matrix": [3, 11], "x": 11.25, "y": 3 }, + { "label":"Shift", "matrix": [3, 13], "x": 12.25, "y": 3, "w": 1.75 }, + { "label":"\u2191", "matrix": [3, 14], "x": 14.25, "y": 3.25 }, + + { "label":"Ctrl", "matrix": [4, 0], "x": 0, "y": 4, "w": 1.25 }, + { "label":"GUI", "matrix": [4, 1], "x": 1.25, "y": 4, "w": 1.25 }, + { "label":"Alt", "matrix": [4, 3], "x": 2.5, "y": 4, "w": 1.25 }, + { "label":"Space", "matrix": [4, 6], "x": 3.75, "y": 4, "w": 6.25 }, + { "label":"Alt", "matrix": [4, 10], "x": 10, "y": 4 }, + { "label":"Ctrl", "matrix": [4, 11], "x": 11, "y": 4 }, + { "label":"`~", "matrix": [4, 12], "x": 12, "y": 4 }, + { "label":"\u2190", "matrix": [4, 13], "x": 13.25, "y": 4.25 }, + { "label":"\u2193", "matrix": [4, 14], "x": 14.25, "y": 4.25 }, + { "label":"\u2192", "matrix": [4, 15], "x": 15.25, "y": 4.25 } + ] + }, + "LAYOUT_ansi_split_bs_space": { + "layout": [ + { "label":"Esc", "matrix": [0, 0], "x": 0, "y": 0 }, + { "label":"1!", "matrix": [0, 1], "x": 1, "y": 0 }, + { "label":"2@", "matrix": [0, 2], "x": 2, "y": 0 }, + { "label":"3#", "matrix": [0, 3], "x": 3, "y": 0 }, + { "label":"4$", "matrix": [0, 4], "x": 4, "y": 0 }, + { "label":"5%", "matrix": [0, 5], "x": 5, "y": 0 }, + { "label":"6^", "matrix": [0, 6], "x": 6, "y": 0 }, + { "label":"7&", "matrix": [0, 7], "x": 7, "y": 0 }, + { "label":"8*", "matrix": [0, 8], "x": 8, "y": 0 }, + { "label":"9(", "matrix": [0, 9], "x": 9, "y": 0 }, + { "label":"0)", "matrix": [0, 10], "x": 10, "y": 0 }, + { "label":"-_", "matrix": [0, 11], "x": 11, "y": 0 }, + { "label":"=+", "matrix": [0, 12], "x": 12, "y": 0 }, + { "label":"Backspace", "matrix": [0, 13], "x": 13, "y": 0 }, + { "label":"Backspace", "matrix": [0, 14], "x": 14, "y": 0 }, + { "label":"RGB Toggle", "matrix": [0, 15], "x": 15.25, "y": 0 }, + + { "label":"Tab", "matrix": [1, 0], "x": 0, "y": 1, "w": 1.5 }, + { "label":"Q", "matrix": [1, 2], "x": 1.5, "y": 1 }, + { "label":"W", "matrix": [1, 3], "x": 2.5, "y": 1 }, + { "label":"E", "matrix": [1, 4], "x": 3.5, "y": 1 }, + { "label":"R", "matrix": [1, 5], "x": 4.5, "y": 1 }, + { "label":"T", "matrix": [1, 6], "x": 5.5, "y": 1 }, + { "label":"Y", "matrix": [1, 7], "x": 6.5, "y": 1 }, + { "label":"U", "matrix": [1, 8], "x": 7.5, "y": 1 }, + { "label":"I", "matrix": [1, 9], "x": 8.5, "y": 1 }, + { "label":"O", "matrix": [1, 10], "x": 9.5, "y": 1 }, + { "label":"P", "matrix": [1, 11], "x": 10.5, "y": 1 }, + { "label":"[{", "matrix": [1, 12], "x": 11.5, "y": 1 }, + { "label":"]}", "matrix": [1, 13], "x": 12.5, "y": 1 }, + { "label":"\\|", "matrix": [1, 14], "x": 13.5, "y": 1, "w": 1.5 }, + { "label":"RGB Mode", "matrix": [1, 15], "x": 15.25, "y": 1 }, + + { "label":"Caps Lock", "matrix": [2, 0], "x": 0, "y": 2, "w": 1.75 }, + { "label":"A", "matrix": [2, 2], "x": 1.75, "y": 2 }, + { "label":"S", "matrix": [2, 3], "x": 2.75, "y": 2 }, + { "label":"D", "matrix": [2, 4], "x": 3.75, "y": 2 }, + { "label":"F", "matrix": [2, 5], "x": 4.75, "y": 2 }, + { "label":"G", "matrix": [2, 6], "x": 5.75, "y": 2 }, + { "label":"H", "matrix": [2, 7], "x": 6.75, "y": 2 }, + { "label":"J", "matrix": [2, 8], "x": 7.75, "y": 2 }, + { "label":"K", "matrix": [2, 9], "x": 8.75, "y": 2 }, + { "label":"L", "matrix": [2, 10], "x": 9.75, "y": 2 }, + { "label":";:", "matrix": [2, 11], "x": 10.75, "y": 2 }, + { "label":"'\"", "matrix": [2, 12], "x": 11.75, "y": 2 }, + { "label":"Enter", "matrix": [2, 13], "x": 12.75, "y": 2, "w": 2.25 }, + { "label":"Fn", "matrix": [2, 15], "x": 15.25, "y": 2 }, + + { "label":"Shift", "matrix": [3, 1], "x": 0, "y": 3, "w": 2.25 }, + { "label":"Z", "matrix": [3, 2], "x": 2.25, "y": 3 }, + { "label":"X", "matrix": [3, 3], "x": 3.25, "y": 3 }, + { "label":"C", "matrix": [3, 4], "x": 4.25, "y": 3 }, + { "label":"V", "matrix": [3, 5], "x": 5.25, "y": 3 }, + { "label":"B", "matrix": [3, 6], "x": 6.25, "y": 3 }, + { "label":"N", "matrix": [3, 7], "x": 7.25, "y": 3 }, + { "label":"M", "matrix": [3, 8], "x": 8.25, "y": 3 }, + { "label":",<", "matrix": [3, 9], "x": 9.25, "y": 3 }, + { "label":".>", "matrix": [3, 10], "x": 10.25, "y": 3 }, + { "label":"/?", "matrix": [3, 11], "x": 11.25, "y": 3 }, + { "label":"Shift", "matrix": [3, 13], "x": 12.25, "y": 3, "w": 1.75 }, + { "label":"\u2191", "matrix": [3, 14], "x": 14.25, "y": 3.25 }, + + { "label":"Ctrl", "matrix": [4, 0], "x": 0, "y": 4, "w": 1.25 }, + { "label":"GUI", "matrix": [4, 1], "x": 1.25, "y": 4, "w": 1.25 }, + { "label":"Alt", "matrix": [4, 3], "x": 2.5, "y": 4, "w": 1.25 }, + { "label":"Space", "matrix": [4, 4], "x": 3.75, "y": 4, "w": 2.25 }, + { "label":"Space", "matrix": [4, 6], "x": 6, "y": 4, "w": 1.25 }, + { "label":"Space", "matrix": [4, 8], "x": 7.25, "y": 4, "w": 2.75 }, + { "label":"Alt", "matrix": [4, 10], "x": 10, "y": 4 }, + { "label":"Ctrl", "matrix": [4, 11], "x": 11, "y": 4 }, + { "label":"`~", "matrix": [4, 12], "x": 12, "y": 4 }, + { "label":"\u2190", "matrix": [4, 13], "x": 13.25, "y": 4.25 }, + { "label":"\u2193", "matrix": [4, 14], "x": 14.25, "y": 4.25 }, + { "label":"\u2192", "matrix": [4, 15], "x": 15.25, "y": 4.25 } + ] + }, + "LAYOUT_iso": { + "layout": [ + { "label":"Esc", "matrix": [0, 0], "x": 0, "y": 0 }, + { "label":"1!", "matrix": [0, 1], "x": 1, "y": 0 }, + { "label":"2\"", "matrix": [0, 2], "x": 2, "y": 0 }, + { "label":"3\u00a3", "matrix": [0, 3], "x": 3, "y": 0 }, + { "label":"4$", "matrix": [0, 4], "x": 4, "y": 0 }, + { "label":"5%", "matrix": [0, 5], "x": 5, "y": 0 }, + { "label":"6^", "matrix": [0, 6], "x": 6, "y": 0 }, + { "label":"7&", "matrix": [0, 7], "x": 7, "y": 0 }, + { "label":"8*", "matrix": [0, 8], "x": 8, "y": 0 }, + { "label":"9(", "matrix": [0, 9], "x": 9, "y": 0 }, + { "label":"0)", "matrix": [0, 10], "x": 10, "y": 0 }, + { "label":"-_", "matrix": [0, 11], "x": 11, "y": 0 }, + { "label":"=+", "matrix": [0, 12], "x": 12, "y": 0 }, + { "label":"Backspace", "matrix": [0, 13], "x": 13, "y": 0, "w": 2 }, + { "label":"RGB Toggle", "matrix": [0, 15], "x": 15.25, "y": 0 }, + + { "label":"Tab", "matrix": [1, 0], "x": 0, "y": 1, "w": 1.5 }, + { "label":"Q", "matrix": [1, 2], "x": 1.5, "y": 1 }, + { "label":"W", "matrix": [1, 3], "x": 2.5, "y": 1 }, + { "label":"E", "matrix": [1, 4], "x": 3.5, "y": 1 }, + { "label":"R", "matrix": [1, 5], "x": 4.5, "y": 1 }, + { "label":"T", "matrix": [1, 6], "x": 5.5, "y": 1 }, + { "label":"Y", "matrix": [1, 7], "x": 6.5, "y": 1 }, + { "label":"U", "matrix": [1, 8], "x": 7.5, "y": 1 }, + { "label":"I", "matrix": [1, 9], "x": 8.5, "y": 1 }, + { "label":"O", "matrix": [1, 10], "x": 9.5, "y": 1 }, + { "label":"P", "matrix": [1, 11], "x": 10.5, "y": 1 }, + { "label":"[{", "matrix": [1, 12], "x": 11.5, "y": 1 }, + { "label":"]}", "matrix": [1, 13], "x": 12.5, "y": 1 }, + { "label":"RGB Mode", "matrix": [1, 15], "x": 15.25, "y": 1 }, + + { "label":"Caps Lock", "matrix": [2, 0], "x": 0, "y": 2, "w": 1.75 }, + { "label":"A", "matrix": [2, 2], "x": 1.75, "y": 2 }, + { "label":"S", "matrix": [2, 3], "x": 2.75, "y": 2 }, + { "label":"D", "matrix": [2, 4], "x": 3.75, "y": 2 }, + { "label":"F", "matrix": [2, 5], "x": 4.75, "y": 2 }, + { "label":"G", "matrix": [2, 6], "x": 5.75, "y": 2 }, + { "label":"H", "matrix": [2, 7], "x": 6.75, "y": 2 }, + { "label":"J", "matrix": [2, 8], "x": 7.75, "y": 2 }, + { "label":"K", "matrix": [2, 9], "x": 8.75, "y": 2 }, + { "label":"L", "matrix": [2, 10], "x": 9.75, "y": 2 }, + { "label":";:", "matrix": [2, 11], "x": 10.75, "y": 2 }, + { "label":"'@", "matrix": [2, 12], "x": 11.75, "y": 2 }, + { "label":"#~", "matrix": [1, 14], "x": 12.75, "y": 2 }, + { "label":"Enter", "matrix": [2, 13], "x": 13.75, "y": 1, "w": 1.25, "h": 2 }, + { "label":"Fn", "matrix": [2, 15], "x": 15.25, "y": 2 }, + + { "label":"Shift", "matrix": [3, 1], "x": 0, "y": 3, "w": 1.25 }, + { "label":"\\|", "matrix": [3, 0], "x": 1.25, "y": 3 }, + { "label":"Z", "matrix": [3, 2], "x": 2.25, "y": 3 }, + { "label":"X", "matrix": [3, 3], "x": 3.25, "y": 3 }, + { "label":"C", "matrix": [3, 4], "x": 4.25, "y": 3 }, + { "label":"V", "matrix": [3, 5], "x": 5.25, "y": 3 }, + { "label":"B", "matrix": [3, 6], "x": 6.25, "y": 3 }, + { "label":"N", "matrix": [3, 7], "x": 7.25, "y": 3 }, + { "label":"M", "matrix": [3, 8], "x": 8.25, "y": 3 }, + { "label":",<", "matrix": [3, 9], "x": 9.25, "y": 3 }, + { "label":".>", "matrix": [3, 10], "x": 10.25, "y": 3 }, + { "label":"/?", "matrix": [3, 11], "x": 11.25, "y": 3 }, + { "label":"Shift", "matrix": [3, 13], "x": 12.25, "y": 3, "w": 1.75 }, + { "label":"\u2191", "matrix": [3, 14], "x": 14.25, "y": 3.25 }, + + { "label":"Ctrl", "matrix": [4, 0], "x": 0, "y": 4, "w": 1.25 }, + { "label":"GUI", "matrix": [4, 1], "x": 1.25, "y": 4, "w": 1.25 }, + { "label":"Alt", "matrix": [4, 3], "x": 2.5, "y": 4, "w": 1.25 }, + { "label":"Space", "matrix": [4, 6], "x": 3.75, "y": 4, "w": 6.25 }, + { "label":"Alt", "matrix": [4, 10], "x": 10, "y": 4 }, + { "label":"Ctrl", "matrix": [4, 11], "x": 11, "y": 4 }, + { "label":"`~", "matrix": [4, 12], "x": 12, "y": 4 }, + { "label":"\u2190", "matrix": [4, 13], "x": 13.25, "y": 4.25 }, + { "label":"\u2193", "matrix": [4, 14], "x": 14.25, "y": 4.25 }, + { "label":"\u2192", "matrix": [4, 15], "x": 15.25, "y": 4.25 } + ] + }, + "LAYOUT_iso_split_bs_space": { + "layout": [ + { "label":"Esc", "matrix": [0, 0], "x": 0, "y": 0 }, + { "label":"1!", "matrix": [0, 1], "x": 1, "y": 0 }, + { "label":"2\"", "matrix": [0, 2], "x": 2, "y": 0 }, + { "label":"3\u00a3", "matrix": [0, 3], "x": 3, "y": 0 }, + { "label":"4$", "matrix": [0, 4], "x": 4, "y": 0 }, + { "label":"5%", "matrix": [0, 5], "x": 5, "y": 0 }, + { "label":"6^", "matrix": [0, 6], "x": 6, "y": 0 }, + { "label":"7&", "matrix": [0, 7], "x": 7, "y": 0 }, + { "label":"8*", "matrix": [0, 8], "x": 8, "y": 0 }, + { "label":"9(", "matrix": [0, 9], "x": 9, "y": 0 }, + { "label":"0)", "matrix": [0, 10], "x": 10, "y": 0 }, + { "label":"-_", "matrix": [0, 11], "x": 11, "y": 0 }, + { "label":"=+", "matrix": [0, 12], "x": 12, "y": 0 }, + { "label":"Backspace", "matrix": [0, 13], "x": 13, "y": 0 }, + { "label":"Backspace", "matrix": [0, 14], "x": 14, "y": 0 }, + { "label":"RGB Toggle", "matrix": [0, 15], "x": 15.25, "y": 0 }, + + { "label":"Tab", "matrix": [1, 0], "x": 0, "y": 1, "w": 1.5 }, + { "label":"Q", "matrix": [1, 2], "x": 1.5, "y": 1 }, + { "label":"W", "matrix": [1, 3], "x": 2.5, "y": 1 }, + { "label":"E", "matrix": [1, 4], "x": 3.5, "y": 1 }, + { "label":"R", "matrix": [1, 5], "x": 4.5, "y": 1 }, + { "label":"T", "matrix": [1, 6], "x": 5.5, "y": 1 }, + { "label":"Y", "matrix": [1, 7], "x": 6.5, "y": 1 }, + { "label":"U", "matrix": [1, 8], "x": 7.5, "y": 1 }, + { "label":"I", "matrix": [1, 9], "x": 8.5, "y": 1 }, + { "label":"O", "matrix": [1, 10], "x": 9.5, "y": 1 }, + { "label":"P", "matrix": [1, 11], "x": 10.5, "y": 1 }, + { "label":"[{", "matrix": [1, 12], "x": 11.5, "y": 1 }, + { "label":"]}", "matrix": [1, 13], "x": 12.5, "y": 1 }, + { "label":"RGB Mode", "matrix": [1, 15], "x": 15.25, "y": 1 }, + + { "label":"Caps Lock", "matrix": [2, 0], "x": 0, "y": 2, "w": 1.75 }, + { "label":"A", "matrix": [2, 2], "x": 1.75, "y": 2 }, + { "label":"S", "matrix": [2, 3], "x": 2.75, "y": 2 }, + { "label":"D", "matrix": [2, 4], "x": 3.75, "y": 2 }, + { "label":"F", "matrix": [2, 5], "x": 4.75, "y": 2 }, + { "label":"G", "matrix": [2, 6], "x": 5.75, "y": 2 }, + { "label":"H", "matrix": [2, 7], "x": 6.75, "y": 2 }, + { "label":"J", "matrix": [2, 8], "x": 7.75, "y": 2 }, + { "label":"K", "matrix": [2, 9], "x": 8.75, "y": 2 }, + { "label":"L", "matrix": [2, 10], "x": 9.75, "y": 2 }, + { "label":";:", "matrix": [2, 11], "x": 10.75, "y": 2 }, + { "label":"'@", "matrix": [2, 12], "x": 11.75, "y": 2 }, + { "label":"#~", "matrix": [1, 14], "x": 12.75, "y": 2 }, + { "label":"Enter", "matrix": [2, 13], "x": 13.75, "y": 1, "w": 1.25, "h": 2 }, + { "label":"Fn", "matrix": [2, 15], "x": 15.25, "y": 2 }, + + { "label":"Shift", "matrix": [3, 1], "x": 0, "y": 3, "w": 1.25 }, + { "label":"\\|", "matrix": [3, 0], "x": 1.25, "y": 3 }, + { "label":"Z", "matrix": [3, 2], "x": 2.25, "y": 3 }, + { "label":"X", "matrix": [3, 3], "x": 3.25, "y": 3 }, + { "label":"C", "matrix": [3, 4], "x": 4.25, "y": 3 }, + { "label":"V", "matrix": [3, 5], "x": 5.25, "y": 3 }, + { "label":"B", "matrix": [3, 6], "x": 6.25, "y": 3 }, + { "label":"N", "matrix": [3, 7], "x": 7.25, "y": 3 }, + { "label":"M", "matrix": [3, 8], "x": 8.25, "y": 3 }, + { "label":",<", "matrix": [3, 9], "x": 9.25, "y": 3 }, + { "label":".>", "matrix": [3, 10], "x": 10.25, "y": 3 }, + { "label":"/?", "matrix": [3, 11], "x": 11.25, "y": 3 }, + { "label":"Shift", "matrix": [3, 13], "x": 12.25, "y": 3, "w": 1.75 }, + { "label":"\u2191", "matrix": [3, 14], "x": 14.25, "y": 3.25 }, + + { "label":"Ctrl", "matrix": [4, 0], "x": 0, "y": 4, "w": 1.25 }, + { "label":"GUI", "matrix": [4, 1], "x": 1.25, "y": 4, "w": 1.25 }, + { "label":"Alt", "matrix": [4, 3], "x": 2.5, "y": 4, "w": 1.25 }, + { "label":"Space", "matrix": [4, 4], "x": 3.75, "y": 4, "w": 2.25 }, + { "label":"Space", "matrix": [4, 6], "x": 6, "y": 4, "w": 1.25 }, + { "label":"Space", "matrix": [4, 8], "x": 7.25, "y": 4, "w": 2.75 }, + { "label":"Alt", "matrix": [4, 10], "x": 10, "y": 4 }, + { "label":"Ctrl", "matrix": [4, 11], "x": 11, "y": 4 }, + { "label":"`~", "matrix": [4, 12], "x": 12, "y": 4 }, + { "label":"\u2190", "matrix": [4, 13], "x": 13.25, "y": 4.25 }, + { "label":"\u2193", "matrix": [4, 14], "x": 14.25, "y": 4.25 }, + { "label":"\u2192", "matrix": [4, 15], "x": 15.25, "y": 4.25 } + ] + } + } +} diff --git a/keyboards/boardsource/the_mark/keymaps/stanrc85/keymap.c b/keyboards/boardsource/the_mark/keymaps/stanrc85/keymap.c new file mode 100644 index 0000000000..5b37bb6667 --- /dev/null +++ b/keyboards/boardsource/the_mark/keymaps/stanrc85/keymap.c @@ -0,0 +1,98 @@ +/* Copyright 2020 Stanrc85 + * + * 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 +#include "stanrc85.h" + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { +/* Base */ +[_QWERTY] = 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_BSPC, KC_BSPC, KC_MPLY, + 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_BSLS, CA_SCLN, + KC_CTLE, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, CA_QUOT, + KC_LSFT, 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_LCTL, KC_LGUI, KC_LALT, LT_SPCF, LT_SPCF, LT_SPCF, TD_TWIN, MO(_FN2_60), KC_GRV, KC_LEFT, KC_DOWN, KC_RGHT +), +[_DEFAULT] = 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_BSPC, KC_BSPC, KC_MPLY, + 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_BSLS, CA_SCLN, + KC_CTLE, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, CA_QUOT, + KC_LSFT, 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_LCTL, KC_LGUI, KC_LALT, LT_SPCF, LT_SPCF, LT_SPCF, TD_TWIN, MO(_FN2_60), KC_GRV, KC_LEFT, KC_DOWN, KC_RGHT +), +[_FN1_60] = LAYOUT_all( + KC_TILD, 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_DEL, KC_DEL, _______, + _______, _______, CA_QUOT, KC_VOLU, CA_SCLN, _______, _______, KC_HOME, KC_UP, KC_END, KC_PSCR, _______, _______, KC_INS, _______, + KC_CAPS, _______, KC_MUTE, KC_VOLD, KC_MPLY, _______, _______, KC_LEFT, KC_DOWN, KC_RGHT, _______, _______, _______, _______, + _______, _______, KC_RDP, _______, _______, _______, _______, _______, KC_WBAK, KC_WFWD, _______, _______, _______, _______, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ +), +[_FN2_60] = LAYOUT_all( + RGB_TOG, RGB_MOD, RGB_VAD, RGB_VAI, RGB_SAI, RGB_HUD, RGB_HUI, _______, _______, _______, _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, QK_BOOT, _______, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_MAKE, _______, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, TG(_DEFAULT) +) + +}; + + +bool rgb_matrix_indicators_user(void) { + uint8_t layer = get_highest_layer(layer_state); + switch (layer) { + case _FN1_60: + rgb_matrix_set_color(10, 0, 0, 255); + break; + case _FN2_60: + rgb_matrix_set_color(10, 255, 255, 255); + break; + case _DEFAULT: + rgb_matrix_set_color(10, 0, 255, 0); + break; + default: + break; + } + if (host_keyboard_led_state().caps_lock) { + rgb_matrix_set_color(10, 255, 0, 0); + } + return false; +} + +void matrix_init_kb(void){ + +#ifdef RGB_MATRIX_ENABLE + + g_led_config = (led_config_t){ { + // Key Matrix to LED Index + { 10 , 10 , 9 , 9 , 8 , 7 , 7 , 6 , 5 , 5 , 4 , 3 , 3 , 2 , 1 , 1 }, + { 11 , 11 , 9 , 9 , 8 , 7 , 7 , 6 , 5 , 5 , 4 , 3 , 3 , 2 , 0 , 1 }, + { 12 , 12 , 9 , 9 , 8 , 7 , 7 , 6 , 5 , 5 , 4 , 3 , 3 , 2 , 23 , 1 }, + { 13 , 13 , 14 , 14 , 15 , 16 , 16 , 17 , 18 , 18 , 19 , 20 , 20 , 21 , 22 , 22 }, + { 13 , 13 , 14 , 14 , 15 , 16 , 16 , 17 , 18 , 18 , 19 , 20 , 20 , 21 , 22 , 22 }, + }, { + // LED Index to Physical Position + {224, 42}, {224, 21}, {209, 21}, {179, 21}, {164, 21}, {134, 21}, {119, 21}, {89, 21}, {74, 21}, {45, 21}, {30, 21}, {30, 42}, + {30, 64}, {30, 85}, {45, 85}, {74, 85}, {89, 85}, {119, 85}, {134, 85}, {164, 85}, {179, 85}, {209, 85}, {224, 85}, {224, 64} + }, { + // LED Index to Flag + LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, + LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, + LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL + } }; + +#endif + matrix_init_user(); +} |