diff --git a/keyboards/handwired/qc60/README.md b/keyboards/handwired/qc60/README.md new file mode 100644 index 000000000..85570a8a7 --- /dev/null +++ b/keyboards/handwired/qc60/README.md @@ -0,0 +1,22 @@ +QC60 +======== + +![qc60 layout](https://i.imgur.com/BAW1VGc.png) + +A split 60% staggered keyboard made by Peioris. + +Keyboard Maintainer: [Peioris](https://github.com/coarse) +Hardware Supported: [QC60 PCB](https://imgur.com/6tIxJ1N), Pro Micro +Hardware Availability: N/A at the moment + +Handwiring Resources: [Pro Micro Wiring](https://imgur.com/UycEYlG), [Keymapping](http://www.keyboard-layout-editor.com/#/gists/a54720ecfd934155b179657938e8e87b) + +Make example for this keyboard (after setting up your build environment): + + make handwired/qc60/proto:default + +Example of flashing this keyboard: + + make handwired/qc60/proto:avrdude + +See [build environment setup](https://docs.qmk.fm/build_environment_setup.html) then the [make instructions](https://docs.qmk.fm/make_instructions.html) for more information. diff --git a/keyboards/handwired/qc60/config.h b/keyboards/handwired/qc60/config.h new file mode 100644 index 000000000..3b6f84390 --- /dev/null +++ b/keyboards/handwired/qc60/config.h @@ -0,0 +1,24 @@ +#pragma once + +#include "config_common.h" + +/* USB Device descriptor parameter */ +#define VENDOR_ID 0xFEED +#define PRODUCT_ID 0x0C60 +#define DEVICE_VER 0x00C6 +#define MANUFACTURER PeiorisBoards +#define PRODUCT QC60 +#define DESCRIPTION Split 60% staggered keyboard + +/* key matrix size */ +// Rows are doubled-up +#define MATRIX_ROWS 10 +#define MATRIX_COLS 8 + +/* Set 0 if debouncing isn't needed */ +#define DEBOUNCING_DELAY 5 + +/* key combination for command */ +#define IS_COMMAND() ( \ + keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \ +) diff --git a/keyboards/handwired/qc60/info.json b/keyboards/handwired/qc60/info.json new file mode 100644 index 000000000..b39ec587b --- /dev/null +++ b/keyboards/handwired/qc60/info.json @@ -0,0 +1,87 @@ +{ + "keyboard_name": "QC60", + "url": "", + "maintainer": "coarse", + "width": 15, + "height": 5, + "layouts": { + "LAYOUT_ANSI_DEFAULT": { + "key_count": 64, + "layout": [ + {"label":"Esc", "x":0, "y":0}, + {"label":"1", "x":1, "y":0}, + {"label":"2", "x":2, "y":0}, + {"label":"3", "x":3, "y":0}, + {"label":"4", "x":4, "y":0}, + {"label":"5", "x":5, "y":0}, + {"label":"6", "x":6, "y":0}, + + {"label":"7", "x":7, "y":0}, + {"label":"8", "x":8, "y":0}, + {"label":"9", "x":9, "y":0}, + {"label":"0", "x":10, "y":0}, + {"label":"-", "x":11, "y":0}, + {"label":"=", "x":12, "y":0}, + {"label":"Backspace", "x":13, "y":0, "w":2.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":"CapsLock", "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":"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":2.75}, + + {"label":"Ctrl", "x":0, "y":4, "w":1.25}, + {"label":"Win", "x":1.25, "y":4, "w":1.25}, + {"label":"Alt", "x":2.5, "y":4, "w":1.25}, + {"x":3.75, "y":4, "w":2.75}, + {"x":6.5, "y":4, "w":1.25}, + + {"x":7.75, "y":4, "w":1.25}, + {"x":9, "y":4, "w":2.0}, + {"label":"Alt", "x":11, "y":4}, + {"label":"Win", "x":12, "y":4}, + {"label":"Menu", "x":13, "y":4}, + {"label":"Ctrl", "x":14, "y":4} + ] + } + } +} \ No newline at end of file diff --git a/keyboards/handwired/qc60/keymaps/default/config.h b/keyboards/handwired/qc60/keymaps/default/config.h new file mode 100644 index 000000000..6202f57ec --- /dev/null +++ b/keyboards/handwired/qc60/keymaps/default/config.h @@ -0,0 +1,5 @@ +#pragma once + +#define USE_I2C + +#define MASTER_LEFT diff --git a/keyboards/handwired/qc60/keymaps/default/keymap.c b/keyboards/handwired/qc60/keymaps/default/keymap.c new file mode 100644 index 000000000..bafaf5058 --- /dev/null +++ b/keyboards/handwired/qc60/keymaps/default/keymap.c @@ -0,0 +1,39 @@ +/* Copyright 2018 Michael Pio Mayol + * + * 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 . + */ + +#include QMK_KEYBOARD_H + +extern keymap_config_t keymap_config; + +// Each layer gets a name for readability, which is then used in the keymap matrix below. +// The underscores don't mean anything - you can have a layer called STUFF or any other name. +// Layer names don't all need to be of the same length, obviously, and you can also skip them +// entirely and just use numbers. +#define _BASE 0 + +#define _______ KC_TRNS +#define XXXXXXX KC_NO + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + [_BASE] = LAYOUT_ansi_default( + 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_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, \ + KC_CAPS, 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_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, \ + KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, RGB_TOG, KC_RGHT, KC_SPC, KC_RALT, KC_UP, KC_DOWN, KC_RCTL + ), + +}; diff --git a/keyboards/handwired/qc60/keymaps/wntrmln/config.h b/keyboards/handwired/qc60/keymaps/wntrmln/config.h new file mode 100644 index 000000000..fabebda53 --- /dev/null +++ b/keyboards/handwired/qc60/keymaps/wntrmln/config.h @@ -0,0 +1,5 @@ +#pragma once + +#define USE_SERIAL + +#define MASTER_LEFT diff --git a/keyboards/handwired/qc60/keymaps/wntrmln/keymap.c b/keyboards/handwired/qc60/keymaps/wntrmln/keymap.c new file mode 100644 index 000000000..f99635d53 --- /dev/null +++ b/keyboards/handwired/qc60/keymaps/wntrmln/keymap.c @@ -0,0 +1,50 @@ +/* Copyright 2018 Michael Pio Mayol + * + * 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 . + */ + +#include QMK_KEYBOARD_H + +extern keymap_config_t keymap_config; + +// Each layer gets a name for readability, which is then used in the keymap matrix below. +// The underscores don't mean anything - you can have a layer called STUFF or any other name. +// Layer names don't all need to be of the same length, obviously, and you can also skip them +// entirely and just use numbers. +#define _BASE 0 +#define _FN 1 + +#define _______ KC_TRNS +#define XXXXXXX KC_NO + +#define FN MO(_FN) + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + [_BASE] = LAYOUT_hhkb_split_lshift( + 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_GRV, KC_DEL, \ + 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_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_LSFT, KC_RSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_CAPS, \ + FN, KC_LALT, KC_SPC, KC_F13, KC_BSLS, KC_SPC, KC_RALT, KC_LGUI + ), + + [_FN] = LAYOUT_hhkb_split_lshift( + RESET, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \ + _______, _______, KC_UP, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \ + _______, KC_LEFT, KC_DOWN, KC_RGHT, _______, _______, _______, _______, _______, _______, _______, _______, _______, \ + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \ + _______, _______, _______, KC_NLCK, _______, _______, _______, _______ + ), + +}; diff --git a/keyboards/handwired/qc60/proto/config.h b/keyboards/handwired/qc60/proto/config.h new file mode 100644 index 000000000..81466b019 --- /dev/null +++ b/keyboards/handwired/qc60/proto/config.h @@ -0,0 +1,14 @@ +#pragma once + +#include "config_common.h" + +// wiring of each half +#define MATRIX_ROW_PINS { F4, F5, C6, D7, E6 } +#define MATRIX_COL_PINS { F7, F6, B1, B3, B2, B6, B5, B4 } +#define DIODE_DIRECTION ROW2COL + +/* ws2812 RGB LED */ +#define RGB_DI_PIN D3 +#define RGBLED_NUM 1 // Number of LEDs +// #define ws2812_PORTREG PORTD +// #define ws2812_DDRREG DDRD diff --git a/keyboards/handwired/qc60/proto/proto.c b/keyboards/handwired/qc60/proto/proto.c new file mode 100644 index 000000000..a6031d772 --- /dev/null +++ b/keyboards/handwired/qc60/proto/proto.c @@ -0,0 +1,21 @@ +/* Copyright 2018 Michael Pio Mayol + * + * 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 . + */ + +#include "qc60.h" + +void matrix_init_kb(void) { + matrix_init_user(); +}; diff --git a/keyboards/handwired/qc60/proto/proto.h b/keyboards/handwired/qc60/proto/proto.h new file mode 100644 index 000000000..191e8150a --- /dev/null +++ b/keyboards/handwired/qc60/proto/proto.h @@ -0,0 +1,201 @@ +/* Copyright 2018 Michael Pio Mayol + * + * 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 . + */ + +#ifndef PROTO_H +#define PROTO_H + +#include "qc60.h" + +#include "quantum.h" + +// readability +#define XXX KC_NO + +/* Split Backspace + * {R07, XXX, R05, R04, R03, R02, R01, R00} + * + * Split Right Shift + * {R37, R36, R35, R34, R33, R32, R31, XXX} + * + * Split Left Shift + * {L30, L31, L32, L33, L34, L35, L36, XXX} + * + * 6-key Bottom-left row + * {R47, R46, R45, R44, R43, R42, XXX, XXX} + */ + +#define LAYOUT( \ + L00, L01, L02, L03, L04, L05, L06, R00, R01, R02, R03, R04, R05, R06, R07, \ + L10, L11, L12, L13, L14, L15, R10, R11, R12, R13, R14, R15, R16, R17, \ + L20, L21, L22, L23, L24, L25, R21, R22, R23, R24, R25, R26, R27, \ + L30, L31, L32, L33, L34, L35, L36, R31, R32, R33, R34, R35, R36, R37, \ + L40, L41, L42, L43, L44, R43, R44, R42, R45, R46, R47 \ +) \ +{ \ + {L00, L01, L02, L03, L04, L05, L06, XXX}, \ + {L10, L11, L12, L13, L14, L15, XXX, XXX}, \ + {L20, L21, L22, L23, L24, L25, XXX, XXX}, \ + {L30, L31, L32, L33, L34, L35, L36, XXX}, \ + {L40, L41, L42, L43, L44, XXX, XXX, XXX}, \ + {R07, XXX, R05, R04, R03, R02, R01, R00}, \ + {R17, R16, R15, R14, R13, R12, R11, R10}, \ + {R27, R26, R25, R24, R23, R22, R21, XXX}, \ + {R37, R36, R35, R34, R33, R32, R31, XXX}, \ + {R47, R46, R45, R44, R43, R42, XXX, XXX}, \ +} + +#define LAYOUT_ansi_default( \ + L00, L01, L02, L03, L04, L05, L06, R00, R01, R02, R03, R04, R05, R07, \ + L10, L11, L12, L13, L14, L15, R10, R11, R12, R13, R14, R15, R16, R17, \ + L20, L21, L22, L23, L24, L25, R21, R22, R23, R24, R25, R26, R27, \ + L31, L32, L33, L34, L35, L36, R31, R32, R33, R34, R35, R36, \ + L40, L41, L42, L43, L44, R43, R44, R42, R45, R46, R47 \ +) \ +{ \ + {L00, L01, L02, L03, L04, L05, L06, XXX}, \ + {L10, L11, L12, L13, L14, L15, XXX, XXX}, \ + {L20, L21, L22, L23, L24, L25, XXX, XXX}, \ + {XXX, L31, L32, L33, L34, L35, L36, XXX}, \ + {L40, L41, L42, L43, L44, XXX, XXX, XXX}, \ + {R07, XXX, R05, R04, R03, R02, R01, R00}, \ + {R17, R16, R15, R14, R13, R12, R11, R10}, \ + {R27, R26, R25, R24, R23, R22, R21, XXX}, \ + {XXX, R36, R35, R34, R33, R32, R31, XXX}, \ + {R47, R46, R45, R44, R43, R42, XXX, XXX}, \ +} + +#define LAYOUT_ansi_alt( \ + L00, L01, L02, L03, L04, L05, L06, R00, R01, R02, R03, R04, R05, R07, \ + L10, L11, L12, L13, L14, L15, R10, R11, R12, R13, R14, R15, R16, R17, \ + L20, L21, L22, L23, L24, L25, R21, R22, R23, R24, R25, R26, R27, \ + L31, L32, L33, L34, L35, L36, R31, R32, R33, R34, R35, R36, \ + L40, L41, L42, L43, L44, R43, R44, R45, R46, R47 \ +) \ +{ \ + {L00, L01, L02, L03, L04, L05, L06, XXX}, \ + {L10, L11, L12, L13, L14, L15, XXX, XXX}, \ + {L20, L21, L22, L23, L24, L25, XXX, XXX}, \ + {XXX, L31, L32, L33, L34, L35, L36, XXX}, \ + {L40, L41, L42, L43, L44, XXX, XXX, XXX}, \ + {R07, XXX, R05, R04, R03, R02, R01, R00}, \ + {R17, R16, R15, R14, R13, R12, R11, R10}, \ + {R27, R26, R25, R24, R23, R22, R21, XXX}, \ + {XXX, R36, R35, R34, R33, R32, R31, XXX}, \ + {R47, R46, R45, R44, R43, XXX, XXX, XXX}, \ +} + +#define LAYOUT_iso_default( \ + L00, L01, L02, L03, L04, L05, L06, R00, R01, R02, R03, R04, R05, R07, \ + L10, L11, L12, L13, L14, L15, R10, R11, R12, R13, R14, R15, R16, \ + L20, L21, L22, L23, L24, L25, R21, R22, R23, R24, R25, R26, R17, R27, \ + L31, L32, L33, L34, L35, L36, R31, R32, R33, R34, R35, R36, \ + L40, L41, L42, L43, L44, R43, R44, R42, R45, R46, R47 \ +) \ +{ \ + {L00, L01, L02, L03, L04, L05, L06, XXX}, \ + {L10, L11, L12, L13, L14, L15, XXX, XXX}, \ + {L20, L21, L22, L23, L24, L25, XXX, XXX}, \ + {XXX, L31, L32, L33, L34, L35, L36, XXX}, \ + {L40, L41, L42, L43, L44, XXX, XXX, XXX}, \ + {R07, XXX, R05, R04, R03, R02, R01, R00}, \ + {R17, R16, R15, R14, R13, R12, R11, R10}, \ + {R27, R26, R25, R24, R23, R22, R21, XXX}, \ + {XXX, R36, R35, R34, R33, R32, R31, XXX}, \ + {R47, R46, R45, R44, R43, R42, XXX, XXX}, \ +} + +#define LAYOUT_iso_alt( \ + L00, L01, L02, L03, L04, L05, L06, R00, R01, R02, R03, R04, R05, R07, \ + L10, L11, L12, L13, L14, L15, R10, R11, R12, R13, R14, R15, R16, R17, \ + L20, L21, L22, L23, L24, L25, R21, R22, R23, R24, R25, R26, R27, \ + L31, L32, L33, L34, L35, L36, R31, R32, R33, R34, R35, R36, \ + L40, L41, L42, L43, L44, R43, R44, R45, R46, R47 \ +) \ +{ \ + {L00, L01, L02, L03, L04, L05, L06, XXX}, \ + {L10, L11, L12, L13, L14, L15, XXX, XXX}, \ + {L20, L21, L22, L23, L24, L25, XXX, XXX}, \ + {XXX, L31, L32, L33, L34, L35, L36, XXX}, \ + {L40, L41, L42, L43, L44, XXX, XXX, XXX}, \ + {R07, XXX, R05, R04, R03, R02, R01, R00}, \ + {R17, R16, R15, R14, R13, R12, R11, R10}, \ + {R27, R26, R25, R24, R23, R22, R21, XXX}, \ + {XXX, R36, R35, R34, R33, R32, R31, XXX}, \ + {R47, R46, R45, R44, R43, XXX, XXX, XXX}, \ +} + +#define LAYOUT_hhkb_default( \ + L00, L01, L02, L03, L04, L05, L06, R00, R01, R02, R03, R04, R05, R06, R07, \ + L10, L11, L12, L13, L14, L15, R10, R11, R12, R13, R14, R15, R16, R17, \ + L20, L21, L22, L23, L24, L25, R21, R22, R23, R24, R25, R26, R27, \ + L31, L32, L33, L34, L35, L36, R31, R32, R33, R34, R35, R36, R37, \ + L41, L42, L43, L44, R43, R44, R45, R46 \ +) \ +{ \ + {L00, L01, L02, L03, L04, L05, L06, XXX}, \ + {L10, L11, L12, L13, L14, L15, XXX, XXX}, \ + {L20, L21, L22, L23, L24, L25, XXX, XXX}, \ + {XXX, L31, L32, L33, L34, L35, L36, XXX}, \ + {XXX, L41, L42, L43, L44, XXX, XXX, XXX}, \ + {R07, R06, R05, R04, R03, R02, R01, R00}, \ + {R17, R16, R15, R14, R13, R12, R11, R10}, \ + {R27, R26, R25, R24, R23, R22, R21, XXX}, \ + {R37, R36, R35, R34, R33, R32, R31, XXX}, \ + {XXX, R46, R45, R44, R43, XXX, XXX, XXX}, \ +} + +#define LAYOUT_hhkb_split_lshift( \ + L00, L01, L02, L03, L04, L05, L06, R00, R01, R02, R03, R04, R05, R06, R07, \ + L10, L11, L12, L13, L14, L15, R10, R11, R12, R13, R14, R15, R16, R17, \ + L20, L21, L22, L23, L24, L25, R21, R22, R23, R24, R25, R26, R27, \ + L30, L31, L32, L33, L34, L35, L36, R31, R32, R33, R34, R35, R36, R37, \ + L41, L42, L43, L44, R43, R44, R45, R46 \ +) \ +{ \ + {L00, L01, L02, L03, L04, L05, L06, XXX}, \ + {L10, L11, L12, L13, L14, L15, XXX, XXX}, \ + {L20, L21, L22, L23, L24, L25, XXX, XXX}, \ + {L30, L31, L32, L33, L34, L35, L36, XXX}, \ + {XXX, L41, L42, L43, L44, XXX, XXX, XXX}, \ + {R07, R06, R05, R04, R03, R02, R01, R00}, \ + {R17, R16, R15, R14, R13, R12, R11, R10}, \ + {R27, R26, R25, R24, R23, R22, R21, XXX}, \ + {R37, R36, R35, R34, R33, R32, R31, XXX}, \ + {XXX, R46, R45, R44, R43, XXX, XXX, XXX}, \ +} + +#define LAYOUT_wkl_default( \ + L00, L01, L02, L03, L04, L05, L06, R00, R01, R02, R03, R04, R05, R07, \ + L10, L11, L12, L13, L14, L15, R10, R11, R12, R13, R14, R15, R16, R17, \ + L20, L21, L22, L23, L24, L25, R21, R22, R23, R24, R25, R26, R27, \ + L31, L32, L33, L34, L35, L36, R31, R32, R33, R34, R35, R36, \ + L40, L42, L43, L44, R43, R44, R45, R47 \ +) \ +{ \ + {L00, L01, L02, L03, L04, L05, L06, XXX}, \ + {L10, L11, L12, L13, L14, L15, XXX, XXX}, \ + {L20, L21, L22, L23, L24, L25, XXX, XXX}, \ + {XXX, L31, L32, L33, L34, L35, L36, XXX}, \ + {L40, XXX, L42, L43, L44, XXX, XXX, XXX}, \ + {R07, XXX, R05, R04, R03, R02, R01, R00}, \ + {R17, R16, R15, R14, R13, R12, R11, R10}, \ + {R27, R26, R25, R24, R23, R22, R21, XXX}, \ + {XXX, R36, R35, R34, R33, R32, R31, XXX}, \ + {R47, XXX, R45, R44, R43, XXX, XXX, XXX}, \ +} + + +#endif diff --git a/keyboards/handwired/qc60/proto/rules.mk b/keyboards/handwired/qc60/proto/rules.mk new file mode 100644 index 000000000..7ad666d1a --- /dev/null +++ b/keyboards/handwired/qc60/proto/rules.mk @@ -0,0 +1 @@ +RGBLIGHT_ENABLE = yes \ No newline at end of file diff --git a/keyboards/handwired/qc60/qc60.c b/keyboards/handwired/qc60/qc60.c new file mode 100644 index 000000000..dfa77cf08 --- /dev/null +++ b/keyboards/handwired/qc60/qc60.c @@ -0,0 +1 @@ +#include "qc60.h" diff --git a/keyboards/handwired/qc60/qc60.h b/keyboards/handwired/qc60/qc60.h new file mode 100644 index 000000000..55c83aca5 --- /dev/null +++ b/keyboards/handwired/qc60/qc60.h @@ -0,0 +1,26 @@ +#ifndef QC60_H +#define QC60_H + +#include "quantum.h" + +#ifdef KEYBOARD_handwired_qc60_proto + #include "proto.h" +#endif + + +// Used to create a keymap using only KC_ prefixed keys +#define LAYOUT_kc( \ + LA1, LA2, LA3, LA4, LA5, LA6, RA1, RA2, RA3, RA4, RA5, RA6, RA7, \ + LB1, LB2, LB3, LB4, LB5, LB6, RB1, RB2, RB3, RB4, RB5, RB7, \ + LC1, LC2, LC3, LC4, LC5, LC6, RC1, RC3, RC4, RC5, RC6, RC7, \ + LD1, LD2, LD3, LD4, LD5, RD1, RD4, RD5, RD6, RD7 \ + ) \ + LAYOUT( \ + KC_##LA1, KC_##LA2, KC_##LA3, KC_##LA4, KC_##LA5, KC_##LA6, KC_##RA1, KC_##RA2, KC_##RA3, KC_##RA4, KC_##RA5, KC_##RA6, KC_##RA7, \ + KC_##LB1, KC_##LB2, KC_##LB3, KC_##LB4, KC_##LB5, KC_##LB6, KC_##RB1, KC_##RB2, KC_##RB3, KC_##RB4, KC_##RB5, KC_##RB7, \ + KC_##LC1, KC_##LC2, KC_##LC3, KC_##LC4, KC_##LC5, KC_##LC6, KC_##RC1, KC_##RC3, KC_##RC4, KC_##RC5, KC_##RC6, KC_##RC7, \ + KC_##LD1, KC_##LD2, KC_##LD3, KC_##LD4, KC_##LD5, KC_##RD1, KC_##RD4, KC_##RD5, KC_##RD6, KC_##RD7 \ + ) + + +#endif diff --git a/keyboards/handwired/qc60/rules.mk b/keyboards/handwired/qc60/rules.mk new file mode 100644 index 000000000..1be83d5f8 --- /dev/null +++ b/keyboards/handwired/qc60/rules.mk @@ -0,0 +1,68 @@ +# MCU name +#MCU = at90usb1287 +MCU = atmega32u4 + +# Processor frequency. +# This will define a symbol, F_CPU, in all source code files equal to the +# processor frequency in Hz. You can then use this symbol in your source code to +# calculate timings. Do NOT tack on a 'UL' at the end, this will be done +# automatically to create a 32-bit value in your source code. +# +# This will be an integer division of F_USB below, as it is sourced by +# F_USB after it has run through any CPU prescalers. Note that this value +# does not *change* the processor frequency - it should merely be updated to +# reflect the processor speed set externally so that the code can use accurate +# software delays. +F_CPU = 16000000 + +# +# LUFA specific +# +# Target architecture (see library "Board Types" documentation). +ARCH = AVR8 + +# Input clock frequency. +# This will define a symbol, F_USB, in all source code files equal to the +# input clock frequency (before any prescaling is performed) in Hz. This value may +# differ from F_CPU if prescaling is used on the latter, and is required as the +# raw input clock is fed directly to the PLL sections of the AVR for high speed +# clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL' +# at the end, this will be done automatically to create a 32-bit value in your +# source code. +# +# If no clock division is performed on the input clock inside the AVR (via the +# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU. +F_USB = $(F_CPU) + +# Bootloader +# This definition is optional, and if your keyboard supports multiple bootloaders of +# different sizes, comment this out, and the correct address will be loaded +# automatically (+60). See bootloader.mk for all options. +BOOTLOADER = caterina + +# Interrupt driven control endpoint task(+60) +OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT + +# Build Options +# change to "no" to disable the options, or define them in the Makefile in +# the appropriate keymap folder that will get included automatically +# +BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000) +MOUSEKEY_ENABLE = no # Mouse keys(+4700) +EXTRAKEY_ENABLE = yes # Audio control and System control(+450) +CONSOLE_ENABLE = no # Console for debug(+400) +COMMAND_ENABLE = no # Commands for debug and configuration +NKRO_ENABLE = no # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work +BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality +MIDI_ENABLE = no # MIDI controls +AUDIO_ENABLE = no # Audio output on port C6 +UNICODE_ENABLE = no # Unicode +BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID +RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. Do not enable this with audio at the same time. + +SPLIT_KEYBOARD = yes + +# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE +SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend + +DEFAULT_FOLDER = handwired/qc60/proto