diff options
author | Andrew Kannan <andrew.kannan@klaviyo.com> | 2019-01-29 23:04:20 -0500 |
---|---|---|
committer | Drashna Jaelre <drashna@live.com> | 2019-01-29 20:04:20 -0800 |
commit | 7186d1581abbd97d7c76626ae83fc866e85d217c (patch) | |
tree | 1a6cf65f38f00f48e1539a8c01418cf770119a37 /keyboards | |
parent | 74fcfd533508d5743a20a7cd7faba404f8fc7cd3 (diff) |
Moving cannonkeys boards to one place, eeprom fix (#4999)
* Move boards to cannonkeys and share resources
* Share common files between cannonkey boards
* Fix ortho60 keymap
* update LED numbers
* Add RGB keys to Ortho60 and Ortho48
* Add Backlight control to default layout Ortho60 and 48
* Remove unnecessary ws2812.c SRC from rules.mk
Diffstat (limited to 'keyboards')
-rw-r--r-- | keyboards/cannonkeys/bluepill/keyboard.c (renamed from keyboards/handwired/practice60/practice60.c) | 7 | ||||
-rw-r--r-- | keyboards/cannonkeys/bluepill/led.c (renamed from keyboards/handwired/practice60/led.c) | 0 | ||||
-rw-r--r-- | keyboards/cannonkeys/bluepill/led_custom.h (renamed from keyboards/handwired/practice60/led_custom.h) | 0 | ||||
-rw-r--r-- | keyboards/cannonkeys/bluepill/ws2812.c (renamed from keyboards/handwired/practice60/ws2812.c) | 0 | ||||
-rw-r--r-- | keyboards/cannonkeys/bluepill/ws2812.h (renamed from keyboards/handwired/practice60/ws2812.h) | 0 | ||||
-rw-r--r-- | keyboards/cannonkeys/ortho48/boards/GENERIC_STM32_F103/board.c (renamed from keyboards/handwired/ortho60/boards/GENERIC_STM32_F103/board.c) | 0 | ||||
-rw-r--r-- | keyboards/cannonkeys/ortho48/boards/GENERIC_STM32_F103/board.h (renamed from keyboards/handwired/ortho60/boards/GENERIC_STM32_F103/board.h) | 0 | ||||
-rw-r--r-- | keyboards/cannonkeys/ortho48/boards/GENERIC_STM32_F103/board.mk (renamed from keyboards/handwired/ortho60/boards/GENERIC_STM32_F103/board.mk) | 0 | ||||
-rw-r--r-- | keyboards/cannonkeys/ortho48/bootloader_defs.h (renamed from keyboards/handwired/practice60/bootloader_defs.h) | 0 | ||||
-rw-r--r-- | keyboards/cannonkeys/ortho48/chconf.h (renamed from keyboards/handwired/ortho60/chconf.h) | 0 | ||||
-rw-r--r-- | keyboards/cannonkeys/ortho48/config.h | 80 | ||||
-rw-r--r-- | keyboards/cannonkeys/ortho48/halconf.h (renamed from keyboards/handwired/practice60/halconf.h) | 0 | ||||
-rw-r--r-- | keyboards/cannonkeys/ortho48/info.json | 112 | ||||
-rw-r--r-- | keyboards/cannonkeys/ortho48/keymaps/default/keymap.c | 89 | ||||
-rw-r--r-- | keyboards/cannonkeys/ortho48/ld/MKL26Z64.ld (renamed from keyboards/handwired/ortho60/ld/MKL26Z64.ld) | 0 | ||||
-rw-r--r-- | keyboards/cannonkeys/ortho48/ld/STM32F103x8_stm32duino_bootloader.ld (renamed from keyboards/handwired/ortho60/ld/STM32F103x8_stm32duino_bootloader.ld) | 0 | ||||
-rw-r--r-- | keyboards/cannonkeys/ortho48/mcuconf.h (renamed from keyboards/handwired/practice60/mcuconf.h) | 0 | ||||
-rw-r--r-- | keyboards/cannonkeys/ortho48/ortho48.c | 3 | ||||
-rw-r--r-- | keyboards/cannonkeys/ortho48/ortho48.h | 29 | ||||
-rw-r--r-- | keyboards/cannonkeys/ortho48/readme.md | 12 | ||||
-rw-r--r-- | keyboards/cannonkeys/ortho48/rules.mk (renamed from keyboards/handwired/practice60/rules.mk) | 7 | ||||
-rw-r--r-- | keyboards/cannonkeys/ortho60/boards/GENERIC_STM32_F103/board.c (renamed from keyboards/handwired/practice60/boards/GENERIC_STM32_F103/board.c) | 0 | ||||
-rw-r--r-- | keyboards/cannonkeys/ortho60/boards/GENERIC_STM32_F103/board.h (renamed from keyboards/handwired/practice60/boards/GENERIC_STM32_F103/board.h) | 0 | ||||
-rw-r--r-- | keyboards/cannonkeys/ortho60/boards/GENERIC_STM32_F103/board.mk (renamed from keyboards/handwired/practice60/boards/GENERIC_STM32_F103/board.mk) | 0 | ||||
-rw-r--r-- | keyboards/cannonkeys/ortho60/bootloader_defs.h (renamed from keyboards/handwired/ortho60/bootloader_defs.h) | 2 | ||||
-rw-r--r-- | keyboards/cannonkeys/ortho60/chconf.h (renamed from keyboards/handwired/practice60/chconf.h) | 0 | ||||
-rw-r--r-- | keyboards/cannonkeys/ortho60/config.h (renamed from keyboards/handwired/ortho60/config.h) | 13 | ||||
-rw-r--r-- | keyboards/cannonkeys/ortho60/halconf.h (renamed from keyboards/handwired/ortho60/halconf.h) | 2 | ||||
-rw-r--r-- | keyboards/cannonkeys/ortho60/info.json (renamed from keyboards/handwired/ortho60/info.json) | 0 | ||||
-rw-r--r-- | keyboards/cannonkeys/ortho60/keymaps/default/keymap.c (renamed from keyboards/handwired/ortho60/keymaps/default/keymap.c) | 6 | ||||
-rw-r--r-- | keyboards/cannonkeys/ortho60/ld/MKL26Z64.ld (renamed from keyboards/handwired/practice60/ld/MKL26Z64.ld) | 0 | ||||
-rw-r--r-- | keyboards/cannonkeys/ortho60/ld/STM32F103x8_stm32duino_bootloader.ld (renamed from keyboards/handwired/practice60/ld/STM32F103x8_stm32duino_bootloader.ld) | 0 | ||||
-rw-r--r-- | keyboards/cannonkeys/ortho60/mcuconf.h (renamed from keyboards/handwired/ortho60/mcuconf.h) | 2 | ||||
-rw-r--r-- | keyboards/cannonkeys/ortho60/ortho60.c | 3 | ||||
-rw-r--r-- | keyboards/cannonkeys/ortho60/ortho60.h (renamed from keyboards/handwired/ortho60/ortho60.h) | 0 | ||||
-rw-r--r-- | keyboards/cannonkeys/ortho60/readme.md (renamed from keyboards/handwired/ortho60/readme.md) | 2 | ||||
-rw-r--r-- | keyboards/cannonkeys/ortho60/rules.mk (renamed from keyboards/handwired/ortho60/rules.mk) | 5 | ||||
-rw-r--r-- | keyboards/cannonkeys/practice60/boards/GENERIC_STM32_F103/board.c | 56 | ||||
-rw-r--r-- | keyboards/cannonkeys/practice60/boards/GENERIC_STM32_F103/board.h | 166 | ||||
-rw-r--r-- | keyboards/cannonkeys/practice60/boards/GENERIC_STM32_F103/board.mk | 5 | ||||
-rw-r--r-- | keyboards/cannonkeys/practice60/bootloader_defs.h | 10 | ||||
-rw-r--r-- | keyboards/cannonkeys/practice60/chconf.h | 524 | ||||
-rw-r--r-- | keyboards/cannonkeys/practice60/config.h (renamed from keyboards/handwired/practice60/config.h) | 0 | ||||
-rw-r--r-- | keyboards/cannonkeys/practice60/halconf.h | 353 | ||||
-rw-r--r-- | keyboards/cannonkeys/practice60/info.json (renamed from keyboards/handwired/practice60/info.json) | 0 | ||||
-rw-r--r-- | keyboards/cannonkeys/practice60/keymaps/default/keymap.c (renamed from keyboards/handwired/practice60/keymaps/default/keymap.c) | 0 | ||||
-rw-r--r-- | keyboards/cannonkeys/practice60/ld/MKL26Z64.ld | 105 | ||||
-rw-r--r-- | keyboards/cannonkeys/practice60/ld/STM32F103x8_stm32duino_bootloader.ld | 88 | ||||
-rw-r--r-- | keyboards/cannonkeys/practice60/mcuconf.h | 209 | ||||
-rw-r--r-- | keyboards/cannonkeys/practice60/practice60.c | 2 | ||||
-rw-r--r-- | keyboards/cannonkeys/practice60/practice60.h (renamed from keyboards/handwired/practice60/practice60.h) | 0 | ||||
-rw-r--r-- | keyboards/cannonkeys/practice60/readme.md | 12 | ||||
-rw-r--r-- | keyboards/cannonkeys/practice60/rules.mk | 57 | ||||
-rw-r--r-- | keyboards/handwired/ortho60/hsv2rgb.c | 80 | ||||
-rw-r--r-- | keyboards/handwired/ortho60/hsv2rgb.h | 23 | ||||
-rw-r--r-- | keyboards/handwired/ortho60/led.c | 51 | ||||
-rw-r--r-- | keyboards/handwired/ortho60/ortho60.c | 32 | ||||
-rw-r--r-- | keyboards/handwired/ortho60/underglow.c | 157 | ||||
-rw-r--r-- | keyboards/handwired/ortho60/underglow.h | 10 | ||||
-rw-r--r-- | keyboards/handwired/practice60/readme.md | 3 |
60 files changed, 1941 insertions, 376 deletions
diff --git a/keyboards/handwired/practice60/practice60.c b/keyboards/cannonkeys/bluepill/keyboard.c index acc0f00e53..865628eccd 100644 --- a/keyboards/handwired/practice60/practice60.c +++ b/keyboards/cannonkeys/bluepill/keyboard.c @@ -1,14 +1,9 @@ - -#include "practice60.h" - #include "ch.h" #include "hal.h" #include "led_custom.h" -#include "print.h" -#include "debug.h" #include "util.h" +#include "quantum.h" -/* generic STM32F103C8T6 board */ #ifdef BOARD_GENERIC_STM32_F103 #define LED_ON() do { palClearPad(GPIOC, 13) ;} while (0) #define LED_OFF() do { palSetPad(GPIOC, 13); } while (0) diff --git a/keyboards/handwired/practice60/led.c b/keyboards/cannonkeys/bluepill/led.c index a9ede5bbaa..a9ede5bbaa 100644 --- a/keyboards/handwired/practice60/led.c +++ b/keyboards/cannonkeys/bluepill/led.c diff --git a/keyboards/handwired/practice60/led_custom.h b/keyboards/cannonkeys/bluepill/led_custom.h index 8451c06d6f..8451c06d6f 100644 --- a/keyboards/handwired/practice60/led_custom.h +++ b/keyboards/cannonkeys/bluepill/led_custom.h diff --git a/keyboards/handwired/practice60/ws2812.c b/keyboards/cannonkeys/bluepill/ws2812.c index 7d0f909c0c..7d0f909c0c 100644 --- a/keyboards/handwired/practice60/ws2812.c +++ b/keyboards/cannonkeys/bluepill/ws2812.c diff --git a/keyboards/handwired/practice60/ws2812.h b/keyboards/cannonkeys/bluepill/ws2812.h index 3b61ddcfa9..3b61ddcfa9 100644 --- a/keyboards/handwired/practice60/ws2812.h +++ b/keyboards/cannonkeys/bluepill/ws2812.h diff --git a/keyboards/handwired/ortho60/boards/GENERIC_STM32_F103/board.c b/keyboards/cannonkeys/ortho48/boards/GENERIC_STM32_F103/board.c index 8c5a87f35f..8c5a87f35f 100644 --- a/keyboards/handwired/ortho60/boards/GENERIC_STM32_F103/board.c +++ b/keyboards/cannonkeys/ortho48/boards/GENERIC_STM32_F103/board.c diff --git a/keyboards/handwired/ortho60/boards/GENERIC_STM32_F103/board.h b/keyboards/cannonkeys/ortho48/boards/GENERIC_STM32_F103/board.h index 9427adabf1..9427adabf1 100644 --- a/keyboards/handwired/ortho60/boards/GENERIC_STM32_F103/board.h +++ b/keyboards/cannonkeys/ortho48/boards/GENERIC_STM32_F103/board.h diff --git a/keyboards/handwired/ortho60/boards/GENERIC_STM32_F103/board.mk b/keyboards/cannonkeys/ortho48/boards/GENERIC_STM32_F103/board.mk index 6b8b312fd9..6b8b312fd9 100644 --- a/keyboards/handwired/ortho60/boards/GENERIC_STM32_F103/board.mk +++ b/keyboards/cannonkeys/ortho48/boards/GENERIC_STM32_F103/board.mk diff --git a/keyboards/handwired/practice60/bootloader_defs.h b/keyboards/cannonkeys/ortho48/bootloader_defs.h index 6b8fa9f727..6b8fa9f727 100644 --- a/keyboards/handwired/practice60/bootloader_defs.h +++ b/keyboards/cannonkeys/ortho48/bootloader_defs.h diff --git a/keyboards/handwired/ortho60/chconf.h b/keyboards/cannonkeys/ortho48/chconf.h index bbd9b2da62..bbd9b2da62 100644 --- a/keyboards/handwired/ortho60/chconf.h +++ b/keyboards/cannonkeys/ortho48/chconf.h diff --git a/keyboards/cannonkeys/ortho48/config.h b/keyboards/cannonkeys/ortho48/config.h new file mode 100644 index 0000000000..497e08bcf5 --- /dev/null +++ b/keyboards/cannonkeys/ortho48/config.h @@ -0,0 +1,80 @@ +/* +Copyright 2015 Jun Wako <wakojun@gmail.com> + +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 + +/* USB Device descriptor parameter */ +#define VENDOR_ID 0xCA04 +#define PRODUCT_ID 0x0248 +#define DEVICE_VER 0x0001 +/* in python2: list(u"whatever".encode('utf-16-le')) */ +/* at most 32 characters or the ugly hack in usb_main.c borks */ +#define MANUFACTURER QMK +#define PRODUCT Ortho48 +#define DESCRIPTION Ortho48 + +/* key matrix size */ +#define MATRIX_ROWS 4 +#define MATRIX_COLS 12 + +#define MATRIX_COL_PINS { B11, B10, B1, B0, A7, A6, A5, B14, A15, A0, C15, C14} +#define MATRIX_ROW_PINS { B12, C13, A2, A1 } +#define DIODE_DIRECTION COL2ROW + +#define BACKLIGHT_LEVELS 6 +#define BACKLIGHT_BREATHING +#define BREATHING_PERIOD 6 + +/* define if matrix has ghost */ +//#define MATRIX_HAS_GHOST + +/* Set 0 if debouncing isn't 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 + +#define RGBLIGHT_ANIMATIONS + +#define WS2812_LED_N 9 +#define RGBLED_NUM WS2812_LED_N +#define PORT_WS2812 GPIOB +#define PIN_WS2812 15 +#define WS2812_SPI SPID2 + + + + +/* + * Feature disable options + * These options are also useful to firmware size reduction. + */ + +/* disable debug print */ +//#define NO_DEBUG + +/* disable print */ +//#define NO_PRINT + +/* disable action features */ +//#define NO_ACTION_LAYER +//#define NO_ACTION_TAPPING +//#define NO_ACTION_ONESHOT +//#define NO_ACTION_MACRO +//#define NO_ACTION_FUNCTION diff --git a/keyboards/handwired/practice60/halconf.h b/keyboards/cannonkeys/ortho48/halconf.h index 72879a575b..72879a575b 100644 --- a/keyboards/handwired/practice60/halconf.h +++ b/keyboards/cannonkeys/ortho48/halconf.h diff --git a/keyboards/cannonkeys/ortho48/info.json b/keyboards/cannonkeys/ortho48/info.json new file mode 100644 index 0000000000..0e834245a1 --- /dev/null +++ b/keyboards/cannonkeys/ortho48/info.json @@ -0,0 +1,112 @@ +{ + "keyboard_name": "Ortho48", + "url": "", + "maintainer": "qmk", + "width": 12, + "height": 4, + "layouts": { + "LAYOUT_ortho_4x12": { + "layout": [ + {"label":"Tab", "x":0, "y":0}, + {"label":"Q", "x":1, "y":0}, + {"label":"W", "x":2, "y":0}, + {"label":"E", "x":3, "y":0}, + {"label":"R", "x":4, "y":0}, + {"label":"T", "x":5, "y":0}, + {"label":"Y", "x":6, "y":0}, + {"label":"U", "x":7, "y":0}, + {"label":"I", "x":8, "y":0}, + {"label":"O", "x":9, "y":0}, + {"label":"P", "x":10, "y":0}, + {"label":"Delete", "x":11, "y":0}, + {"label":"Esc", "x":0, "y":1}, + {"label":"A", "x":1, "y":1}, + {"label":"S", "x":2, "y":1}, + {"label":"D", "x":3, "y":1}, + {"label":"F", "x":4, "y":1}, + {"label":"G", "x":5, "y":1}, + {"label":"H", "x":6, "y":1}, + {"label":"J", "x":7, "y":1}, + {"label":"K", "x":8, "y":1}, + {"label":"L", "x":9, "y":1}, + {"label":";", "x":10, "y":1}, + {"label":"'", "x":11, "y":1}, + {"label":"Shift", "x":0, "y":2}, + {"label":"Z", "x":1, "y":2}, + {"label":"X", "x":2, "y":2}, + {"label":"C", "x":3, "y":2}, + {"label":"V", "x":4, "y":2}, + {"label":"B", "x":5, "y":2}, + {"label":"N", "x":6, "y":2}, + {"label":"M", "x":7, "y":2}, + {"label":",", "x":8, "y":2}, + {"label":".", "x":9, "y":2}, + {"label":"/", "x":10, "y":2}, + {"label":"Enter", "x":11, "y":2}, + {"label":"Fn", "x":0, "y":3}, + {"label":"Ctrl", "x":1, "y":3}, + {"label":"Alt", "x":2, "y":3}, + {"label":"Meta", "x":3, "y":3}, + {"label":"Lower", "x":4, "y":3}, + {"label":"Space", "x":5, "y":3}, + {"label":"Space", "x":6, "y":3}, + {"label":"Raise", "x":7, "y":3}, + {"label":"Left", "x":8, "y":3}, + {"label":"Down", "x":9, "y":3}, + {"label":"Up", "x":10, "y":3}, + {"label":"Right", "x":11, "y":3} + ] + }, + "LAYOUT_1x2uC": { + "layout": [ + {"label":"Tab", "x":0, "y":0}, + {"label":"Q", "x":1, "y":0}, + {"label":"W", "x":2, "y":0}, + {"label":"E", "x":3, "y":0}, + {"label":"R", "x":4, "y":0}, + {"label":"T", "x":5, "y":0}, + {"label":"Y", "x":6, "y":0}, + {"label":"U", "x":7, "y":0}, + {"label":"I", "x":8, "y":0}, + {"label":"O", "x":9, "y":0}, + {"label":"P", "x":10, "y":0}, + {"label":"Delete", "x":11, "y":0}, + {"label":"Esc", "x":0, "y":1}, + {"label":"A", "x":1, "y":1}, + {"label":"S", "x":2, "y":1}, + {"label":"D", "x":3, "y":1}, + {"label":"F", "x":4, "y":1}, + {"label":"G", "x":5, "y":1}, + {"label":"H", "x":6, "y":1}, + {"label":"J", "x":7, "y":1}, + {"label":"K", "x":8, "y":1}, + {"label":"L", "x":9, "y":1}, + {"label":";", "x":10, "y":1}, + {"label":"'", "x":11, "y":1}, + {"label":"Shift", "x":0, "y":2}, + {"label":"Z", "x":1, "y":2}, + {"label":"X", "x":2, "y":2}, + {"label":"C", "x":3, "y":2}, + {"label":"V", "x":4, "y":2}, + {"label":"B", "x":5, "y":2}, + {"label":"N", "x":6, "y":2}, + {"label":"M", "x":7, "y":2}, + {"label":",", "x":8, "y":2}, + {"label":".", "x":9, "y":2}, + {"label":"/", "x":10, "y":2}, + {"label":"Enter", "x":11, "y":2}, + {"label":"Fn", "x":0, "y":3}, + {"label":"Ctrl", "x":1, "y":3}, + {"label":"Alt", "x":2, "y":3}, + {"label":"Meta", "x":3, "y":3}, + {"label":"Lower", "x":4, "y":3}, + {"label":"Space", "x":5, "y":3, "w":2}, + {"label":"Raise", "x":7, "y":3}, + {"label":"Left", "x":8, "y":3}, + {"label":"Down", "x":9, "y":3}, + {"label":"Up", "x":10, "y":3}, + {"label":"Right", "x":11, "y":3} + ] + } + } +} diff --git a/keyboards/cannonkeys/ortho48/keymaps/default/keymap.c b/keyboards/cannonkeys/ortho48/keymaps/default/keymap.c new file mode 100644 index 0000000000..2c3bc80c5d --- /dev/null +++ b/keyboards/cannonkeys/ortho48/keymaps/default/keymap.c @@ -0,0 +1,89 @@ +/* +Copyright 2012,2013 Jun Wako <wakojun@gmail.com> + +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 + +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 _RAISE 1 +#define _LOWER 2 + +enum custom_keycodes { + QWERTY = SAFE_RANGE, + LOWER, + RAISE +}; + +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 | + * |------+------+------+------+------+------+------+------+------+------+------+------| + * | Brite| Ctrl | Alt | GUI |Lower | Space |Raise | Left | Down | Up |Right | + * `-----------------------------------------------------------------------------------' + */ +[_BASE] = LAYOUT_ortho_4x12( + 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 , + BL_TOGG, KC_LCTL, KC_LALT, KC_LGUI, MO(_LOWER), KC_SPC, KC_SPC, MO(_RAISE), 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 | + * `-----------------------------------------------------------------------------------' + */ +[_LOWER] = LAYOUT_ortho_4x12( + 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, _______, + RESET, _______, _______, _______, _______, _______, _______, _______, 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 | + * `-----------------------------------------------------------------------------------' + */ +[_RAISE] = LAYOUT_ortho_4x12( + 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, _______, + RGB_TOG, RGB_MOD, BL_INC, BL_DEC, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY +), +}; diff --git a/keyboards/handwired/ortho60/ld/MKL26Z64.ld b/keyboards/cannonkeys/ortho48/ld/MKL26Z64.ld index c4ca8b874c..c4ca8b874c 100644 --- a/keyboards/handwired/ortho60/ld/MKL26Z64.ld +++ b/keyboards/cannonkeys/ortho48/ld/MKL26Z64.ld diff --git a/keyboards/handwired/ortho60/ld/STM32F103x8_stm32duino_bootloader.ld b/keyboards/cannonkeys/ortho48/ld/STM32F103x8_stm32duino_bootloader.ld index d0688ef601..d0688ef601 100644 --- a/keyboards/handwired/ortho60/ld/STM32F103x8_stm32duino_bootloader.ld +++ b/keyboards/cannonkeys/ortho48/ld/STM32F103x8_stm32duino_bootloader.ld diff --git a/keyboards/handwired/practice60/mcuconf.h b/keyboards/cannonkeys/ortho48/mcuconf.h index fced27289e..fced27289e 100644 --- a/keyboards/handwired/practice60/mcuconf.h +++ b/keyboards/cannonkeys/ortho48/mcuconf.h diff --git a/keyboards/cannonkeys/ortho48/ortho48.c b/keyboards/cannonkeys/ortho48/ortho48.c new file mode 100644 index 0000000000..fe38f02007 --- /dev/null +++ b/keyboards/cannonkeys/ortho48/ortho48.c @@ -0,0 +1,3 @@ + +#include "ortho48.h" + diff --git a/keyboards/cannonkeys/ortho48/ortho48.h b/keyboards/cannonkeys/ortho48/ortho48.h new file mode 100644 index 0000000000..1e51c37af7 --- /dev/null +++ b/keyboards/cannonkeys/ortho48/ortho48.h @@ -0,0 +1,29 @@ +#pragma once + +#include "quantum.h" + +#define LAYOUT_1x2uC( \ + k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, \ + k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, \ + k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, \ + k30, k31, k32, k33, k34, k35 , k37, k38, k39, k3a, k3b \ +) \ +{ \ + { k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b }, \ + { k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b }, \ + { k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b }, \ |