diff options
author | pngu <34752364+itspngu@users.noreply.github.com> | 2020-01-10 09:57:49 +0100 |
---|---|---|
committer | James Young <18669334+noroadsleft@users.noreply.github.com> | 2020-01-10 00:57:49 -0800 |
commit | af77912d2d6b426201d75c84e8836d6d5d8c45c5 (patch) | |
tree | e99225e6e10917709117b1f24c4872f078023540 /keyboards/idb | |
parent | 9397bffd014c1b7f8db28675c840499f9003098b (diff) |
[Keyboard] Changes to support latest release of VIA, moved files to "idb" folder in "keymaps" in preparation of adding more boards, made changes to LAYOUT_ macros (#7798)
* make vendor folder for idb keyboards
* set default debounce to eager_pk, clean up vendor/product ID
* refactoring for VIA
* made changes to support latest release of VIA, added default keymap that's in line with the most popular configuration
* Made suggested formatting changes
* rebase to get rid of lufa files
* removed idb_60.json that's only meant for via itself
* Update keyboards/idb/idb_60/keymaps/via/rules.mk
* Update keyboards/idb/idb_60/readme.md
* Update keyboards/idb/idb_60/readme.md
* Update keyboards/idb/idb_60/readme.md
* Update keyboards/idb/idb_60/rules.mk
* Update keyboards/idb/idb_60/config.h
* Update keyboards/idb/idb_60/readme.md
* made suggested formatting changes
* fixing lufa
* Update keyboards/idb/idb_60/rules.mk
* Update keyboards/idb/idb_60/config.h
* made suggested changes
Diffstat (limited to 'keyboards/idb')
-rw-r--r-- | keyboards/idb/idb_60/config.h | 150 | ||||
-rw-r--r-- | keyboards/idb/idb_60/idb_60.c | 23 | ||||
-rw-r--r-- | keyboards/idb/idb_60/idb_60.h | 60 | ||||
-rw-r--r-- | keyboards/idb/idb_60/info.json | 648 | ||||
-rw-r--r-- | keyboards/idb/idb_60/keymaps/all_keys/keymap.c | 46 | ||||
-rw-r--r-- | keyboards/idb/idb_60/keymaps/default/keymap.c | 46 | ||||
-rw-r--r-- | keyboards/idb/idb_60/keymaps/pngu/keymap.c | 39 | ||||
-rw-r--r-- | keyboards/idb/idb_60/keymaps/via/keymap.c | 46 | ||||
-rw-r--r-- | keyboards/idb/idb_60/keymaps/via/rules.mk | 2 | ||||
-rw-r--r-- | keyboards/idb/idb_60/readme.md | 26 | ||||
-rw-r--r-- | keyboards/idb/idb_60/rules.mk | 28 |
11 files changed, 1114 insertions, 0 deletions
diff --git a/keyboards/idb/idb_60/config.h b/keyboards/idb/idb_60/config.h new file mode 100644 index 0000000000..f7904cf604 --- /dev/null +++ b/keyboards/idb/idb_60/config.h @@ -0,0 +1,150 @@ +/* +Copyright 2012 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 + +#include "config_common.h" + +/* USB Device descriptor parameter */ +#define VENDOR_ID 0x494B // "IB" for idb Keyboards +#define PRODUCT_ID 0x0001 // idb 60 +#define DEVICE_VER 0x0001 +#define MANUFACTURER idb Keyboards +#define PRODUCT idb 60 +#define DESCRIPTION QMK keyboard firmware for idb 60 + +/* key matrix size */ +#define MATRIX_ROWS 10 +#define MATRIX_COLS 8 + +/* + * Keyboard Matrix Assignments + * + * Change this to how you wired your keyboard + * COLS: AVR pins used for columns, left to right + * ROWS: AVR pins used for rows, top to bottom + * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode) + * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) + * +*/ +#define MATRIX_ROW_PINS { C2, D0, D1, D2, D3, D4, D5, D6, B0, B1 } +#define MATRIX_COL_PINS { B2, B3, B4, C6, B6, B7, C7, B5 } +#define UNUSED_PINS + +/* COL2ROW or ROW2COL */ +#define DIODE_DIRECTION COL2ROW + +/* Debounce reduces chatter (unintended double-presses) - see https://docs.qmk.fm/#/feature_debounce_type for more information */ +#define DEBOUNCE 5 + +/* define if matrix has ghost (lacks anti-ghosting diodes) */ +//#define MATRIX_HAS_GHOST + +/* number of backlight levels */ +#define BACKLIGHT_LEVELS 0 + +/* 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 + +/* + * Force NKRO + * + * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved + * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the + * makefile for this to work.) + * + * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N) + * until the next keyboard reset. + * + * NKRO may prevent your keystrokes from being detected in the BIOS, but it is + * fully operational during normal computer usage. + * + * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N) + * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by + * bootmagic, NKRO mode will always be enabled until it is toggled again during a + * power-up. + * + */ +//#define FORCE_NKRO + +/* + * Magic Key Options + * + * Magic keys are hotkey commands that allow control over firmware functions of + * the keyboard. They are best used in combination with the HID Listen program, + * found here: https://www.pjrc.com/teensy/hid_listen.html + * + * The options below allow the magic key functionality to be changed. This is + * useful if your keyboard/keypad is missing keys and you want magic key support. + * + */ + +/* control how magic key switches layers */ +//#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS true +//#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS true +//#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM false + +/* override magic key keymap */ +//#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS +//#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS +//#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM +//#define MAGIC_KEY_HELP1 H +//#define MAGIC_KEY_HELP2 SLASH +//#define MAGIC_KEY_DEBUG D +//#define MAGIC_KEY_DEBUG_MATRIX X +//#define MAGIC_KEY_DEBUG_KBD K +//#define MAGIC_KEY_DEBUG_MOUSE M +//#define MAGIC_KEY_VERSION V +//#define MAGIC_KEY_STATUS S +//#define MAGIC_KEY_CONSOLE C +//#define MAGIC_KEY_LAYER0_ALT1 ESC +//#define MAGIC_KEY_LAYER0_ALT2 GRAVE +//#define MAGIC_KEY_LAYER0 0 +//#define MAGIC_KEY_LAYER1 1 +//#define MAGIC_KEY_LAYER2 2 +//#define MAGIC_KEY_LAYER3 3 +//#define MAGIC_KEY_LAYER4 4 +//#define MAGIC_KEY_LAYER5 5 +//#define MAGIC_KEY_LAYER6 6 +//#define MAGIC_KEY_LAYER7 7 +//#define MAGIC_KEY_LAYER8 8 +//#define MAGIC_KEY_LAYER9 9 +//#define MAGIC_KEY_BOOTLOADER PAUSE +//#define MAGIC_KEY_LOCK CAPS +//#define MAGIC_KEY_EEPROM E +//#define MAGIC_KEY_NKRO N +//#define MAGIC_KEY_SLEEP_LED Z + +/* + * 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/idb/idb_60/idb_60.c b/keyboards/idb/idb_60/idb_60.c new file mode 100644 index 0000000000..d280f644b5 --- /dev/null +++ b/keyboards/idb/idb_60/idb_60.c @@ -0,0 +1,23 @@ +#include "idb_60.h" + +extern inline void _idb_60_caps_led_on(void); +extern inline void _idb_60_esc_led_on(void); + +extern inline void _idb_60_caps_led_off(void); +extern inline void _idb_60_esc_led_off(void); + +void keyboard_pre_init_kb(void) { + setPinOutput(C4); + setPinOutput(C5); +} + +void led_set_kb(uint8_t usb_led) { + + if (IS_LED_ON(usb_led, USB_LED_CAPS_LOCK)) { + _idb_60_caps_led_on(); + } else { + _idb_60_caps_led_off(); + } + + led_set_user(usb_led); +} diff --git a/keyboards/idb/idb_60/idb_60.h b/keyboards/idb/idb_60/idb_60.h new file mode 100644 index 0000000000..c47d6b2927 --- /dev/null +++ b/keyboards/idb/idb_60/idb_60.h @@ -0,0 +1,60 @@ +#pragma once + +#include "quantum.h" + +inline void _idb_60_caps_led_on(void) { + writePinLow(C5); +} + +inline void _idb_60_esc_led_on(void) { + writePinLow(C4); +} + +inline void _idb_60_caps_led_off(void) { + writePinLow(C5); +} + +inline void _idb_60_esc_led_off(void) { + writePinLow(C4); +} + +#define LAYOUT( \ + K00, K10, K01, K11, K02, K12, K03, K13, K04, K14, K05, K15, K06, K16, K07,\ + K20, K30, K21, K31, K22, K32, K23, K33, K24, K34, K25, K35, K26, K36,\ + K40, K50, K41, K51, K42, K52, K43, K53, K44, K54, K45, K55, K56,\ + K60, K70, K61, K71, K62, K72, K63, K73, K64, K74, K65, K75, K66, K76,\ + K80, K90, K81, K93, K95, K86, K96\ +) { \ + { K00, K01, K02, K03, K04, K05, K06, K07 }, \ + { K10, K11, K12, K13, K14, K15, K16 }, \ + { K20, K21, K22, K23, K24, K25, K26 }, \ + { K30, K31, K32, K33, K34, K35, K36 }, \ + { K40, K41, K42, K43, K44, K45, KC_NO }, \ + { K50, K51, K52, K53, K54, K55, K56 }, \ + { K60, K61, K62, K63, K64, K65, K66 }, \ + { K70, K71, K72, K73, K74, K75, K76 }, \ + { K80, K81, KC_NO, KC_NO, KC_NO, KC_NO, K86 }, \ + { K90, KC_NO, KC_NO, K93, KC_NO, K95, K96 } \ +} + +#define LAYOUT_all LAYOUT + +#define LAYOUT_default( \ + K00, K10, K01, K11, K02, K12, K03, K13, K04, K14, K05, K15, K06, K16,\ + K20, K30, K21, K31, K22, K32, K23, K33, K24, K34, K25, K35, K26, K36,\ + K40, K50, K41, K51, K42, K52, K43, K53, K44, K54, K45, K55, K56,\ + K60, K61, K71, K62, K72, K63, K73, K64, K74, K65, K75, K66, K76,\ + K80, K81, K93, K95, K96\ +) { \ + { K00, K01, K02, K03, K04, K05, K06, KC_NO }, \ + { K10, K11, K12, K13, K14, K15, K16 }, \ + { K20, K21, K22, K23, K24, K25, K26 }, \ + { K30, K31, K32, K33, K34, K35, K36 }, \ + { K40, K41, K42, K43, K44, K45, KC_NO }, \ + { K50, K51, K52, K53, K54, K55, K56 }, \ + { K60, K61, K62, K63, K64, K65, K66 }, \ + { KC_NO, K71, K72, K73, K74, K75, K76 }, \ + { K80, K81, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO }, \ + { KC_NO, KC_NO, KC_NO, K93, KC_NO, K95, K96 } \ +} + diff --git a/keyboards/idb/idb_60/info.json b/keyboards/idb/idb_60/info.json new file mode 100644 index 0000000000..a4b5d2332d --- /dev/null +++ b/keyboards/idb/idb_60/info.json @@ -0,0 +1,648 @@ +{ + "keyboard_name":"idb 60", + "url":"https://idb-keyboards.xyz/60", + "maintainer":"pngu", + "width":15, + "height":5, + "layouts":{ + "LAYOUT":{ + "LAYOUT_default":[ + { + "label":"Esc", + "x":0, + "y":0 + }, + { + "label":"!\n1", + "x":1, + "y":0 + }, + { + "label":"@\n2", + "x":2, + "y":0 + }, + { + "label":"#\n3", + "x":3, + "y":0 + }, + { + "label":"$\n4", + "x":4, + "y":0 + }, + { + "label":"%\n5", + "x":5, + "y":0 + }, + { + "label":"^\n6", + "x":6, + "y":0 + }, + { + "label":"&\n7", + "x":7, + "y":0 + }, + { + "label":"*\n8", + "x":8, + "y":0 + }, + { + "label":"(\n9", + "x":9, + "y":0 + }, + { + "label":")\n0", + "x":10, + "y":0 + }, + { + "label":"_\n-", + "x":11, + "y":0 + }, + { + "label":"+\n=", + "x":12, + "y":0 + }, + { + "label":"BS", + "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":"{\n[", + "x":11.5, + "y":1 + }, + { + "label":"}\n]", + "x":12.5, + "y":1 + }, + { + "label":"|\n\\", + "x":13.5, + "y":1, + "w":1.5 + }, + { + "label":"Caps Lock", + "x":0, + "y":2, + "w":1.75 + }, + { + "label":"A", + "x":1.75, + "y":2 + }, + { + "label":"S", + "x":2.75, + "y":2 + }, + { + "label":"D", + "x":3.75, + "y":2 + }, + { + "label":"F", + "x":4.75, + "y":2 + }, + { + "label":"G", + "x":5.75, + "y":2 + }, + { + "label":"H", + "x":6.75, + "y":2 + }, + { + "label":"J", + "x":7.75, + "y":2 + }, + { + "label":"K", + "x":8.75, + "y":2 + }, + { + "label":"L", + "x":9.75, + "y":2 + }, + { + "label":":\n;", + "x":10.75, + "y":2 + }, + { + "label":"\"\n'", + "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":"<\n,", + "x":9.25, + "y":3 + }, + { + "label":">\n.", + "x":10.25, + "y":3 + }, + { + "label":"?\n/", + "x":11.25, + "y":3 + }, + { + "label":"Shift", + "x":12.25, + "y":3, + "w":1.75 + }, + { + "label":"Fn", + "x":14, + "y":3 + }, + { + "label":"Ctrl", + "x":0, + "y":4, + "w":1.5 + }, + { + "label":"Alt", + "x":2.5, + "y":4, + "w":1.5 + }, + { + "label":"", + "x":4, + "y":4, + "w":7 + }, + { + "label":"Alt", + "x":11, + "y":4, + "w":1.5 + }, + { + "label":"Ctrl", + "x":13.5, + "y":4, + "w":1.5 + } + ], + "LAYOUT_all":[ + { + "label":"Esc", + "x":0, + "y":0 + }, + { + "label":"!\n1", + "x":1, + "y":0 + }, + { + "label":"@\n2", + "x":2, + "y":0 + }, + { + "label":"#\n3", + "x":3, + "y":0 + }, + { + "label":"$\n4", + "x":4, + "y":0 + }, + { + "label":"%\n5", + "x":5, + "y":0 + }, + { + "label":"^\n6", + "x":6, + "y":0 + }, + { + "label":"&\n7", + "x":7, + "y":0 + }, + { + "label":"*\n8", + "x":8, + "y":0 + }, + { + "label":"(\n9", + "x":9, + "y":0 + }, + { + "label":")\n0", + "x":10, + "y":0 + }, + { + "label":"_\n-", + "x":11, + "y":0 + }, + { + "label":"+\n=", + "x":12, + "y":0 + }, + { + "label":"BS", + "x":13, + "y":0 + }, + { + "label":"~\n`", + "x":14, + "y":0 + }, + { + "label":"Tab", + "x":0, + "y":1, + "w":1.5 + }, + { + "label":"Q", + "x":1.5, + "y":1 + }, + { + "label":"W", + "x":2.5, + "y":1 + }, + { + "label":"E", + "x":3.5, + "y":1 + }, + { + "label":"R", + "x":4.5, + "y":1 + }, + { + "label":"T", + "x":5.5, + "y":1 + }, + { + "label":"Y", + "x":6.5, + "y":1 + }, + { + "label":"U", + "x":7.5, + "y":1 + }, + { + "label":"I", + "x":8.5, + "y":1 + }, + { + "label":"O", + "x":9.5, + "y":1 + }, + { + "label":"P", + "x":10.5, + "y":1 + }, + { + "label":"{\n[", + "x":11.5, + "y":1 + }, + { + "label":"}\n]", + "x":12.5, + "y":1 + }, + { + "label":"|\n\\", + "x":13.5, + "y":1, + "w":1.5 + }, + { + "label":"Caps Lock", + "x":0, + "y":2, + "w":1.75 + }, + { + "label":"A", + "x":1.75, + "y":2 + }, + { + "label":"S", + "x":2.75, + "y":2 + }, + { + "label":"D", + "x":3.75, + "y":2 + }, + { + "label":"F", + "x":4.75, + "y":2 + }, + { + "label":"G", + "x":5.75, + "y":2 + }, + { + "label":"H", + "x":6.75, + "y":2 + }, + { + "label":"J", + "x":7.75, + "y":2 + }, + { + "label":"K", + "x":8.75, + "y":2 + }, + { + "label":"L", + "x":9.75, + "y":2 + }, + { + "label":":\n;", + "x":10.75, + "y":2 + }, + { + "label":"\"\n'", + "x":11.75, + "y":2 + }, + { + "label":"Enter", + "x":12.75, + "y":2, + "w":2.25 + }, + { + "label":"Shift", + "x":0, + "y":3, + "w":1.25 + }, + { + "label":">\n<\n\n|", + "x":1.25, + "y":3 + }, + { + "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":"<\n,", + "x":9.25, + "y":3 + }, + { + "label":">\n.", + "x":10.25, + "y":3 + }, + { + "label":"?\n/", + "x":11.25, + "y":3 + }, + { + "label":"Shift", + "x":12.25, + "y":3, + "w":1.75 + }, + { + "label":"Fn", + "x":14, + "y":3 + }, + { + "label":"Ctrl", + "x":0, + "y":4, + "w":1.5 + }, + { + "label":"Win", + "x":1.5, + "y":4 + }, + { + "label":"Alt", + "x":2.5, + "y":4, + "w":1.5 + }, + { + "label":"", + "x":4, + "y":4, + "w":7 + }, + { + "label":"Alt", + "x":11, + "y":4, + "w":1.5 + }, + { + "label":"Win", + "x":12.5, + "y":4 + }, + { + "label":"Ctrl", + "x":13.5, + "y":4, + "w":1.5 + } + ] + } + } +}
\ No newline at end of file diff --git a/keyboards/idb/idb_60/keymaps/all_keys/keymap.c b/keyboards/idb/idb_60/keymaps/all_keys/keymap.c new file mode 100644 index 0000000000..9f2ef36a1f --- /dev/null +++ b/keyboards/idb/idb_60/keymaps/all_keys/keymap.c @@ -0,0 +1,46 @@ +#include QMK_KEYBOARD_H + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + + [0] = LAYOUT_all( + KC_GESC, 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_NO, + 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_NUBS, 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_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_MENU, KC_RCTL + ), + [1] = LAYOUT_all( + RESET, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______, _______, _______ + ), + [2] = LAYOUT_all( + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______, _______, _______ + ), + [3] = LAYOUT_all( + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______, _______, _______ + ), + +}; + +// Layer LED indicators + +layer_state_t layer_state_set_user(layer_state_t state) { + if (layer_state_cmp(state, 1)) { + _idb_60_esc_led_on(); + } else { + _idb_60_esc_led_off(); + } + + return state; +}
\ No newline at end of file diff --git a/keyboards/idb/idb_60/keymaps/default/keymap.c b/keyboards/idb/idb_60/keymaps/default/keymap.c new file mode 100644 index 0000000000..22f208caac --- /dev/null +++ b/keyboards/idb/idb_60/keymaps/default/keymap.c @@ -0,0 +1,46 @@ +#include QMK_KEYBOARD_H + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + + [0] = LAYOUT_default( + KC_GESC, 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, MO(1), + KC_LCTL, KC_LALT, KC_SPC, KC_RALT, KC_RCTL + ), + [1] = LAYOUT_default( + RESET, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______ + ), + [2] = LAYOUT_default( + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______ + ), + [3] = LAYOUT_default( + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______ + ), + +}; + +// Layer LED indicators + +layer_state_t layer_state_set_user(layer_state_t state) { + if (layer_state_cmp(state, 1)) { + _idb_60_esc_led_on(); + } else { + _idb_60_esc_led_off(); + } + + return state; +}
\ No newline at end of file diff --git a/keyboards/idb/idb_60/keymaps/pngu/keymap.c b/keyboards/idb/idb_60/keymaps/pngu/keymap.c new file mode 100644 index 0000000000..de336e5fa4 --- /dev/null +++ b/keyboards/idb/idb_60/keymaps/pngu/keymap.c @@ -0,0 +1,39 @@ +#include QMK_KEYBOARD_H + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + + [0] = LAYOUT( + KC_GESC, 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_NO, + KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Z, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, + LT(2, 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_NUBS, KC_Y, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_NO, + KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_MENU, MO(1) + ), + [1] = LAYOUT( + RESET, 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_PSCR, _______, _______, _______, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_INS, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______, _______, _______ + ), + [2] = LAYOUT( + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + _______, _______, _______, KC_UP, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + _______, _______, KC_LEFT, KC_DOWN, KC_RGHT, _______, _______, _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______, _______, _______ + ) + +}; + +// Layer LED indicators + +layer_state_t layer_state_set_user(layer_state_t state) { + if (layer_state_cmp(state, 1)) { + _idb_60_esc_led_on(); + } else { + _idb_60_esc_led_off(); + } + + return state; +}
\ No newline at end of file diff --git a/keyboards/idb/idb_60/keymaps/via/keymap.c b/keyboards/idb/idb_60/keymaps/via/keymap.c new file mode 100644 index 0000000000..22f208caac --- /dev/null +++ b/keyboards/idb/idb_60/keymaps/via/keymap.c @@ -0,0 +1,46 @@ +#include QMK_KEYBOARD_H + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + + [0] = LAYOUT_default( + KC_GESC, 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, MO(1), + KC_LCTL, KC_LALT, KC_SPC, KC_RALT, KC_RCTL + ), + [1] = LAYOUT_default( + RESET, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______ + ), + [2] = LAYOUT_default( + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______ + ), + [3] = LAYOUT_default( + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______ + ), + +}; + +// Layer LED indicators + +layer_state_t layer_state_set_user(layer_state_t state) { + if (layer_state_cmp(state, 1)) { + _idb_60_esc_led_on(); + } else { + _idb_60_esc_led_off(); + } + + return state; +}
\ No newline at end of file diff --git a/keyboards/idb/idb_60/keymaps/via/rules.mk b/keyboards/idb/idb_60/keymaps/via/rules.mk new file mode 100644 index 0000000000..36b7ba9cbc --- /dev/null +++ b/keyboards/idb/idb_60/keymaps/via/rules.mk @@ -0,0 +1,2 @@ +VIA_ENABLE = yes +LTO_ENABLE = yes diff --git a/keyboards/idb/idb_60/readme.md b/keyboards/idb/idb_60/readme.md new file mode 100644 index 0000000000..df25e8778f --- /dev/null +++ b/keyboards/idb/idb_60/readme.md @@ -0,0 +1,26 @@ +# idb 60 PCB + +Firmware for the idb 60 PCB + +Keyboard Maintainer: [/u/omgitspngu](https://github.com/itspngu) +Hardware Supported: idb 60 PCB +Hardware Availability: [/u/omgitspngu](https://www.reddit.com/user/omgitspngu/) + +Make example for this keyboard (after setting up your build environment): + + make idb/idb_60:default + +Or to make and flash: + + make idb/idb_60:default:flash + +To compile VIA firmware: + + make idb/idb_60:via + +LAYOUT_* Macros: + + * *LAYOUT_default*: ANSI WKL with full Backspace + * *LAYOUT_all*: All split keys are available + +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/idb/idb_60/rules.mk b/keyboards/idb/idb_60/rules.mk new file mode 100644 index 0000000000..289e77f771 --- /dev/null +++ b/keyboards/idb/idb_60/rules.mk @@ -0,0 +1,28 @@ +# MCU name +MCU = atmega32u2 + +# Bootloader selection +# Teensy halfkay +# Pro Micro caterina +# Atmel DFU atmel-dfu +# LUFA DFU lufa-dfu +# QMK DFU qmk-dfu +# ATmega32A bootloadHID +# ATmega328P USBasp +BOOTLOADER = atmel-dfu + +# Build Options +# Comment out to disable the options. +BOOTMAGIC_ENABLE = lite +MOUSEKEY_ENABLE = yes # Mouse keys +EXTRAKEY_ENABLE = yes # Audio control and System control +CONSOLE_ENABLE = no # Console for debug +COMMAND_ENABLE = no # Commands for debug and configuration +KEYBOARD_LOCK_ENABLE = no # Allow locking of keyboard via magic key +SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend +NKRO_ENABLE = yes # USB 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 +UNICODE_ENABLE = no # Unicode +BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID +DEBOUNCE_TYPE = eager_pk # Eager debounce type |