Skip to content

Commit

Permalink
[Keyboard] Add the Idobao ID96 keyboard (qmk#14371)
Browse files Browse the repository at this point in the history
Co-authored-by: Joel Challis <[email protected]>
Co-authored-by: Drashna Jaelre <[email protected]>
Co-authored-by: Ryan <[email protected]>
  • Loading branch information
4 people authored and cori committed Sep 19, 2021
1 parent 9da830d commit f2f23e3
Show file tree
Hide file tree
Showing 9 changed files with 485 additions and 0 deletions.
82 changes: 82 additions & 0 deletions keyboards/idobao/id96/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
/*
* This file is part of the QMK Firmware distribution (https://github.com/qmk/qmk_firmware).
* Copyright 2018-2021 "kaylanm" <http://github.com/kaylanm> [Melody96]
* Vino Rodrigues <http://github.com/vinorodrigues> [ID96]
*
* 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, version 3.
*
* 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 0x6964 // "id"
#define PRODUCT_ID 0x0096
#define DEVICE_VER 0x0001
#define MANUFACTURER IDOBAO
#define PRODUCT ID96

/* key matrix size */
#define MATRIX_ROWS 12
#define MATRIX_COLS 9

/* key matrix pins */
#define MATRIX_ROW_PINS { B7, B3, B2, B1, B0, E6, F0, F1, F4, F5, F6, F7 }
#define MATRIX_COL_PINS { D0, D1, D2, D3, D5, D4, D6, D7, B4 }
#define UNUSED_PINS

/* COL2ROW or ROW2COL */
#define DIODE_DIRECTION ROW2COL

#define LED_NUM_LOCK_PIN C6
#define LED_CAPS_LOCK_PIN C7
#define LED_PIN_ON_STATE 0

/* number of backlight levels */
#define BACKLIGHT_PIN B6
#ifdef BACKLIGHT_PIN
#define BACKLIGHT_LEVELS 7
#define BACKLIGHT_BREATHING
#endif

/* Set location for BootMagic key = [ESC] */
#define BOOTMAGIC_LITE_ROW 5
#define BOOTMAGIC_LITE_COLUMN 0

/* 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 RGB_DI_PIN E2
#ifdef RGB_DI_PIN
#define RGBLIGHT_EFFECT_BREATHING
#define RGBLIGHT_EFFECT_RAINBOW_MOOD
#define RGBLIGHT_EFFECT_RAINBOW_SWIRL
#define RGBLIGHT_EFFECT_SNAKE
#define RGBLIGHT_EFFECT_KNIGHT
#define RGBLIGHT_EFFECT_CHRISTMAS
#define RGBLIGHT_EFFECT_STATIC_GRADIENT
#define RGBLIGHT_EFFECT_RGB_TEST
#define RGBLIGHT_EFFECT_ALTERNATING
#define RGBLIGHT_EFFECT_TWINKLE
#define RGBLED_NUM 18
#define RGBLIGHT_HUE_STEP 8
#define RGBLIGHT_SAT_STEP 8
#define RGBLIGHT_VAL_STEP 8
#endif
19 changes: 19 additions & 0 deletions keyboards/idobao/id96/id96.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/*
* This file is part of the QMK Firmware distribution (https://github.com/qmk/qmk_firmware).
* Copyright 2018-2021 "kaylanm" <http://github.com/kaylanm> [Melody96]
* Vino Rodrigues <http://github.com/vinorodrigues> [ID96]
*
* 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, version 3.
*
* 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 "id96.h"
63 changes: 63 additions & 0 deletions keyboards/idobao/id96/id96.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
/*
* This file is part of the QMK Firmware distribution (https://github.com/qmk/qmk_firmware).
* Copyright 2018-2021 "kaylanm" <http://github.com/kaylanm> [Melody96]
* Vino Rodrigues <http://github.com/vinorodrigues> [ID96]
*
* 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, version 3.
*
* 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 "quantum.h"

/*
* The layout macro for the ID96 keyboard, with illustrative grid of a typical
* assignment.
* ,---------------------------------------------------------------------------
* |ESC|F1|F2 |F3 |F4 |F5 |F6 |F7 |F8 |F9 |F10|F11|F12|PSC|HOM|END|PGU|PGD|DEL|
* ,--------------------------------------------------------------------------|
* | ` |1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | - | + | \ |BKS|NLK| / | * | - |
* |--------------------------------------------------------------------------|
* | TAB | Q | W | E | R | T | Y | U | I | O | P | [ | ] | \ | 7 | 8 | 9 | + |
* |--------------------------------------------------------------------------|
* | CTRL | A | S | D | F | G | H | J | K | L | ; | ' | RET | 4 | 5 | 6 | + |
* |--------------------------------------------------------------------------|
* | LSHIFT | Z | X | C | V | B | N | M | , | . | / |RSHFT| ↑ | 1 | 2 | 3 |ENT|
* |--------------------------------------------------------------------------|
* |LCTL|LWIN|LALT| SPACE |CTL|ALT|FN | ← | ↓ | → | 0 | . |ENT|
* `---------------------------------------------------------------------------
*/

#define ____ KC_NO

#define LAYOUT( \
K050, K051, K052, K053, K054, K055, K056, K057, K058, K118, K117, K115, K114, K113, K116, K112, K111, K110, K063, \
K040, K041, K042, K043, K044, K045, K046, K047, K048, K108, K107, K105, K104, K103, K106, K102, K101, K100, K064, \
K030, K031, K032, K033, K034, K035, K036, K037, K038, K098, K097, K095, K094, K084, K096, K092, K091, K090, \
K020, K021, K022, K023, K024, K025, K026, K027, K028, K088, K087, K085, K093, K086, K082, K081, K080, \
K010, K011, K012, K013, K014, K015, K016, K017, K018, K078, K077, K075, K074, K073, K076, K072, K071, K070, \
K000, K001, K002, K006, K008, K007, K005, K004, K003, K066, K062, K061, K060 \
) { \
{ K000, K001, K002, K003, K004, K005, K006, K007, K008 }, \
{ K010, K011, K012, K013, K014, K015, K016, K017, K018 }, \
{ K020, K021, K022, K023, K024, K025, K026, K027, K028 }, \
{ K030, K031, K032, K033, K034, K035, K036, K037, K038 }, \
{ K040, K041, K042, K043, K044, K045, K046, K047, K048 }, \
{ K050, K051, K052, K053, K054, K055, K056, K057, K058 }, \
{ K060, K061, K062, K063, K064, ____, K066, ____, ____ }, \
{ K070, K071, K072, K073, K074, K075, K076, K077, K078 }, \
{ K080, K081, K082, ____, K084, K085, K086, K087, K088 }, \
{ K090, K091, K092, K093, K094, K095, K096, K097, K098 }, \
{ K100, K101, K102, K103, K104, K105, K106, K107, K108 }, \
{ K110, K111, K112, K113, K114, K115, K116, K117, K118 } \
}
119 changes: 119 additions & 0 deletions keyboards/idobao/id96/info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
{
"keyboard_name": "id96",
"url": "https://www.idobao.net/collections/90/products/idobao-id96-aluminum-keyboard-kit",
"maintainer": "vinorodrigues",
"layouts": {
"LAYOUT": {
"layout": [
{"label":"Esc", "x":0, "y":0},
{"label":"F1", "x":1, "y":0},
{"label":"F2", "x":2, "y":0},
{"label":"F3", "x":3, "y":0},
{"label":"F4", "x":4, "y":0},
{"label":"F5", "x":5, "y":0},
{"label":"F6", "x":6, "y":0},
{"label":"F7", "x":7, "y":0},
{"label":"F8", "x":8, "y":0},
{"label":"F9", "x":9, "y":0},
{"label":"F10", "x":10, "y":0},
{"label":"F11", "x":11, "y":0},
{"label":"F12", "x":12, "y":0},
{"label":"PrtSc", "x":13, "y":0},
{"label":"Scroll Lock", "x":14, "y":0},
{"label":"Pause", "x":15, "y":0},
{"label":"Insert", "x":16, "y":0},
{"label":"Home", "x":17, "y":0},
{"label":"PgUp", "x":18, "y":0},

{"label":"~", "x":0, "y":1},
{"label":"!", "x":1, "y":1},
{"label":"@", "x":2, "y":1},
{"label":"#", "x":3, "y":1},
{"label":"$", "x":4, "y":1},
{"label":"%", "x":5, "y":1},
{"label":"^", "x":6, "y":1},
{"label":"&", "x":7, "y":1},
{"label":"*", "x":8, "y":1},
{"label":"(", "x":9, "y":1},
{"label":")", "x":10, "y":1},
{"label":"_", "x":11, "y":1},
{"label":"+", "x":12, "y":1},
{"x":13, "y":1},
{"x":14, "y":1},
{"label":"Num Lock", "x":15, "y":1},
{"label":"/", "x":16, "y":1},
{"label":"*", "x":17, "y":1},
{"label":"-", "x":18, "y":1},

{"label":"Tab", "x":0, "y":2, "w":1.5},
{"label":"Q", "x":1.5, "y":2},
{"label":"W", "x":2.5, "y":2},
{"label":"E", "x":3.5, "y":2},
{"label":"R", "x":4.5, "y":2},
{"label":"T", "x":5.5, "y":2},
{"label":"Y", "x":6.5, "y":2},
{"label":"U", "x":7.5, "y":2},
{"label":"I", "x":8.5, "y":2},
{"label":"O", "x":9.5, "y":2},
{"label":"P", "x":10.5, "y":2},
{"label":"{", "x":11.5, "y":2},
{"label":"}", "x":12.5, "y":2},
{"label":"|", "x":13.5, "y":2, "w":1.5},
{"label":"7", "x":15, "y":2},
{"label":"8", "x":16, "y":2},
{"label":"9", "x":17, "y":2},
{"label":"+", "x":18, "y":2},

{"label":"Caps Lock", "x":0, "y":3, "w":1.75},
{"label":"A", "x":1.75, "y":3},
{"label":"S", "x":2.75, "y":3},
{"label":"D", "x":3.75, "y":3},
{"label":"F", "x":4.75, "y":3},
{"label":"G", "x":5.75, "y":3},
{"label":"H", "x":6.75, "y":3},
{"label":"J", "x":7.75, "y":3},
{"label":"K", "x":8.75, "y":3},
{"label":"L", "x":9.75, "y":3},
{"label":":", "x":10.75, "y":3},
{"label":"\"", "x":11.75, "y":3},
{"label":"Enter", "x":12.75, "y":3, "w":2.25},
{"label":"4", "x":15, "y":3},
{"label":"5", "x":16, "y":3},
{"label":"6", "x":17, "y":3},
{"x":18, "y":3},

{"label":"Shift", "x":0, "y":4, "w":1.25},
{"x":1.25, "y":4},
{"label":"Z", "x":2.25, "y":4},
{"label":"X", "x":3.25, "y":4},
{"label":"C", "x":4.25, "y":4},
{"label":"V", "x":5.25, "y":4},
{"label":"B", "x":6.25, "y":4},
{"label":"N", "x":7.25, "y":4},
{"label":"M", "x":8.25, "y":4},
{"label":"<", "x":9.25, "y":4},
{"label":">", "x":10.25, "y":4},
{"label":"?", "x":11.25, "y":4},
{"label":"Shift", "x":12.25, "y":4, "w":1.75},
{"label":"\u2191", "x":14, "y":4},
{"label":"1", "x":15, "y":4},
{"label":"2", "x":16, "y":4},
{"label":"3", "x":17, "y":4},
{"label":"Enter", "x":18, "y":4},

{"label":"Ctrl", "x":0, "y":5, "w":1.25},
{"label":"Win", "x":1.25, "y":5, "w":1.25},
{"label":"Alt", "x":2.5, "y":5, "w":1.25},
{"x":3.75, "y":5, "w":6.25},
{"label":"Alt", "x":10, "y":5},
{"label":"Win", "x":11, "y":5},
{"x":12, "y":5},
{"label":"\u2190", "x":13, "y":5},
{"label":"\u2193", "x":14, "y":5},
{"label":"\u2192", "x":15, "y":5},
{"label":"0", "x":16, "y":5},
{"label":".", "x":17, "y":5},
{"x":18, "y":5}]
}
}
}
Loading

0 comments on commit f2f23e3

Please sign in to comment.