diff options
| author | TerryMathews <terry@terrymathews.net> | 2022-01-10 15:32:46 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-10 12:32:46 -0800 |
| commit | 0e11f8ec202fb5c91b6054705a40070a1c1cec42 (patch) | |
| tree | dc2643a8f87fd2b8c7e387a0b3731deb677e56ad /keyboards/tkc | |
| parent | f423837ed25b7a2c48d59aefaf95a0cf6f2c90b9 (diff) | |
| download | qmk_firmware-0e11f8ec202fb5c91b6054705a40070a1c1cec42.tar.gz qmk_firmware-0e11f8ec202fb5c91b6054705a40070a1c1cec42.zip | |
[Keyboard] TKC California (#15124)
* CALIFORNIA: Initial support for TKC California
* update readme.md, info.json
* Update keyboards/tkc/california/rules.mk
* Update keyboards/tkc/california/rules.mk
* Update keyboards/tkc/california/readme.md
* Update keyboards/tkc/california/rules.mk
* Update keyboards/tkc/california/info.json
Diffstat (limited to 'keyboards/tkc')
| -rw-r--r-- | keyboards/tkc/california/california.c | 18 | ||||
| -rw-r--r-- | keyboards/tkc/california/california.h | 50 | ||||
| -rw-r--r-- | keyboards/tkc/california/config.h | 123 | ||||
| -rw-r--r-- | keyboards/tkc/california/info.json | 10 | ||||
| -rw-r--r-- | keyboards/tkc/california/keymaps/default/keymap.c | 29 | ||||
| -rw-r--r-- | keyboards/tkc/california/keymaps/via/keymap.c | 38 | ||||
| -rw-r--r-- | keyboards/tkc/california/keymaps/via/rules.mk | 2 | ||||
| -rw-r--r-- | keyboards/tkc/california/readme.md | 21 | ||||
| -rw-r--r-- | keyboards/tkc/california/rules.mk | 18 |
9 files changed, 309 insertions, 0 deletions
diff --git a/keyboards/tkc/california/california.c b/keyboards/tkc/california/california.c new file mode 100644 index 000000000..002732208 --- /dev/null +++ b/keyboards/tkc/california/california.c | |||
| @@ -0,0 +1,18 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2021 Terry Mathews | ||
| 3 | |||
| 4 | This program is free software: you can redistribute it and/or modify | ||
| 5 | it under the terms of the GNU General Public License as published by | ||
| 6 | the Free Software Foundation, either version 2 of the License, or | ||
| 7 | (at your option) any later version. | ||
| 8 | |||
| 9 | This program is distributed in the hope that it will be useful, | ||
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | GNU General Public License for more details. | ||
| 13 | |||
| 14 | You should have received a copy of the GNU General Public License | ||
| 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 16 | */ | ||
| 17 | |||
| 18 | #include "california.h" | ||
diff --git a/keyboards/tkc/california/california.h b/keyboards/tkc/california/california.h new file mode 100644 index 000000000..a438e6a02 --- /dev/null +++ b/keyboards/tkc/california/california.h | |||
| @@ -0,0 +1,50 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2021 Terry Mathews | ||
| 3 | |||
| 4 | This program is free software: you can redistribute it and/or modify | ||
| 5 | it under the terms of the GNU General Public License as published by | ||
| 6 | the Free Software Foundation, either version 2 of the License, or | ||
| 7 | (at your option) any later version. | ||
| 8 | |||
| 9 | This program is distributed in the hope that it will be useful, | ||
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | GNU General Public License for more details. | ||
| 13 | |||
| 14 | You should have received a copy of the GNU General Public License | ||
| 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 16 | */ | ||
| 17 | |||
| 18 | #pragma once | ||
| 19 | |||
| 20 | #include "quantum.h" | ||
| 21 | |||
| 22 | /* This a shortcut to help you visually see your layout. | ||
| 23 | * | ||
| 24 | * The first section contains all of the arguments representing the physical | ||
| 25 | * layout of the board and position of the keys. | ||
| 26 | * | ||
| 27 | * The second converts the arguments into a two-dimensional array which | ||
| 28 | * represents the switch matrix. | ||
| 29 | */ | ||
| 30 | #define LAYOUT_all( \ | ||
| 31 | K00, K02, K03, K04, K05, K06, K07, K08, K09, K61, K62, K63, K64, K65, K66, K67, K68, K69, \ | ||
| 32 | K10, k11, K12, K13, K14, K15, K16, K17, K18, K19, K70, K71, K72, K73, K74, K75, K76, K77, K78, K79, \ | ||
| 33 | K20, K22, K23, K24, K25, K26, K27, K28, K29, K80, K81, K82, K83, K84, K85, K86, K87, K88, K89, \ | ||
| 34 | K30, K32, K33, K34, K35, K36, K37, K38, K39, K90, K91, K92, K93, K96, K97, K98, K99, \ | ||
| 35 | K40, K42, K43, K44, K45, K46, K47, K48, K49, KA0, KA1, KA2, KA4, KA5, KA6, KA7, KA8, KA9, \ | ||
| 36 | K50, K51, K52, K55, K58, KB0, KB2, KB4, KB5, KB6, KB7, KB8, KB9 \ | ||
| 37 | ) { \ | ||
| 38 | { K00, KC_NO, K02, K03, K04, K05, K06, K07, K08, K09 }, \ | ||
| 39 | { K10, k11, K12, K13, K14, K15, K16, K17, K18, K19 }, \ | ||
| 40 | { K20, KC_NO, K22, K23, K24, K25, K26, K27, K28, K29 }, \ | ||
| 41 | { K30, KC_NO, K32, K33, K34, K35, K36, K37, K38, K39 }, \ | ||
| 42 | { K40, KC_NO, K42, K43, K44, K45, K46, K47, K48, K49 }, \ | ||
| 43 | { K50, K51, K52, KC_NO, KC_NO, K55, KC_NO, KC_NO, K58, KC_NO }, \ | ||
| 44 | { KC_NO, K61, K62, K63, K64, K65, K66, K67, K68, K69 }, \ | ||
| 45 | { K70, K71, K72, K73, K74, K75, K76, K77, K78, K79 }, \ | ||
| 46 | { K80, K81, K82, K83, K84, K85, K86, K87, K88, K89 }, \ | ||
| 47 | { K90, K91, K92, K93, KC_NO, KC_NO, K96, K97, K98, K99 }, \ | ||
| 48 | { KA0, KA1, KA2, KC_NO, KA4, KA5, KA6, KA7, KA8, KA9 }, \ | ||
| 49 | { KB0, KC_NO, KB2, KC_NO, KB4, KB5, KB6, KB7, KB8, KB9 } \ | ||
| 50 | } | ||
diff --git a/keyboards/tkc/california/config.h b/keyboards/tkc/california/config.h new file mode 100644 index 000000000..782086914 --- /dev/null +++ b/keyboards/tkc/california/config.h | |||
| @@ -0,0 +1,123 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2021 Terry Mathews | ||
| 3 | |||
| 4 | This program is free software: you can redistribute it and/or modify | ||
| 5 | it under the terms of the GNU General Public License as published by | ||
| 6 | the Free Software Foundation, either version 2 of the License, or | ||
| 7 | (at your option) any later version. | ||
| 8 | |||
| 9 | This program is distributed in the hope that it will be useful, | ||
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | GNU General Public License for more details. | ||
| 13 | |||
| 14 | You should have received a copy of the GNU General Public License | ||
| 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 16 | */ | ||
| 17 | |||
| 18 | #pragma once | ||
| 19 | |||
| 20 | #include "config_common.h" | ||
| 21 | |||
| 22 | /* USB Device descriptor parameter */ | ||
| 23 | #define VENDOR_ID 0x544B //TK | ||
| 24 | #define PRODUCT_ID 0x0009 | ||
| 25 | #define DEVICE_VER 0x0001 | ||
| 26 | #define MANUFACTURER TKC | ||
| 27 | #define PRODUCT California | ||
| 28 | |||
| 29 | /* key matrix size */ | ||
| 30 | #define MATRIX_ROWS 12 | ||
| 31 | #define MATRIX_COLS 10 | ||
| 32 | |||
| 33 | #define DYNAMIC_KEYMAP_LAYER_COUNT 2 //Reduced layer count due to memory space considerations | ||
| 34 | |||
| 35 | /* | ||
| 36 | * Keyboard Matrix Assignments | ||
| 37 | * | ||
| 38 | * Change this to how you wired your keyboard | ||
| 39 | * COLS: AVR pins used for columns, left to right | ||
| 40 | * ROWS: AVR pins used for rows, top to bottom | ||
| 41 | * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode) | ||
| 42 | * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) | ||
| 43 | * | ||
| 44 | */ | ||
| 45 | #define MATRIX_ROW_PINS { C7, C6, B6, D4, D3, D0, E6, B0, B1, B2, D2, B3 } | ||
| 46 | #define MATRIX_COL_PINS { B5, B4, D7, D6, F7, F6, F5, D5, D1, F4 } | ||
| 47 | #define UNUSED_PINS | ||
| 48 | |||
| 49 | /* COL2ROW, ROW2COL*/ | ||
| 50 | #define DIODE_DIRECTION ROW2COL | ||
| 51 | |||
| 52 | /* | ||
| 53 | * Split Keyboard specific options, make sure you have 'SPLIT_KEYBOARD = yes' in your rules.mk, and define SOFT_SERIAL_PIN. | ||
| 54 | */ | ||
| 55 | //#define SOFT_SERIAL_PIN D0 // or D1, D2, D3, E6 | ||
| 56 | #define BACKLIGHT_PIN B7 | ||
| 57 | #ifdef BACKLIGHT_PIN | ||
| 58 | #define BACKLIGHT_BREATHING | ||
| 59 | #define BACKLIGHT_LEVELS 3 | ||
| 60 | #endif | ||
| 61 | #define LED_NUM_LOCK_PIN F1 | ||
| 62 | #define LED_CAPS_LOCK_PIN F0 | ||
| 63 | |||
| 64 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
| 65 | #define DEBOUNCE 5 | ||
| 66 | |||
| 67 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | ||
| 68 | //#define MATRIX_HAS_GHOST | ||
| 69 | |||
| 70 | /* number of backlight levels */ | ||
| 71 | |||
| 72 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 73 | #define LOCKING_SUPPORT_ENABLE | ||
| 74 | /* Locking resynchronize hack */ | ||
| 75 | #define LOCKING_RESYNC_ENABLE | ||
| 76 | |||
| 77 | /* If defined, GRAVE_ESC will always act as ESC when CTRL is held. | ||
| 78 | * This is userful for the Windows task manager shortcut (ctrl+shift+esc). | ||
| 79 | */ | ||
| 80 | // #define GRAVE_ESC_CTRL_OVERRIDE | ||
| 81 | |||
| 82 | /* | ||
| 83 | * Force NKRO | ||
| 84 | * | ||
| 85 | * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved | ||
| 86 | * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the | ||
| 87 | * makefile for this to work.) | ||
| 88 | * | ||
| 89 | * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N) | ||
| 90 | * until the next keyboard reset. | ||
| 91 | * | ||
| 92 | * NKRO may prevent your keystrokes from being detected in the BIOS, but it is | ||
| 93 | * fully operational during normal computer usage. | ||
| 94 | * | ||
| 95 | * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N) | ||
| 96 | * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by | ||
| 97 | * bootmagic, NKRO mode will always be enabled until it is toggled again during a | ||
| 98 | * power-up. | ||
| 99 | * | ||
| 100 | */ | ||
| 101 | //#define FORCE_NKRO | ||
| 102 | |||
| 103 | /* | ||
| 104 | * Feature disable options | ||
| 105 | * These options are also useful to firmware size reduction. | ||
| 106 | */ | ||
| 107 | |||
| 108 | /* disable debug print */ | ||
| 109 | //#define NO_DEBUG | ||
| 110 | |||
| 111 | /* disable print */ | ||
| 112 | //#define NO_PRINT | ||
| 113 | |||
| 114 | /* disable action features */ | ||
| 115 | //#define NO_ACTION_LAYER | ||
| 116 | //#define NO_ACTION_TAPPING | ||
| 117 | //#define NO_ACTION_ONESHOT | ||
| 118 | //#define NO_ACTION_MACRO | ||
| 119 | //#define NO_ACTION_FUNCTION | ||
| 120 | |||
| 121 | /* Bootmagic Lite key configuration */ | ||
| 122 | // #define BOOTMAGIC_LITE_ROW 0 | ||
| 123 | // #define BOOTMAGIC_LITE_COLUMN 0 | ||
diff --git a/keyboards/tkc/california/info.json b/keyboards/tkc/california/info.json new file mode 100644 index 000000000..ef55e0e2e --- /dev/null +++ b/keyboards/tkc/california/info.json | |||
| @@ -0,0 +1,10 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "TKC California", | ||
| 3 | "url": "", | ||
| 4 | "maintainer": "TerryMathews", | ||
| 5 | "layouts": { | ||
| 6 | "LAYOUT_all": { | ||
| 7 | "layout": [{"label":"Esc", "x":0, "y":0}, {"label":"F1", "x":2, "y":0}, {"label":"F2", "x":3, "y":0}, {"label":"F3", "x":4, "y":0}, {"label":"F4", "x":5, "y":0}, {"label":"F5", "x":6.5, "y":0}, {"label":"F6", "x":7.5, "y":0}, {"label":"F7", "x":8.5, "y":0}, {"label":"F8", "x":9.5, "y":0}, {"label":"F9", "x":11, "y":0}, {"label":"F10", "x":12, "y":0}, {"label":"F11", "x":13, "y":0}, {"label":"F12", "x":14, "y":0}, {"label":"PrtSc", "x":15.5, "y":0}, {"label":"Home", "x":17, "y":0}, {"label":"End", "x":18, "y":0}, {"label":"Scroll Lock", "x":19, "y":0}, {"label":"Pause", "x":20, "y":0}, {"label":"~", "x":0, "y":1.5}, {"label":"!", "x":1, "y":1.5}, {"label":"@", "x":2, "y":1.5}, {"label":"#", "x":3, "y":1.5}, {"label":"$", "x":4, "y":1.5}, {"label":"%", "x":5, "y":1.5}, {"label":"^", "x":6, "y":1.5}, {"label":"&", "x":7, "y":1.5}, {"label":"*", "x":8, "y":1.5}, {"label":"(", "x":9, "y":1.5}, {"label":")", "x":10, "y":1.5}, {"label":"_", "x":11, "y":1.5}, {"label":"+", "x":12, "y":1.5}, {"label":"Bksp", "x":13, "y":1.5}, {"x":14, "y":1.5}, {"label":"PgUp", "x":15.5, "y":1.5}, {"label":"Num Lock", "x":17, "y":1.5}, {"label":"/", "x":18, "y":1.5}, {"label":"*", "x":19, "y":1.5}, {"label":"-", "x":20, "y":1.5}, {"label":"Tab", "x":0, "y":2.5, "w":1.5}, {"label":"Q", "x":1.5, "y":2.5}, {"label":"W", "x":2.5, "y":2.5}, {"label":"E", "x":3.5, "y":2.5}, {"label":"R", "x":4.5, "y":2.5}, {"label":"T", "x":5.5, "y":2.5}, {"label":"Y", "x":6.5, "y":2.5}, {"label":"U", "x":7.5, "y":2.5}, {"label":"I", "x":8.5, "y":2.5}, {"label":"O", "x":9.5, "y":2.5}, {"label":"P", "x":10.5, "y":2.5}, {"label":"{", "x":11.5, "y":2.5}, {"label":"}", "x":12.5, "y":2.5}, {"label":"|", "x":13.5, "y":2.5, "w":1.5}, {"label":"PgDn", "x":15.5, "y":2.5}, {"label":"7", "x":17, "y":2.5}, {"label":"8", "x":18, "y":2.5}, {"label":"9", "x":19, "y":2.5}, {"label":"+", "x":20, "y":2.5}, {"label":"Caps Lock", "x":0, "y":3.5, "w":1.75}, {"label":"A", "x":1.75, "y":3.5}, {"label":"S", "x":2.75, "y":3.5}, {"label":"D", "x":3.75, "y":3.5}, {"label":"F", "x":4.75, "y":3.5}, {"label":"G", "x":5.75, "y":3.5}, {"label":"H", "x":6.75, "y":3.5}, {"label":"J", "x":7.75, "y":3.5}, {"label":"K", "x":8.75, "y":3.5}, {"label":"L", "x":9.75, "y":3.5}, {"label":":", "x":10.75, "y":3.5}, {"label":"\"", "x":11.75, "y":3.5}, {"label":"Enter", "x":12.75, "y":3.5, "w":2.25}, {"label":"4", "x":17, "y":3.5}, {"label":"5", "x":18, "y":3.5}, {"label":"6", "x":19, "y":3.5}, {"x":20, "y":3.5}, {"label":"Shift", "x":0, "y":4.5, "w":2.25}, {"label":"Z", "x":2.25, "y":4.5}, {"label":"X", "x":3.25, "y":4.5}, {"label":"C", "x":4.25, "y":4.5}, {"label":"V", "x":5.25, "y":4.5}, {"label":"B", "x":6.25, "y":4.5}, {"label":"N", "x":7.25, "y":4.5}, {"label":"M", "x":8.25, "y":4.5}, {"label":"<", "x":9.25, "y":4.5}, {"label":">", "x":10.25, "y":4.5}, {"label":"?", "x":11.25, "y":4.5}, {"label":"Shift", "x":12.25, "y":4.5, "w":1.75}, {"x":14, "y":4.5}, {"label":"\u2191", "x":15.5, "y":4.75}, {"label":"1", "x":17, "y":4.5}, {"label":"2", "x":18, "y":4.5}, {"label":"3", "x":19, "y":4.5}, {"label":"Enter", "x":20, "y":4.5}, {"label":"Ctrl", "x":0, "y":5.5, "w":1.25}, {"label":"Win", "x":1.25, "y":5.5, "w":1.25}, {"label":"Alt", "x":2.5, "y":5.5, "w":1.25}, {"x":3.75, "y":5.5, "w":6.25}, {"label":"Alt", "x":10, "y":5.5, "w":1.25}, {"label":"Menu", "x":11.25, "y":5.5, "w":1.25}, {"label":"Ctrl", "x":12.5, "y":5.5, "w":1.25}, {"label":"\u2190", "x":14.5, "y":5.75}, {"label":"\u2193", "x":15.5, "y":5.75}, {"label":"\u2192", "x":16.5, "y":5.75}, {"label":"0", "x":18, "y":5.5}, {"label":".", "x":19, "y":5.5}, {"x":20, "y":5.5}] | ||
| 8 | } | ||
| 9 | } | ||
| 10 | } \ No newline at end of file | ||
diff --git a/keyboards/tkc/california/keymaps/default/keymap.c b/keyboards/tkc/california/keymaps/default/keymap.c new file mode 100644 index 000000000..747ed11e0 --- /dev/null +++ b/keyboards/tkc/california/keymaps/default/keymap.c | |||
| @@ -0,0 +1,29 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2021 Terry Mathews | ||
| 3 | |||
| 4 | This program is free software: you can redistribute it and/or modify | ||
| 5 | it under the terms of the GNU General Public License as published by | ||
| 6 | the Free Software Foundation, either version 2 of the License, or | ||
| 7 | (at your option) any later version. | ||
| 8 | |||
| 9 | This program is distributed in the hope that it will be useful, | ||
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | GNU General Public License for more details. | ||
| 13 | |||
| 14 | You should have received a copy of the GNU General Public License | ||
| 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 16 | */ | ||
| 17 | |||
| 18 | #include QMK_KEYBOARD_H | ||
| 19 | |||
| 20 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 21 | [0] = LAYOUT_all( /* Base */ | ||
| 22 | |||
| 23 | KC_ESC,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_PSCR,KC_HOME,KC_END,KC_SLCK,KC_PAUS, | ||
| 24 | KC_GRV,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_DEL,KC_BSPC,KC_PGUP,KC_NLCK,KC_PSLS,KC_PAST,KC_PMNS, | ||
| 25 | 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_PGDN,KC_P7,KC_P8,KC_P9,KC_PMNS, | ||
| 26 | 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_P4, KC_P5, KC_P6,KC_PPLS, | ||
| 27 | 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_NO,KC_UP, KC_P1, KC_P2, KC_P3, KC_PENT, | ||
| 28 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT,KC_MENU, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT, KC_P0, KC_PDOT, KC_PENT), | ||
| 29 | }; | ||
diff --git a/keyboards/tkc/california/keymaps/via/keymap.c b/keyboards/tkc/california/keymaps/via/keymap.c new file mode 100644 index 000000000..b84fdd4a2 --- /dev/null +++ b/keyboards/tkc/california/keymaps/via/keymap.c | |||
| @@ -0,0 +1,38 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2021 Terry Mathews | ||
| 3 | |||
| 4 | This program is free software: you can redistribute it and/or modify | ||
| 5 | it under the terms of the GNU General Public License as published by | ||
| 6 | the Free Software Foundation, either version 2 of the License, or | ||
| 7 | (at your option) any later version. | ||
| 8 | |||
| 9 | This program is distributed in the hope that it will be useful, | ||
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | GNU General Public License for more details. | ||
| 13 | |||
| 14 | You should have received a copy of the GNU General Public License | ||
| 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 16 | */ | ||
| 17 | |||
| 18 | #include QMK_KEYBOARD_H | ||
| 19 | |||
| 20 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 21 | [0] = LAYOUT_all( /* Base */ | ||
| 22 | |||
| 23 | KC_ESC,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_PSCR,KC_HOME,KC_END,KC_SLCK,KC_PAUS, | ||
| 24 | KC_GRV,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_DEL,KC_BSPC,KC_PGUP,KC_NLCK,KC_PSLS,KC_PAST,KC_PMNS, | ||
| 25 | 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_PGDN,KC_P7,KC_P8,KC_P9,KC_PMNS, | ||
| 26 | 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_P4, KC_P5, KC_P6,KC_PPLS, | ||
| 27 | KC_LSFT,KC_Z,KC_X,KC_C,KC_V,KC_B,KC_N,KC_M,KC_COMM,KC_DOT,KC_SLSH,KC_RSFT,MO(1),KC_UP, KC_P1, KC_P2, KC_P3, KC_PENT, | ||
| 28 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT,KC_MENU, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT, KC_P0, KC_PDOT, KC_PENT), | ||
| 29 | |||
| 30 | [1] = LAYOUT_all( /* Function */ | ||
| 31 | |||
| 32 | _______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______, | ||
| 33 | _______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______, | ||
| 34 | _______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______, | ||
| 35 | _______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______, | ||
| 36 | _______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,MO(1),_______,_______,_______,_______,_______, | ||
| 37 | _______,_______,_______, _______, _______,_______, _______,_______,_______,_______,_______,_______,_______), | ||
| 38 | }; | ||
diff --git a/keyboards/tkc/california/keymaps/via/rules.mk b/keyboards/tkc/california/keymaps/via/rules.mk new file mode 100644 index 000000000..36b7ba9cb --- /dev/null +++ b/keyboards/tkc/california/keymaps/via/rules.mk | |||
| @@ -0,0 +1,2 @@ | |||
| 1 | VIA_ENABLE = yes | ||
| 2 | LTO_ENABLE = yes | ||
diff --git a/keyboards/tkc/california/readme.md b/keyboards/tkc/california/readme.md new file mode 100644 index 000000000..d8717ee6e --- /dev/null +++ b/keyboards/tkc/california/readme.md | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | # TKC California | ||
| 2 | |||
| 3 |  | ||
| 4 | |||
| 5 | A compact 1800 keyboard. | ||
| 6 | |||
| 7 | * Keyboard Maintainer: [TerryMathews](https://github.com/TerryMathews) | ||
| 8 | * Hardware Supported: TKC California (ATmega32U4) | ||
| 9 | * Hardware Availability: TBA | ||
| 10 | |||
| 11 | Reset board into bootloader by holding down Esc key while plugging in USB-C cable. | ||
| 12 | |||
| 13 | Make example for this keyboard (after setting up your build environment): | ||
| 14 | |||
| 15 | make tkc/california:default | ||
| 16 | |||
| 17 | Flashing example for this keyboard: | ||
| 18 | |||
| 19 | make tkc/california:default:flash | ||
| 20 | |||
| 21 | 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). | ||
diff --git a/keyboards/tkc/california/rules.mk b/keyboards/tkc/california/rules.mk new file mode 100644 index 000000000..1c4073c9c --- /dev/null +++ b/keyboards/tkc/california/rules.mk | |||
| @@ -0,0 +1,18 @@ | |||
| 1 | # MCU name | ||
| 2 | MCU = atmega32u4 | ||
| 3 | |||
| 4 | # Bootloader selection | ||
| 5 | BOOTLOADER = atmel-dfu | ||
| 6 | |||
| 7 | # Build Options | ||
| 8 | # change yes to no to disable | ||
| 9 | # | ||
| 10 | BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite | ||
| 11 | MOUSEKEY_ENABLE = yes # Mouse keys | ||
| 12 | EXTRAKEY_ENABLE = yes # Audio control and System control | ||
| 13 | CONSOLE_ENABLE = no # Console for debug | ||
| 14 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
| 15 | NKRO_ENABLE = yes # Enable N-Key Rollover | ||
| 16 | BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality | ||
| 17 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | ||
| 18 | AUDIO_ENABLE = no # Audio output | ||
