aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeepeetee <43021794+peepeetee@users.noreply.github.com>2022-02-09 13:49:53 +0800
committerGitHub <noreply@github.com>2022-02-08 21:49:53 -0800
commitb114b273737291ffec5a042ce58bf6d738e967d7 (patch)
treecda9e2affc5314279e44675d00f2a6478dc280c5
parenta75fb03f39821ada7ba74e12af68128f365c59ea (diff)
downloadqmk_firmware-b114b273737291ffec5a042ce58bf6d738e967d7.tar.gz
qmk_firmware-b114b273737291ffec5a042ce58bf6d738e967d7.zip
[Keyboard] Idobao ID80 V3 (#15912)
Co-authored-by: Drashna Jaelre <drashna@live.com>
-rw-r--r--keyboards/idobao/id80/v3/config.h135
-rw-r--r--keyboards/idobao/id80/v3/info.json96
-rw-r--r--keyboards/idobao/id80/v3/keymaps/default/keymap.c36
-rw-r--r--keyboards/idobao/id80/v3/keymaps/default/readme.md1
-rw-r--r--keyboards/idobao/id80/v3/keymaps/via/keymap.c52
-rw-r--r--keyboards/idobao/id80/v3/keymaps/via/rules.mk2
-rw-r--r--keyboards/idobao/id80/v3/readme.md27
-rw-r--r--keyboards/idobao/id80/v3/rules.mk22
-rw-r--r--keyboards/idobao/id80/v3/v3.c62
-rw-r--r--keyboards/idobao/id80/v3/v3.h37
10 files changed, 470 insertions, 0 deletions
diff --git a/keyboards/idobao/id80/v3/config.h b/keyboards/idobao/id80/v3/config.h
new file mode 100644
index 000000000..06ca74a0e
--- /dev/null
+++ b/keyboards/idobao/id80/v3/config.h
@@ -0,0 +1,135 @@
1/*
2Copyright 2020 Sergey Vlasov <sigprof@gmail.com>
3Copyright 2022 peepeetee
4
5This program is free software: you can redistribute it and/or modify
6it under the terms of the GNU General Public License as published by
7the Free Software Foundation, either version 2 of the License, or
8(at your option) any later version.
9
10This program is distributed in the hope that it will be useful,
11but WITHOUT ANY WARRANTY; without even the implied warranty of
12MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13GNU General Public License for more details.
14
15You should have received a copy of the GNU General Public License
16along with this program. If not, see <http://www.gnu.org/licenses/>.
17*/
18
19#pragma once
20
21#include "config_common.h"
22
23/* USB Device descriptor parameter */
24#define VENDOR_ID 0x6964 /* "id" */
25#define PRODUCT_ID 0x0080
26#define DEVICE_VER 0x0003
27#define MANUFACTURER IDOBAO
28#define PRODUCT ID80 v3
29
30
31/* key matrix size */
32#define MATRIX_ROWS 9
33#define MATRIX_COLS 11
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 * The matrix description in the vendor-supplied JSON file for kbfirmware.com
45 * had 9 columns:
46 * { D0, D1, D2, D3, D5, D4, D6, D7, B4 }
47 * and 12 rows:
48 * { B7, B3, B2, B1, B0, E6, F0, F1, F4, F5, F6, F7 }
49 * However, the row 6 was completely empty, and the pin F0 was not actually
50 * routed anywhere on the PCB, therefore this row was removed to save some
51 * resources (the EEPROM space for dynamic keymaps is especially scarce).
52 *
53 * After doing the above change, the matrix was transposed (rows and columns
54 * were swapped), because a matrix with the COL2ROW layout can be scanned much
55 * more efficiently than a matrix with the ROW2COL layout (depending on various
56 * optimizations, the difference in scan rate can be over 2 times). Because of
57 * this, the "columns" in the matrix layout now mostly correspond to physical
58 * rows, and the "rows" have mostly vertical physical orientation.
59 */
60#define MATRIX_ROW_PINS { D0, D1, D2, D3, D5, D4, D6, D7, B4 }
61#define MATRIX_COL_PINS { B7, B3, B2, B1, B0, E6, F1, F4, F5, F6, F7 }
62
63#define DIODE_DIRECTION COL2ROW
64
65
66#define RGB_DI_PIN B6
67# define DRIVER_LED_TOTAL 96 /* 16 Bottom 80 top*/
68#ifdef RGB_DI_PIN
69# define RGBLED_NUM 96 /* 16 Bottom 80 top*/
70# define RGB_MATRIX_KEYPRESSES // reacts to keypresses
71#endif
72#ifdef RGB_MATRIX_ENABLE
73# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 180 // Limit to vendor-recommended value
74// RGB Matrix Animation modes. Explicitly enabled
75// For full list of effects, see:
76// https://docs.qmk.fm/#/feature_rgb_matrix?id=rgb-matrix-effects
77# define RGB_MATRIX_FRAMEBUFFER_EFFECTS
78# define RGB_MATRIX_KEYPRESSES
79# define ENABLE_RGB_MATRIX_ALPHAS_MODS
80# define ENABLE_RGB_MATRIX_GRADIENT_UP_DOWN
81# define ENABLE_RGB_MATRIX_GRADIENT_LEFT_RIGHT
82# define ENABLE_RGB_MATRIX_BREATHING
83# define ENABLE_RGB_MATRIX_BAND_SAT
84# define ENABLE_RGB_MATRIX_BAND_VAL
85# define ENABLE_RGB_MATRIX_BAND_PINWHEEL_SAT
86# define ENABLE_RGB_MATRIX_BAND_PINWHEEL_VAL
87# define ENABLE_RGB_MATRIX_BAND_SPIRAL_SAT
88# define ENABLE_RGB_MATRIX_BAND_SPIRAL_VAL
89# define ENABLE_RGB_MATRIX_CYCLE_ALL
90# define ENABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT
91# define ENABLE_RGB_MATRIX_CYCLE_UP_DOWN
92# define ENABLE_RGB_MATRIX_RAINBOW_MOVING_CHEVRON
93# define ENABLE_RGB_MATRIX_CYCLE_OUT_IN
94# define ENABLE_RGB_MATRIX_CYCLE_OUT_IN_DUAL
95# define ENABLE_RGB_MATRIX_CYCLE_PINWHEEL
96# define ENABLE_RGB_MATRIX_CYCLE_SPIRAL
97# define ENABLE_RGB_MATRIX_DUAL_BEACON
98# define ENABLE_RGB_MATRIX_RAINBOW_BEACON
99# define ENABLE_RGB_MATRIX_RAINBOW_PINWHEELS
100# define ENABLE_RGB_MATRIX_RAINDROPS
101# define ENABLE_RGB_MATRIX_JELLYBEAN_RAINDROPS
102# define ENABLE_RGB_MATRIX_HUE_BREATHING
103# define ENABLE_RGB_MATRIX_HUE_PENDULUM
104# define ENABLE_RGB_MATRIX_HUE_WAVE
105# define ENABLE_RGB_MATRIX_PIXEL_RAIN
106# define ENABLE_RGB_MATRIX_PIXEL_FLOW
107# define ENABLE_RGB_MATRIX_PIXEL_FRACTAL
108// enabled only if RGB_MATRIX_FRAMEBUFFER_EFFECTS is defined
109# define ENABLE_RGB_MATRIX_TYPING_HEATMAP
110# define ENABLE_RGB_MATRIX_DIGITAL_RAIN
111// enabled only of RGB_MATRIX_KEYPRESSES or RGB_MATRIX_KEYRELEASES is defined
112# define ENABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE
113# define ENABLE_RGB_MATRIX_SOLID_REACTIVE
114# define ENABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE
115# define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE
116# define ENABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS
117# define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS
118# define ENABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS
119# define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS
120# define ENABLE_RGB_MATRIX_SPLASH
121# define ENABLE_RGB_MATRIX_MULTISPLASH
122# define ENABLE_RGB_MATRIX_SOLID_SPLASH
123# define ENABLE_RGB_MATRIX_SOLID_MULTISPLASH
124#endif
125
126/* Bootmagic Lite key configuration: use the Esc key */
127#define BOOTMAGIC_LITE_ROW 0
128#define BOOTMAGIC_LITE_COLUMN 5
129
130#define ENCODERS_PAD_A { C7 }
131#define ENCODERS_PAD_B { C6 }
132
133
134
135
diff --git a/keyboards/idobao/id80/v3/info.json b/keyboards/idobao/id80/v3/info.json
new file mode 100644
index 000000000..0dc8efaf0
--- /dev/null
+++ b/keyboards/idobao/id80/v3/info.json
@@ -0,0 +1,96 @@
1{
2 "keyboard_name": "ID80 v3",
3 "url": "",
4 "maintainer": "qmk",
5 "layouts": {
6 "LAYOUT": {
7 "layout": [
8 {"label":"Esc", "x":0, "y":0},
9 {"label":"F1", "x":1.25, "y":0},
10 {"label":"F2", "x":2.25, "y":0},
11 {"label":"F3", "x":3.25, "y":0},
12 {"label":"F4", "x":4.25, "y":0},
13 {"label":"F5", "x":5.5, "y":0},
14 {"label":"F6", "x":6.5, "y":0},
15 {"label":"F7", "x":7.5, "y":0},
16 {"label":"F8", "x":8.5, "y":0},
17 {"label":"F9", "x":9.75, "y":0},
18 {"label":"F10", "x":10.75, "y":0},
19 {"label":"F11", "x":11.75, "y":0},
20 {"label":"F12", "x":12.75, "y":0},
21 {"label":"Fn", "x":14, "y":0},
22 {"label":"Insert", "x":15.25, "y":0},
23
24 {"label":"`", "x":0, "y":1.25},
25 {"label":"1", "x":1, "y":1.25},
26 {"label":"2", "x":2, "y":1.25},
27 {"label":"3", "x":3, "y":1.25},
28 {"label":"4", "x":4, "y":1.25},
29 {"label":"5", "x":5, "y":1.25},
30 {"label":"6", "x":6, "y":1.25},
31 {"label":"7", "x":7, "y":1.25},
32 {"label":"8", "x":8, "y":1.25},
33 {"label":"9", "x":9, "y":1.25},
34 {"label":"0", "x":10, "y":1.25},
35 {"label":"-", "x":11, "y":1.25},
36 {"label":"=", "x":12, "y":1.25},
37 {"label":"Backspace", "x":13, "y":1.25, "w":2},
38 {"label":"Home", "x":15.25, "y":1.25},
39
40 {"label":"Tab", "x":0, "y":2.25, "w":1.5},
41 {"label":"Q", "x":1.5, "y":2.25},
42 {"label":"W", "x":2.5, "y":2.25},
43 {"label":"E", "x":3.5, "y":2.25},
44 {"label":"R", "x":4.5, "y":2.25},
45 {"label":"T", "x":5.5, "y":2.25},
46 {"label":"Y", "x":6.5, "y":2.25},
47 {"label":"U", "x":7.5, "y":2.25},
48 {"label":"I", "x":8.5, "y":2.25},
49 {"label":"O", "x":9.5, "y":2.25},
50 {"label":"P", "x":10.5, "y":2.25},
51 {"label":"[", "x":11.5, "y":2.25},
52 {"label":"]", "x":12.5, "y":2.25},
53 {"label":"\\", "x":13.5, "y":2.25, "w":1.5},
54 {"label":"Delete", "x":15.25, "y":2.25},
55
56 {"label":"Caps Lock", "x":0, "y":3.25, "w":1.75},
57 {"label":"A", "x":1.75, "y":3.25},
58 {"label":"S", "x":2.75, "y":3.25},
59 {"label":"D", "x":3.75, "y":3.25},
60 {"label":"F", "x":4.75, "y":3.25},
61 {"label":"G", "x":5.75, "y":3.25},
62 {"label":"H", "x":6.75, "y":3.25},
63 {"label":"J", "x":7.75, "y":3.25},
64 {"label":"K", "x":8.75, "y":3.25},
65 {"label":"L", "x":9.75, "y":3.25},
66 {"label":";", "x":10.75, "y":3.25},
67 {"label":"'", "x":11.75, "y":3.25},
68 {"label":"Enter", "x":12.75, "y":3.25, "w":2.25},
69
70 {"label":"Shift", "x":0, "y":4.25, "w":2.25},
71 {"label":"Z", "x":2.25, "y":4.25},
72 {"label":"X", "x":3.25, "y":4.25},
73 {"label":"C", "x":4.25, "y":4.25},
74 {"label":"V", "x":5.25, "y":4.25},
75 {"label":"B", "x":6.25, "y":4.25},
76 {"label":"N", "x":7.25, "y":4.25},
77 {"label":"M", "x":8.25, "y":4.25},
78 {"label":",", "x":9.25, "y":4.25},
79 {"label":".", "x":10.25, "y":4.25},
80 {"label":"/", "x":11.25, "y":4.25},
81 {"label":"Shift", "x":12.25, "y":4.25, "w":1.75},
82 {"label":"\u2191", "x":14.25, "y":4.5},
83
84 {"label":"Ctrl", "x":0, "y":5.25, "w":1.25},
85 {"label":"Win", "x":1.25, "y":5.25, "w":1.25},
86 {"label":"Alt", "x":2.5, "y":5.25, "w":1.25},
87 {"x":3.75, "y":5.25, "w":6.25},
88 {"label":"Alt", "x":10, "y":5.25, "w":1.5},
89 {"label":"Ctrl", "x":11.5, "y":5.25, "w":1.5},
90 {"label":"\u2190", "x":13.25, "y":5.5},
91 {"label":"\u2193", "x":14.25, "y":5.5},
92 {"label":"\u2192", "x":15.25, "y":5.5}
93 ]
94 }
95 }
96}
diff --git a/keyboards/idobao/id80/v3/keymaps/default/keymap.c b/keyboards/idobao/id80/v3/keymaps/default/keymap.c
new file mode 100644
index 000000000..697c4b918
--- /dev/null
+++ b/keyboards/idobao/id80/v3/keymaps/default/keymap.c
@@ -0,0 +1,36 @@
1/* Copyright 2020 Sergey Vlasov <sigprof@gmail.com>
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16#include QMK_KEYBOARD_H
17
18const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
19 [0] = LAYOUT(
20 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, MO(1), KC_INS,
21 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_BSPC, KC_HOME,
22 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_DEL,
23 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,
24 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_UP,
25 KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT
26 ),
27 [1] = LAYOUT(
28 RESET, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_MUTE,
29 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
30 _______, RGB_TOG, _______, RGB_MOD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, _______, _______, _______, _______, _______,
31 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
32 _______, _______, _______, BL_DEC, BL_TOGG, BL_INC, NK_TOGG, _______, _______, _______, _______, _______, BL_INC,
33 _______, _______, _______, _______, _______, _______, BL_TOGG, BL_DEC, BL_STEP
34 ),
35};
36
diff --git a/keyboards/idobao/id80/v3/keymaps/default/readme.md b/keyboards/idobao/id80/v3/keymaps/default/readme.md
new file mode 100644
index 000000000..8ae9f656c
--- /dev/null
+++ b/keyboards/idobao/id80/v3/keymaps/default/readme.md
@@ -0,0 +1 @@
# The default keymap for id80
diff --git a/keyboards/idobao/id80/v3/keymaps/via/keymap.c b/keyboards/idobao/id80/v3/keymaps/via/keymap.c
new file mode 100644
index 000000000..1f3757250
--- /dev/null
+++ b/keyboards/idobao/id80/v3/keymaps/via/keymap.c
@@ -0,0 +1,52 @@
1/* Copyright 2020 Sergey Vlasov <sigprof@gmail.com>
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16#include QMK_KEYBOARD_H
17
18const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
19 [0] = LAYOUT(
20 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, MO(1), KC_INS,
21 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_BSPC, KC_HOME,
22 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_DEL,
23 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,
24 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_UP,
25 KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT
26 ),
27 [1] = LAYOUT(
28 RESET, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_MUTE,
29 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
30 _______, RGB_TOG, _______, RGB_MOD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, _______, _______, _______, _______, _______,
31 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
32 _______, _______, _______, BL_DEC, BL_TOGG, BL_INC, NK_TOGG, _______, _______, _______, _______, _______, BL_INC,
33 _______, _______, _______, _______, _______, _______, BL_TOGG, BL_DEC, BL_STEP
34 ),
35 [2] = LAYOUT(
36 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
37 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
38 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
39 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
40 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
41 _______, _______, _______, _______, _______, _______, _______, _______, _______
42 ),
43 [3] = LAYOUT(
44 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
45 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
46 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
47 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
48 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
49 _______, _______, _______, _______, _______, _______, _______, _______, _______
50 ),
51};
52
diff --git a/keyboards/idobao/id80/v3/keymaps/via/rules.mk b/keyboards/idobao/id80/v3/keymaps/via/rules.mk
new file mode 100644
index 000000000..ca9fed0e6
--- /dev/null
+++ b/keyboards/idobao/id80/v3/keymaps/via/rules.mk
@@ -0,0 +1,2 @@
1LTO_ENABLE = yes
2VIA_ENABLE = yes
diff --git a/keyboards/idobao/id80/v3/readme.md b/keyboards/idobao/id80/v3/readme.md
new file mode 100644
index 000000000..dc6c67b4f
--- /dev/null
+++ b/keyboards/idobao/id80/v3/readme.md
@@ -0,0 +1,27 @@
1# ID80v3
2
3![ID80v3](https://i.imgur.com/PGvZfQj.jpg)
4
5A 75% hotswap in-switch RGB keyboard with an encoder.
6
7* Keyboard Maintainer: [peepeetee](https://github.com/peepeetee)
8* Hardware Supported: ID80v3
9* Hardware Availability: Not avaliable yet
10
11Make example for this keyboard (after setting up your build environment):
12
13 make idobao/id80/v3:default
14
15Flashing example for this keyboard:
16
17 make idobao/id80/v3:default:flash
18
19See 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).
20
21## Bootloader
22
23Enter the bootloader in 3 ways:
24
25* **Bootmagic reset**: Hold down the key at (0,0) in the matrix (usually the top left key or Escape) and plug in the keyboard
26* **Physical reset button**: Briefly press the button on the back of the PCB
27* **Keycode in layout**: Press the key mapped to `RESET` if it is available
diff --git a/keyboards/idobao/id80/v3/rules.mk b/keyboards/idobao/id80/v3/rules.mk
new file mode 100644
index 000000000..49781db61
--- /dev/null
+++ b/keyboards/idobao/id80/v3/rules.mk
@@ -0,0 +1,22 @@
1# MCU name
2MCU = atmega32u4
3
4# Bootloader selection
5BOOTLOADER = atmel-dfu
6
7# Build Options
8# change yes to no to disable
9#
10BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite
11MOUSEKEY_ENABLE = yes # Mouse keys
12EXTRAKEY_ENABLE = yes # Audio control and System control
13CONSOLE_ENABLE = no # Console for debug
14COMMAND_ENABLE = no # Commands for debug and configuration
15NKRO_ENABLE = yes # Enable N-Key Rollover
16BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
17RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
18AUDIO_ENABLE = no # Audio output
19ENCODER_ENABLE = yes
20
21RGB_MATRIX_ENABLE = yes
22RGB_MATRIX_DRIVER = WS2812
diff --git a/keyboards/idobao/id80/v3/v3.c b/keyboards/idobao/id80/v3/v3.c
new file mode 100644
index 000000000..cd05a26a4
--- /dev/null
+++ b/keyboards/idobao/id80/v3/v3.c
@@ -0,0 +1,62 @@
1// Copyright 2022 peepeetee (@peepeetee)
2// Copyright 2022 Xelus22
3// SPDX-License-Identifier: GPL-2.0-or-later
4
5#include "v3.h"
6
7#ifdef ENCODER_ENABLE
8bool encoder_update_kb(uint8_t index, bool clockwise) {
9 if (!encoder_update_user(index, clockwise)) { return false; }
10 if (index == 0) {
11 if (clockwise) {
12 tap_code_delay(KC_VOLU, 10);
13 } else {
14 tap_code_delay(KC_VOLD, 10);
15 }
16 }
17 return true;
18}
19#endif
20
21#ifdef RGB_MATRIX_ENABLE
22led_config_t g_led_config = { {
23 // Key Matrix to LED Index
24 { 8, 9, 34, 35, 64, 65, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED },
25 { 7, NO_LED, 33, 36, 63, 66, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED },
26 { 6, 10, 32, 37, 62, 67, NO_LED, NO_LED, 49, 50, 79 },
27 { 0, 11, 31, 38, 61, 68, 21, NO_LED, 48, NO_LED, 77 },
28 { 1, 12, 30, 39, 60, 69, 20, 22, 47, 52, 76 },
29 { 2, 13, 29, 40, 59, 70, 19, 23, 46, 53, 75 },
30 { 5, 14, 28, 41, 58, 71, NO_LED, NO_LED, NO_LED, 51, 78 },
31 { 3, 15, 27, 42, 57, 72, 18, 24, 45, 54, 74 },
32 { 4, 16, 26, 43, 56, 73, 17, 25, 44, 55, NO_LED },
33}, {
34 // LED Index to Physical Position
35{224, 64}, {209, 64}, {195, 64}, {173, 61}, {151, 61}, {94 , 61}, {39 , 61}, {20 , 61}, {2 , 61}, {9 , 50}, {33 , 50},
36{48 , 50}, {62 , 50}, {77 , 50}, {92 , 50}, {106, 50}, {121, 50}, {136, 50}, {151, 50}, {165, 50}, {185, 50}, {209, 53},
37{196, 39}, {173, 39}, {158, 39}, {143, 39}, {129, 39}, {114, 39}, {99 , 39}, {84 , 39}, {70 , 39}, {55 , 39}, {40 , 39},
38{26 , 39}, {6 , 39}, {4 , 28}, {22 , 28}, {37 , 28}, {51 , 28}, {66 , 28}, {81 , 28}, {95 , 28}, {110, 28}, {125, 28},
39{140, 28}, {154, 28}, {169, 28}, {184, 28}, {202, 28}, {224, 28}, {224, 17}, {198, 17}, {176, 17}, {162, 17}, {147, 17},
40{132, 17}, {118, 17}, {103, 17}, {88 , 17}, {73 , 17}, {59 , 17}, {44 , 17}, {29 , 17}, {15 , 17}, {0 , 17}, {0 , 0},
41{18 , 0}, {33 , 0}, {48 , 0}, {62 , 0}, {81 , 0}, {95 , 0}, {110, 0}, {125, 0}, {143, 0}, {158, 0}, {173, 0},
42{187, 0}, {206, 0}, {224, 0},
43
44{ 207, 13},
45{ 207, 32},
46{ 207, 51},{ 174, 51},{ 141, 51},{ 108, 51},{ 73, 51},{ 40, 51},{ 13, 51 },
47{ 13, 32},
48{ 13, 13},{ 40, 13},{ 73, 13},{ 108, 13},{ 141, 13},{ 174, 13},
49
50}, {
51 // LED Index to Flag
521,1,1,1,1,4,1,1,1,
531,4,4,4,4,4,4,4,4,4,4,1,1,
541,4,4,4,4,4,4,4,4,4,4,4,1,
551,4,4,4,4,4,4,4,4,4,4,4,4,4,1,
561,1,4,4,4,4,4,4,4,4,4,4,4,4,4,
571,4,4,4,4,1,1,1,1,4,4,4,4,1,1,
582,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
59
60} };
61
62#endif
diff --git a/keyboards/idobao/id80/v3/v3.h b/keyboards/idobao/id80/v3/v3.h
new file mode 100644
index 000000000..94626fe4f
--- /dev/null
+++ b/keyboards/idobao/id80/v3/v3.h
@@ -0,0 +1,37 @@
1/* Copyright 2020 Sergey Vlasov <sigprof@gmail.com>
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16#pragma once
17
18#include "quantum.h"
19
20#define LAYOUT( \
21 K50, K51, K52, K53, K54, K55, K56, K57, K58, KA7, KA5, KA4, KA3, KA6, KA2, \
22 K40, K41, K42, K43, K44, K45, K46, K47, K48, K98, K97, K95, K94, K96, K92, \
23 K30, K31, K32, K33, K34, K35, K36, K37, K38, K88, K87, K85, K84, K83, K82, \
24 K20, K21, K22, K23, K24, K25, K26, K27, K28, K78, K77, K75, K74, \
25 K10, K12, K13, K14, K15, K16, K17, K18, K68, K67, K65, K64, K63, \
26 K00, K01, K02, K06, K08, K07, K05, K04, K03 \
27) { \
28 { K00, K10, K20, K30, K40, K50, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO }, \
29 { K01, KC_NO, K21, K31, K41, K51, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO }, \
30 { K02, K12, K22, K32, K42, K52, KC_NO, KC_NO, K82, K92, KA2 }, \
31 { K03, K13, K23, K33, K43, K53, K63, KC_NO, K83, KC_NO, KA3 }, \
32 { K04, K14, K24, K34, K44, K54, K64, K74, K84, K94, KA4 }, \
33 { K05, K15, K25, K35, K45, K55, K65, K75, K85, K95, KA5 }, \
34 { K06, K16, K26, K36, K46, K56, KC_NO, KC_NO, KC_NO, K96, KA6 }, \
35 { K07, K17, K27, K37, K47, K57, K67, K77, K87, K97, KA7 }, \
36 { K08, K18, K28, K38, K48, K58, K68, K78, K88, K98, KC_NO }, \
37}