aboutsummaryrefslogtreecommitdiff
path: root/keyboards/bandominedoni
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/bandominedoni')
-rw-r--r--keyboards/bandominedoni/bandominedoni.c171
-rw-r--r--keyboards/bandominedoni/bandominedoni.h88
-rw-r--r--keyboards/bandominedoni/config.h270
-rw-r--r--keyboards/bandominedoni/info.json102
-rw-r--r--keyboards/bandominedoni/keymaps/default/keymap.c84
-rw-r--r--keyboards/bandominedoni/keymaps/default/readme.md1
-rw-r--r--keyboards/bandominedoni/keymaps/led/keymap.c227
-rw-r--r--keyboards/bandominedoni/keymaps/led/readme.md1
-rw-r--r--keyboards/bandominedoni/keymaps/led/rules.mk2
-rw-r--r--keyboards/bandominedoni/keymaps/via/config.h18
-rw-r--r--keyboards/bandominedoni/keymaps/via/keymap.c156
-rw-r--r--keyboards/bandominedoni/keymaps/via/readme.md1
-rw-r--r--keyboards/bandominedoni/keymaps/via/rules.mk3
-rw-r--r--keyboards/bandominedoni/readme.md22
-rw-r--r--keyboards/bandominedoni/rgb_matrix_kb.inc16
-rw-r--r--keyboards/bandominedoni/rules.mk25
16 files changed, 1187 insertions, 0 deletions
diff --git a/keyboards/bandominedoni/bandominedoni.c b/keyboards/bandominedoni/bandominedoni.c
new file mode 100644
index 000000000..eacbb40fa
--- /dev/null
+++ b/keyboards/bandominedoni/bandominedoni.c
@@ -0,0 +1,171 @@
1/* Copyright 2021 3araht
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
17#include "bandominedoni.h"
18
19#ifdef RGB_MATRIX_ENABLE
20
21led_config_t g_led_config = {
22 {
23 { 75, 46, 45, 44, 43, 42, NO_LED }, \
24 { 47, 48, 49, 50, 51, 52, 53 }, \
25 { 60, 59, 58, 57, 56, 55, 54 }, \
26 { 61, 62, 63, 64, 65, 66, 67 }, \
27 { 74, 73, 72, 71, 70, 69, 68 }, \
28 { NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED }, \
29 { 7, 6, 4, 3, 2, 1, 5}, \
30 { 8, 9, 10, 11, 12, 13, 0 }, \
31 { 19, 18, 17, 16, 15, 14, 41 }, \
32 { 20, 21, 22, 23, 24, 25, 40 }, \
33 { 30, 29, 28, 27, 26, 39, 38 }, \
34 { 31, 32, 33, 34, 35, 36, 37 }
35 }, {
36 { 145, 6 }, { 157, 5 }, { 153, 14 }, { 149, 22 }, { 145, 32 }, { 136, 35 }, { 139, 48 }, { 134, 61 },
37 { 142, 60 }, { 148, 43 }, { 154, 29 }, { 158, 20 }, { 163, 12 }, { 168, 4 },
38 { 178, 5 }, { 173, 12 }, { 168, 20 }, { 163, 28 }, { 157, 40 }, { 151, 55 },
39 { 160, 52 }, { 166, 39 }, { 172, 28 }, { 177, 20 }, { 182, 13 }, { 188, 7 },
40 { 192, 17 }, { 186, 23 }, { 181, 30 }, { 175, 39 }, { 169, 50 },
41 { 178, 51 }, { 184, 41 }, { 190, 33 }, { 196, 27 },
42 { 199, 37 }, { 193, 45 }, { 187, 53 },
43 { 196, 56 }, { 202, 49 },
44 { 205, 61 },
45 { 202, 4 },
46 { 84, 18 }, { 73, 13 }, { 62, 10 }, { 51, 8 }, { 39, 11 }, { 24, 22 },
47 { 34, 19 }, { 45, 16 }, { 56, 16 }, { 66, 18 }, { 77, 22 }, { 87, 28 },
48 { 92, 40 }, { 81, 32 }, { 71, 27 }, { 61, 24 }, { 51, 24 }, { 41, 24 }, { 30, 28 },
49 { 24, 42 }, { 34, 37 }, { 44, 35 }, { 54, 34 }, { 64, 36 }, { 74, 38 }, { 84, 44 },
50 { 87, 54 }, { 77, 49 }, { 67, 47 }, { 57, 45 }, { 47, 45 }, { 37, 48 }, { 27, 52 }, { 19, 56 },
51 }, {
52 4, 4, 4, 4, 4, 4, 4, 4,
53 4, 4, 4, 4, 4, 4,
54 4, 4, 4, 4, 4, 4,
55 4, 4, 4, 4, 4, 4,
56 4, 4, 4, 4, 4,
57 4, 4, 4, 4,
58 4, 4, 4,
59 4, 4,
60 4,
61 4,
62 4, 4, 4, 4, 4, 4,
63 4, 4, 4, 4, 4, 4,
64 4, 4, 4, 4, 4, 4, 4,
65 4, 4, 4, 4, 4, 4, 4,
66 4, 4, 4, 4, 4, 4, 4, 4
67 }
68};
69#endif
70
71#if defined(SPLIT_HAND_MATRIX_GRID)
72static uint8_t peek_matrix_intersection(pin_t out_pin, pin_t in_pin) {
73 setPinInputHigh(in_pin);
74 setPinOutput(out_pin);
75 writePinLow(out_pin);
76 // It's almost unnecessary, but wait until it's down to low, just in case.
77 wait_us(1);
78 uint8_t pin_state = readPin(in_pin);
79 // Set out_pin to a setting that is less susceptible to noise.
80 setPinInputHigh(out_pin);
81 matrix_io_delay(); // Wait for the pull-up to go HIGH.
82 return pin_state;
83}
84#endif
85
86// Overriding is_keyboard_left() in qmk_firmware/quantum/split_common/split_util.c to limit the handedness check only once.
87// reason: bandoMIneDonI has no space on right hand side to use "SPLIT_HAND_MATRIX_GRID".
88// However, It enables to decide the handedness by the HW by adding one condition: "not to press any keys (especially r30) dusing startup."
89bool is_keyboard_left(void) {
90static enum { UNKNOWN, LEFT, RIGHT } hand_side = UNKNOWN;
91
92 // only check once, as this is called often
93 if (hand_side == UNKNOWN) {
94#if defined(SPLIT_HAND_PIN)
95 // Test pin SPLIT_HAND_PIN for High/Low, if low it's right hand
96 setPinInput(SPLIT_HAND_PIN);
97 hand_side = readPin(SPLIT_HAND_PIN) ? LEFT : RIGHT;
98 return (hand_side == LEFT);
99#elif defined(SPLIT_HAND_MATRIX_GRID)
100# ifdef SPLIT_HAND_MATRIX_GRID_LOW_IS_RIGHT
101 hand_side = peek_matrix_intersection(SPLIT_HAND_MATRIX_GRID) ? LEFT : RIGHT;
102 return (hand_side == LEFT);
103# else
104 hand_side = peek_matrix_intersection(SPLIT_HAND_MATRIX_GRID) ? RIGHT : LEFT;
105 return (hand_side == LEFT);
106# endif
107#elif defined(EE_HANDS)
108 hand_side = eeconfig_read_handedness() ? LEFT : RIGHT;
109 return (hand_side == LEFT);
110#elif defined(MASTER_RIGHT)
111 hand_side = !is_keyboard_master() ? LEFT : RIGHT;
112 return (hand_side == LEFT);
113#endif
114 hand_side = is_keyboard_master() ? LEFT : RIGHT;
115 return (hand_side == LEFT);
116 } else {
117 return (hand_side == LEFT);
118 }
119}
120
121#ifdef ENCODER_ENABLE
122# ifdef ENCODERS
123static uint8_t encoder_state[ENCODERS] = {0};
124static keypos_t encoder_cw[ENCODERS] = ENCODERS_CW_KEY;
125static keypos_t encoder_ccw[ENCODERS] = ENCODERS_CCW_KEY;
126# endif
127
128void encoder_action_unregister(void) {
129# ifdef ENCODERS
130 for (int index = 0; index < ENCODERS; ++index) {
131 if (encoder_state[index]) {
132 keyevent_t encoder_event = (keyevent_t) {
133 .key = encoder_state[index] >> 1 ? encoder_cw[index] : encoder_ccw[index],
134 .pressed = false,
135 .time = (timer_read() | 1)
136 };
137 encoder_state[index] = 0;
138 action_exec(encoder_event);
139 }
140 }
141# endif
142}
143
144void encoder_action_register(uint8_t index, bool clockwise) {
145# ifdef ENCODERS
146 keyevent_t encoder_event = (keyevent_t) {
147 .key = clockwise ? encoder_cw[index] : encoder_ccw[index],
148 .pressed = true,
149 .time = (timer_read() | 1)
150 };
151 encoder_state[index] = (clockwise ^ 1) | (clockwise << 1);
152# ifdef CONSOLE_ENABLE
153 uprintf("encoder_action_register index = %u, clockwise = %u, row = %u, col = %u\n", index, clockwise, encoder_event.key.row, encoder_event.key.col);
154# endif
155 action_exec(encoder_event);
156# endif
157}
158
159void matrix_scan_kb(void) {
160 encoder_action_unregister();
161 matrix_scan_user();
162}
163
164bool encoder_update_kb(uint8_t index, bool clockwise) {
165 encoder_action_register(index, clockwise);
166 // don't return user actions, because they are in the keymap
167 // encoder_update_user(index, clockwise);
168 return true;
169};
170
171#endif
diff --git a/keyboards/bandominedoni/bandominedoni.h b/keyboards/bandominedoni/bandominedoni.h
new file mode 100644
index 000000000..1eca4f8d9
--- /dev/null
+++ b/keyboards/bandominedoni/bandominedoni.h
@@ -0,0 +1,88 @@
1/* Copyright 2021 3araht
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
17#pragma once
18
19#include "quantum.h"
20
21/* This is a shortcut to help you visually see your layout.
22 *
23 * The first section contains all of the arguments representing the physical
24 * layout of the board and position of the keys.
25 *
26 * The second converts the arguments into a two-dimensional array which
27 * represents the switch matrix.
28 */
29
30// oc: for Open Close selection pedal
31// fn: function layer
32
33#define LAYOUT( \
34 l00, l01, l02, l03, l04, \
35 l10, l11, l12, l13, l14, l15, l16, \
36 l20, l21, l22, l23, l24, l25, l26, \
37 l30, l31, l32, l33, l34, l35, l36, \
38 l40, l41, l42, l43, l44, l45, l46, l47, \
39 \
40 oc, r00, r01, r02, r03, fn, \
41 r10, r11, r12, r13, r14, ccw, cw,\
42 r20, r21, r22, r23, r24, r25, \
43 r30, r31, r32, r33, r34, r35, r36, r37, \
44 r40, r41, r42, r43, r44, r45, r46, r47, \
45 r50, r51, r52, r53, r54, r55, r56, r57, r58 \
46) { \
47 { l40, l00, l01, l02, l03, l04, KC_NO }, \
48 { l10, l11, l12, l13, l14, l15, l16 }, \
49 { l20, l21, l22, l23, l24, l25, l26 }, \
50 { l30, l31, l32, l33, l34, l35, l36 }, \
51 { l41, l42, l43, l44, l45, l46, l47 }, \
52 { KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, ccw, cw }, \
53 { r50, r40, r31, r20, r10, r00, r30 }, \
54 { r51, r41, r32, r21, r11, r01, oc }, \
55 { r52, r42, r33, r22, r12, r02, fn }, \
56 { r53, r43, r34, r23, r13, r03, r58 }, \
57 { r54, r44, r35, r24, r14, r47, r57 }, \
58 { r55, r45, r36, r25, r37, r46, r56 } \
59}
60
61// Uncomment below if a pedal used for Open/Close is normally-on type (such as Yamaha's.)
62// #define PEDAL_NORMALLY_CLOSED
63
64#ifdef PEDAL_NORMALLY_CLOSED
65# define MO_SWAP MO(_OPEN)
66# define DF_SWAP DF(_CLOSE)
67# define TG_SWAP TG(_OPEN)
68#else
69# define MO_SWAP MO(_CLOSE)
70# define DF_SWAP DF(_OPEN)
71# define TG_SWAP TG(_CLOSE)
72#endif
73
74// Long press: go to _FN layer, tap: MUTE
75#define FN_MUTE LT(_FN, KC_MUTE)
76#define DF_QWER DF(_QWERTY)
77#define MIS_EIS LT(_MISC,KC_LANG2)
78#define MIS_KAN LT(_MISC,KC_LANG1)
79
80
81// Overriding is_keyboard_left() in qmk_firmware/quantum/split_common/split_util.c to limit the handedness check only once.
82// reason: bandoMIneDonI has no space on right hand side to use "SPLIT_HAND_MATRIX_GRID".
83// However, It enables to decide the handedness by the HW by adding one condition: "not to press any keys (especially r30) dusing startup."
84bool is_keyboard_left(void);
85
86void encoder_action_unregister(void);
87
88void encoder_action_register(uint8_t index, bool clockwise);
diff --git a/keyboards/bandominedoni/config.h b/keyboards/bandominedoni/config.h
new file mode 100644
index 000000000..e1e4d8740
--- /dev/null
+++ b/keyboards/bandominedoni/config.h
@@ -0,0 +1,270 @@
1/* Copyright 2021 3araht
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 "config_common.h"
19
20/* USB Device descriptor parameter */
21#define VENDOR_ID 0xFEED
22#define PRODUCT_ID 0xF4B5
23#define DEVICE_VER 0x0001
24#define MANUFACTURER 3araht
25#define PRODUCT bandominedoni
26
27/* key matrix size */
28#define MATRIX_ROWS 12
29#define MATRIX_COLS 7
30
31/*
32 * Keyboard Matrix Assignments
33 *
34 * Change this to how you wired your keyboard
35 * COLS: AVR pins used for columns, left to right
36 * ROWS: AVR pins used for rows, top to bottom
37 * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
38 * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
39 *
40 */
41#define MATRIX_ROW_PINS { B5, B4, D7, F6, C6, D4 }
42#define MATRIX_COL_PINS { D1, E6, F7, B1, B3, B2, D0 }
43#define UNUSED_PINS
44
45#define MASTER_RIGHT
46#ifndef MASTER_RIGHT
47// SPLIT_HAND_MATRIX_GRID was initially designed to use with left hand side diode D35 mounted and not pressing K7 on the right hand side during boot. However when a USB cable is reconnected immediately, it fails. Decided to use "MASTER_RIGHT" to make it more reliable.
48# define SPLIT_HAND_MATRIX_GRID B5, D0
49#endif
50
51/* COL2ROW, ROW2COL */
52#define DIODE_DIRECTION COL2ROW
53
54/*
55 * Split Keyboard specific options, make sure you have 'SPLIT_KEYBOARD = yes' in your rules.mk, and define SOFT_SERIAL_PIN.
56 */
57#define SOFT_SERIAL_PIN D2 // or D1, D2, D3, E6
58
59//#define LED_NUM_LOCK_PIN B0
60//#define LED_CAPS_LOCK_PIN B1
61//#define LED_SCROLL_LOCK_PIN B2
62//#define LED_COMPOSE_PIN B3
63//#define LED_KANA_PIN B4
64
65//#define BACKLIGHT_PIN B7
66//#define BACKLIGHT_LEVELS 3
67//#define BACKLIGHT_BREATHING
68
69#define RGB_DI_PIN D3
70//#ifdef RGB_DI_PIN
71//# define RGBLED_NUM 16
72//# define RGBLIGHT_HUE_STEP 8
73//# define RGBLIGHT_SAT_STEP 8
74//# define RGBLIGHT_VAL_STEP 8
75//# define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */
76//# define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
77/*== all animations enable ==*/
78//# define RGBLIGHT_ANIMATIONS
79/*== or choose animations ==*/
80//# define RGBLIGHT_EFFECT_BREATHING
81//# define RGBLIGHT_EFFECT_RAINBOW_MOOD
82//# define RGBLIGHT_EFFECT_RAINBOW_SWIRL
83//# define RGBLIGHT_EFFECT_SNAKE
84//# define RGBLIGHT_EFFECT_KNIGHT
85//# define RGBLIGHT_EFFECT_CHRISTMAS
86//# define RGBLIGHT_EFFECT_STATIC_GRADIENT
87//# define RGBLIGHT_EFFECT_RGB_TEST
88//# define RGBLIGHT_EFFECT_ALTERNATING
89/*== customize breathing effect ==*/
90/*==== (DEFAULT) use fixed table instead of exp() and sin() ====*/
91//# define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256(default) or 128 or 64
92/*==== use exp() and sin() ====*/
93//# define RGBLIGHT_EFFECT_BREATHE_CENTER 1.85 // 1 to 2.7
94//# define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0 to 255
95//#endif
96
97#ifdef RGB_MATRIX_ENABLE
98
99/* ws2812 RGB MATRIX */
100# define DRIVER_LED_TOTAL 76
101
102 // reacts to keypresses
103# define RGB_MATRIX_KEYPRESSES
104
105// for all fingers used at once.
106# define LED_HITS_TO_REMEMBER 10
107
108# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 50
109# define RGB_MATRIX_STARTUP_SPD 127
110// the above brighness setting has no effect on rgb_matrix_set_color().
111// Use darker colors instead.
112/* RGB darker COLORS */
113# define RGB_DARKWHITE 0x33, 0x33, 0x33
114# define RGB_DARKRED 0x33, 0x0, 0x0
115# define RGB_DARKCORAL 0x33, 0x18, 0xF
116# define RGB_DARKORANGE 0x33, 0x19, 0x0
117# define RGB_DARKGOLDENROD 0x2B, 0x21, 0x6
118# define RGB_DARKGOLD 0x33, 0x2B, 0x0
119# define RGB_DARKYELLOW 0x33, 0x33, 0x0
120# define RGB_DARKCHARTREUSE 0x19, 0x33, 0x0
121# define RGB_DARKGREEN 0x0, 0x33, 0x0
122# define RGB_DARKSPRINGGREEN 0x0, 0x33, 0x19
123# define RGB_DARKTURQUOISE 0xE, 0x16, 0x15
124# define RGB_DARKTEAL 0x0, 0x19, 0x19
125# define RGB_DARKCYAN 0x0, 0x33, 0x33
126# define RGB_DARKAZURE 0x1E, 0x31, 0x33
127# define RGB_DARKBLUE 0x0, 0x0, 0x33
128# define RGB_DARKPURPLE 0x18, 0x0, 0x33
129# define RGB_DARKMAGENTA 0x33, 0x0, 0x33
130# define RGB_DARKPINK 0x33, 0x19, 0x26
131
132// https://docs.qmk.fm/#/feature_rgb_matrix
133// Enable suspend mode.
134# define RGB_DISABLE_WHEN_USB_SUSPENDED true
135
136# ifdef CONSOLE_ENABLE
137# define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE
138# else
139// #define ENABLE_RGB_MATRIX_ALPHAS_MODS
140# define ENABLE_RGB_MATRIX_GRADIENT_UP_DOWN
141# define ENABLE_RGB_MATRIX_BREATHING
142# define ENABLE_RGB_MATRIX_BAND_SAT
143# define ENABLE_RGB_MATRIX_BAND_PINWHEEL_SAT
144# define ENABLE_RGB_MATRIX_BAND_SPIRAL_SAT
145# define ENABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT
146# define ENABLE_RGB_MATRIX_RAINBOW_PINWHEELS
147// #define ENABLE_RGB_MATRIX_TYPING_HEATMAP
148# define ENABLE_RGB_MATRIX_DIGITAL_RAIN
149# define ENABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE
150# define ENABLE_RGB_MATRIX_SOLID_REACTIVE
151# define ENABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE
152# define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS
153# define ENABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS
154# define ENABLE_RGB_MATRIX_SPLASH
155# define ENABLE_RGB_MATRIX_SOLID_SPLASH
156// RAINDROPS don't match well with layer LED indicator (oc) using rgb_matrix_set_color().
157// #define ENABLE_RGB_MATRIX_RAINDROPS
158// #define ENABLE_RGB_MATRIX_JELLYBEAN_RAINDROPS
159// Recommendend not to use these.
160# ifndef VIA_ENABLE
161# define ENABLE_RGB_MATRIX_GRADIENT_LEFT_RIGHT
162# define ENABLE_RGB_MATRIX_BAND_VAL
163# define ENABLE_RGB_MATRIX_BAND_PINWHEEL_VAL
164# define ENABLE_RGB_MATRIX_BAND_SPIRAL_VAL
165# define ENABLE_RGB_MATRIX_CYCLE_ALL
166# define ENABLE_RGB_MATRIX_CYCLE_UP_DOWN
167# define ENABLE_RGB_MATRIX_RAINBOW_MOVING_CHEVRON
168# define ENABLE_RGB_MATRIX_CYCLE_OUT_IN
169# define ENABLE_RGB_MATRIX_CYCLE_OUT_IN_DUAL
170# define ENABLE_RGB_MATRIX_CYCLE_PINWHEEL
171# define ENABLE_RGB_MATRIX_CYCLE_SPIRAL
172# define ENABLE_RGB_MATRIX_DUAL_BEACON
173# define ENABLE_RGB_MATRIX_RAINBOW_BEACON
174# define ENABLE_RGB_MATRIX_HUE_BREATHING
175# define ENABLE_RGB_MATRIX_HUE_PENDULUM
176# define ENABLE_RGB_MATRIX_HUE_WAVE
177# define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE
178# define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS
179# define ENABLE_RGB_MATRIX_MULTISPLASH
180# define ENABLE_RGB_MATRIX_SOLID_MULTISPLASH
181# define ENABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS
182# endif
183# endif // CONSOLE_ENABLE
184#endif // RGB_MATRIX_ENABLE
185
186/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
187#define DEBOUNCE 5
188
189/* define if matrix has ghost (lacks anti-ghosting diodes) */
190//#define MATRIX_HAS_GHOST
191
192/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
193// #define LOCKING_SUPPORT_ENABLE
194/* Locking resynchronize hack */
195// #define LOCKING_RESYNC_ENABLE
196
197/* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
198 * This is useful for the Windows task manager shortcut (ctrl+shift+esc).
199 */
200//#define GRAVE_ESC_CTRL_OVERRIDE
201
202/*
203 * Force NKRO
204 *
205 * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
206 * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
207 * makefile for this to work.)
208 *
209 * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
210 * until the next keyboard reset.
211 *
212 * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
213 * fully operational during normal computer usage.
214 *
215 * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
216 * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
217 * bootmagic, NKRO mode will always be enabled until it is toggled again during a
218 * power-up.
219 *
220 */
221//#define FORCE_NKRO
222
223/*
224 * Feature disable options
225 * These options are also useful to firmware size reduction.
226 */
227
228/* disable debug print */
229//#define NO_DEBUG
230
231/* disable print */
232//#define NO_PRINT
233
234/* disable action features */
235//#define NO_ACTION_LAYER
236
237/* 2021/01/22 added to shrink firmware size */
238// NO_ACTION_TAPPING -1964 bytes, however, this disables Layer mods...
239// #define NO_ACTION_TAPPING
240// NO_ACTION_ONESHOT -388 bytes
241#define NO_ACTION_ONESHOT
242
243/* disable these deprecated features by default */
244#define NO_ACTION_MACRO
245#define NO_ACTION_FUNCTION
246
247/* Bootmagic Lite key configuration */
248//#define BOOTMAGIC_LITE_ROW 0
249//#define BOOTMAGIC_LITE_COLUMN 0
250
251#ifdef MIDI_ENABLE
252# define MIDI_ADVANCED
253// Initial velocity value (avoid using 127 since it is used as a special number in some sound sources.)
254# define MIDI_INITIAL_VELOCITY 117
255#endif // MIDI_ENABLE
256
257/*
258 * Encoder options
259 */
260#ifdef ENCODER_ENABLE
261# define ENCODERS_PAD_A { C7 } // dummy
262# define ENCODERS_PAD_B { B7 } // dummy
263# define ENCODERS_PAD_A_RIGHT { F5 }
264# define ENCODERS_PAD_B_RIGHT { F4 }
265# define ENCODER_RESOLUTION 4
266# define TAP_CODE_DELAY 10
267# define ENCODERS 2
268# define ENCODERS_CW_KEY { {4, 5}, {6, 5} }
269# define ENCODERS_CCW_KEY { {3, 5}, {5, 5} }
270#endif // ENCODER_ENABLE
diff --git a/keyboards/bandominedoni/info.json b/keyboards/bandominedoni/info.json
new file mode 100644
index 000000000..82fcc559c
--- /dev/null
+++ b/keyboards/bandominedoni/info.json
@@ -0,0 +1,102 @@
1{
2 "keyboard_name": "bandominedoni",
3 "url": "https://github.com/3araht",
4 "maintainer": "3araht",
5 "layouts": {
6 "LAYOUT": {
7 "layout": [
8 {"label": "l00", "x": 2, "y": 0.5},
9 {"label": "l01", "x": 3, "y": 0.5},
10 {"label": "l02", "x": 4, "y": 0.5},
11 {"label": "l03", "x": 5, "y": 0.5},
12 {"label": "l04", "x": 6, "y": 0.5},
13
14 {"label": "l10", "x": 0.5, "y": 1.5},
15 {"label": "l11", "x": 1.5, "y": 1.5},
16 {"label": "l12", "x": 2.5, "y": 1.5},
17 {"label": "l13", "x": 3.5, "y": 1.5},
18 {"label": "l14", "x": 4.5, "y": 1.5},
19 {"label": "l15", "x": 5.5, "y": 1.5},
20 {"label": "l16", "x": 6.5, "y": 1.5},
21
22 {"label": "l20", "x": 1, "y": 2.5},
23 {"label": "l21", "x": 2, "y": 2.5},
24 {"label": "l22", "x": 3, "y": 2.5},
25 {"label": "l23", "x": 4, "y": 2.5},
26 {"label": "l24", "x": 5, "y": 2.5},
27 {"label": "l25", "x": 6, "y": 2.5},
28 {"label": "l26", "x": 7, "y": 2.5},
29
30 {"label": "l30", "x": 0.5, "y": 3.5},
31 {"label": "l31", "x": 1.5, "y": 3.5},
32 {"label": "l32", "x": 2.5, "y": 3.5},
33 {"label": "l33", "x": 3.5, "y": 3.5},
34 {"label": "l34", "x": 4.5, "y": 3.5},
35 {"label": "l35", "x": 5.5, "y": 3.5},
36 {"label": "l36", "x": 6.5, "y": 3.5},
37
38 {"label": "l40", "x": 0, "y": 4.5},
39 {"label": "l41", "x": 1, "y": 4.5},
40 {"label": "l42", "x": 2, "y": 4.5},
41 {"label": "l43", "x": 3, "y": 4.5},
42 {"label": "l44", "x": 4, "y": 4.5},
43 {"label": "l45", "x": 5, "y": 4.5},
44 {"label": "l46", "x": 6, "y": 4.5},
45 {"label": "l47", "x": 7, "y": 4.5},
46
47 {"label": "oc", "x": 9, "y": 0},
48
49 {"label": "r00", "x": 11.5, "y": 0},
50 {"label": "r01", "x": 12.5, "y": 0},
51 {"label": "r02", "x": 13.5, "y": 0},
52 {"label": "r03", "x": 14.5, "y": 0},
53
54 {"label": "fn", "x": 17, "y": 0},
55
56 {"label": "r10", "x": 11, "y": 1},
57 {"label": "r11", "x": 12, "y": 1},
58 {"label": "r12", "x": 13, "y": 1},
59 {"label": "r13", "x": 14, "y": 1},
60 {"label": "r14", "x": 15, "y": 1},
61
62 {"label": "ccw", "x": 16.5, "y": 1},
63 {"label": "cw", "x": 17.5, "y": 1},
64
65 {"label": "r20", "x": 10.5, "y": 2},
66 {"label": "r21", "x": 11.5, "y": 2},
67 {"label": "r22", "x": 12.5, "y": 2},
68 {"label": "r23", "x": 13.5, "y": 2},
69 {"label": "r24", "x": 14.5, "y": 2},
70 {"label": "r25", "x": 15.5, "y": 2},
71
72 {"label": "r30", "x": 9, "y": 3},
73 {"label": "r31", "x": 10, "y": 3},
74 {"label": "r32", "x": 11, "y": 3},
75 {"label": "r33", "x": 12, "y": 3},
76 {"label": "r34", "x": 13, "y": 3},
77 {"label": "r35", "x": 14, "y": 3},
78 {"label": "r36", "x": 15, "y": 3},
79 {"label": "r37", "x": 16, "y": 3},
80
81 {"label": "r40", "x": 9.5, "y": 4},
82 {"label": "r41", "x": 10.5, "y": 4},
83 {"label": "r42", "x": 11.5, "y": 4},
84 {"label": "r43", "x": 12.5, "y": 4},
85 {"label": "r44", "x": 13.5, "y": 4},
86 {"label": "r45", "x": 14.5, "y": 4},
87 {"label": "r46", "x": 15.5, "y": 4},
88 {"label": "r47", "x": 16.5, "y": 4},
89
90 {"label": "r50", "x": 9, "y": 5},
91 {"label": "r51", "x": 10, "y": 5},
92 {"label": "r52", "x": 11, "y": 5},
93 {"label": "r53", "x": 12, "y": 5},
94 {"label": "r54", "x": 13, "y": 5},
95 {"label": "r55", "x": 14, "y": 5},
96 {"label": "r56", "x": 15, "y": 5},
97 {"label": "r57", "x": 16, "y": 5},
98 {"label": "r58", "x": 17, "y": 5}
99 ]
100 }
101 }
102}
diff --git a/keyboards/bandominedoni/keymaps/default/keymap.c b/keyboards/bandominedoni/keymaps/default/keymap.c
new file mode 100644
index 000000000..bfa49dfe1
--- /dev/null
+++ b/keyboards/bandominedoni/keymaps/default/keymap.c
@@ -0,0 +1,84 @@
1/* Copyright 2021 3araht
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
18// Defines names for use in layer keycodes and the keymap
19enum layer_names {
20#ifndef PEDAL_NORMALLY_CLOSED
21 _OPEN,
22#endif
23 _CLOSE,
24#ifdef PEDAL_NORMALLY_CLOSED
25 _OPEN,
26#endif
27 _FN
28};
29
30
31const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
32 [_OPEN] = LAYOUT(
33 MI_Gs_1, MI_As_1, MI_Cs_2, MI_F_2, MI_Gs_3,
34 MI_E_1, MI_A_1, MI_G_2, MI_Ds_2, MI_F_3, MI_As_2, MI_F_1,
35 MI_D_2, MI_A_2, MI_C_3, MI_E_3, MI_C_2, MI_G_1, TG_SWAP,
36 MI_E_2, MI_Gs_2, MI_B_2, MI_D_3, MI_Fs_3, MI_Cs_3, MI_Fs_1,
37 MI_D_1, MI_B_1, MI_G_3, MI_A_3, MI_Ds_3, MI_Fs_2, MI_Ds_1, MI_C_1,
38
39 MO_SWAP, MI_B_5, MI_Gs_5, MI_G_5, MI_F_5, FN_MUTE,
40 MI_Cs_3, MI_A_5, MI_Fs_5, MI_E_5, MI_Ds_5, KC_VOLD, KC_VOLU,
41 MI_C_3, MI_D_3, MI_G_3, MI_As_4, MI_C_5, MI_D_5,
42 TG_SWAP, MI_B_2, MI_E_3, MI_Cs_4, MI_Fs_3, MI_A_3, MI_C_4, MI_E_4,
43 MI_A_2, MI_F_3, MI_As_3, MI_Gs_3, MI_B_3, MI_D_4, MI_Gs_4, MI_B_4,
44 MI_Gs_2, MI_As_2, MI_Ds_3, MI_F_4, MI_Ds_4, MI_Fs_4, MI_A_4, MI_Cs_5, MI_G_4
45 ),
46
47 [_CLOSE] = LAYOUT(
48 MI_Gs_1, MI_As_1, MI_Ds_2, MI_Ds_3, MI_G_3,
49 MI_D_1, MI_D_2, MI_As_2, MI_C_3, MI_Cs_2, MI_C_2, MI_Fs_1,
50 MI_G_1, MI_G_2, MI_B_2, MI_D_3, MI_F_3, MI_Fs_2, TG_SWAP,
51 MI_A_1, MI_E_2, MI_A_2, MI_Cs_3, MI_E_3, MI_Gs_2, MI_B_1,
52 MI_E_1, MI_E_2, MI_Fs_3, MI_Gs_3, MI_B_3, MI_F_2, MI_Cs_1, MI_F_1,
53
54 MO_SWAP, MI_A_5, MI_Gs_5, MI_Fs_5, MI_F_5, FN_MUTE,
55 MI_C_3, MI_G_5, MI_As_4, MI_C_5, MI_Ds_5, KC_VOLD, KC_VOLU,
56 MI_D_3, MI_Cs_3, MI_Gs_3, MI_As_3, MI_C_4, MI_D_5,
57 TG_SWAP, MI_B_2, MI_Fs_3, MI_Fs_4, MI_G_3, MI_B_3, MI_D_4, MI_G_4,
58 MI_A_2, MI_F_3, MI_E_3, MI_A_3, MI_Cs_4, MI_E_4, MI_A_4, MI_Cs_5,
59 MI_Gs_2, MI_As_2, MI_Ds_3, MI_F_4, MI_E_4, MI_Gs_4, MI_B_4, MI_E_5, MI_Ds_4
60 ),
61
62 [_FN] = LAYOUT(
63 DF_SWAP, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
64 XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
65 XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, _______,
66 XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
67 XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
68
69 _______, MI_OCTD, MI_OCTU, MI_VELD, MI_VELU, _______,
70 XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
71 XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
72 _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
73 XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
74 XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX
75 )
76};
77
78void keyboard_post_init_user(void) {
79 // Set octave to MI_OCT_0
80 midi_config.octave = MI_OCT_0 - MIDI_OCTAVE_MIN;
81
82 // avoid using 127 since it is used as a special number in some sound sources.
83 midi_config.velocity = MIDI_INITIAL_VELOCITY;
84};
diff --git a/keyboards/bandominedoni/keymaps/default/readme.md b/keyboards/bandominedoni/keymaps/default/readme.md
new file mode 100644
index 000000000..e6ec2ad10
--- /dev/null
+++ b/keyboards/bandominedoni/keymaps/default/readme.md
@@ -0,0 +1 @@
# The default keymap for bandominedoni
diff --git a/keyboards/bandominedoni/keymaps/led/keymap.c b/keyboards/bandominedoni/keymaps/led/keymap.c
new file mode 100644
index 000000000..305756b5b
--- /dev/null
+++ b/keyboards/bandominedoni/keymaps/led/keymap.c
@@ -0,0 +1,227 @@
1/* Copyright 2021 3araht
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
18#define DF_COLE DF(_COLEMAK)
19
20#define _________________QWERTY_L1_________________ KC_Q, KC_W, KC_E, KC_R, KC_T
21#define _________________QWERTY_L2_________________ KC_A, KC_S, KC_D, KC_F, KC_G
22#define _________________QWERTY_L3_________________ KC_Z, KC_X, KC_C, KC_V, KC_B
23
24#define _________________QWERTY_R1_________________ KC_Y, KC_U, KC_I, KC_O, KC_P
25#define _________________QWERTY_R2_________________ KC_H, KC_J, KC_K, KC_L, KC_SCLN
26#define _________________QWERTY_R3_________________ KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH
27
28#define _________________COLEMAK_L1________________ KC_Q, KC_W, KC_F, KC_P, KC_G
29#define _________________COLEMAK_L2________________ KC_A, KC_R, KC_S, KC_T, KC_D
30#define _________________COLEMAK_L3________________ KC_Z, KC_X, KC_C, KC_V, KC_B
31
32#define _________________COLEMAK_R1________________ KC_J, KC_L, KC_U, KC_Y, KC_SCLN
33#define _________________COLEMAK_R2________________ KC_H, KC_N, KC_E, KC_I, KC_O
34#define _________________COLEMAK_R3________________ KC_K, KC_M, KC_COMM, KC_DOT, KC_SLSH
35
36#define _________________NUMBER_L__________________ KC_1, KC_2, KC_3, KC_4, KC_5
37// #define _________________NUMBER_R__________________ KC_6, KC_7, KC_8, KC_9, KC_0
38
39#define _________________FUNC__L___________________ KC_F1, KC_F2, KC_F3, KC_F4, KC_F5
40// #define _________________FUNC__R___________________ KC_F6, KC_F7, KC_F8, KC_F9, KC_F10
41
42// Defines names for use in layer keycodes and the keymap
43enum layer_names {
44#ifndef PEDAL_NORMALLY_CLOSED
45 _OPEN,
46#endif
47 _CLOSE,
48#ifdef PEDAL_NORMALLY_CLOSED
49 _OPEN,
50#endif
51 _QWERTY,
52 _COLEMAK,
53 _MISC,
54 _FN
55};
56
57// Alias layout macros that expand groups of keys.
58#define LAYOUT_wrapper(...) LAYOUT(__VA_ARGS__)
59
60const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
61 [_OPEN] = LAYOUT(
62 MI_Gs_1, MI_As_1, MI_Cs_2, MI_F_2, MI_Gs_3,
63 MI_E_1, MI_A_1, MI_G_2, MI_Ds_2, MI_F_3, MI_As_2, MI_F_1,
64 MI_D_2, MI_A_2, MI_C_3, MI_E_3, MI_C_2, MI_G_1, TG_SWAP,
65 MI_E_2, MI_Gs_2, MI_B_2, MI_D_3, MI_Fs_3, MI_Cs_3, MI_Fs_1,
66 MI_D_1, MI_B_1, MI_G_3, MI_A_3, MI_Ds_3, MI_Fs_2, MI_Ds_1, MI_C_1,
67
68 MO_SWAP, MI_B_5, MI_Gs_5, MI_G_5, MI_F_5, FN_MUTE,
69 MI_Cs_3, MI_A_5, MI_Fs_5, MI_E_5, MI_Ds_5, KC_VOLD, KC_VOLU,
70 MI_C_3, MI_D_3, MI_G_3, MI_As_4, MI_C_5, MI_D_5,
71 TG_SWAP, MI_B_2, MI_E_3, MI_Cs_4, MI_Fs_3, MI_A_3, MI_C_4, MI_E_4,
72 MI_A_2, MI_F_3, MI_As_3, MI_Gs_3, MI_B_3, MI_D_4, MI_Gs_4, MI_B_4,
73 MI_Gs_2, MI_As_2, MI_Ds_3, MI_F_4, MI_Ds_4, MI_Fs_4, MI_A_4, MI_Cs_5, MI_G_4
74 ),
75
76 [_CLOSE] = LAYOUT(
77 MI_Gs_1, MI_As_1, MI_Ds_2, MI_Ds_3, MI_G_3,
78 MI_D_1, MI_D_2, MI_As_2, MI_C_3, MI_Cs_2, MI_C_2, MI_Fs_1,
79 MI_G_1, MI_G_2, MI_B_2, MI_D_3, MI_F_3, MI_Fs_2, TG_SWAP,
80 MI_A_1, MI_E_2, MI_A_2, MI_Cs_3, MI_E_3, MI_Gs_2, MI_B_1,
81 MI_E_1, MI_E_2, MI_Fs_3, MI_Gs_3, MI_B_3, MI_F_2, MI_Cs_1, MI_F_1,
82
83 MO_SWAP, MI_A_5, MI_Gs_5, MI_Fs_5, MI_F_5, FN_MUTE,
84 MI_C_3, MI_G_5, MI_As_4, MI_C_5, MI_Ds_5, KC_VOLD, KC_VOLU,
85 MI_D_3, MI_Cs_3, MI_Gs_3, MI_As_3, MI_C_4, MI_D_5,
86 TG_SWAP, MI_B_2, MI_Fs_3, MI_Fs_4, MI_G_3, MI_B_3, MI_D_4, MI_G_4,
87 MI_A_2, MI_F_3, MI_E_3, MI_A_3, MI_Cs_4, MI_E_4, MI_A_4, MI_Cs_5,
88 MI_Gs_2, MI_As_2, MI_Ds_3, MI_F_4, MI_E_4, MI_Gs_4, MI_B_4, MI_E_5, MI_Ds_4
89 ),
90
91 [_QWERTY] = LAYOUT_wrapper(
92 _________________NUMBER_L__________________,
93 KC_GESC, KC_TAB, _________________QWERTY_L1_________________,
94 KC_CAPS, _________________QWERTY_L2_________________, KC_H,
95 KC_LSFT, _________________QWERTY_L3_________________, KC_N,
96 KC_LCTL, KC_GRV, KC_LGUI, KC_LALT, MIS_EIS, KC_SPC, KC_SPC, KC_PSCR,
97
98 MO(_MISC), KC_LBRC, KC_RBRC, KC_BSLS, KC_0, _______,
99 KC_6, KC_7, KC_8, KC_9, KC_BSPC, _______, _______,
100 _________________QWERTY_R1_________________, KC_DEL,
101 KC_PGUP, KC_G, _________________QWERTY_R2_________________, KC_ENT,
102 KC_PGDN, KC_B, _________________QWERTY_R3_________________, KC_RSFT,
103 KC_HOME, KC_END, KC_SPC, MIS_KAN, KC_RALT, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT
104 ),
105
106 [_COLEMAK] = LAYOUT_wrapper(
107 _________________NUMBER_L__________________,
108 KC_GESC, KC_TAB, _________________COLEMAK_L1________________,
109 KC_LCTL, _________________COLEMAK_L2________________, KC_ENT,
110 KC_LSFT, _________________COLEMAK_L3________________, KC_M,
111 KC_CAPS, KC_GRV, KC_LGUI, KC_LALT, MIS_EIS, KC_SPC, KC_SPC, KC_PSCR,
112
113 MO(_MISC), KC_LBRC, KC_RBRC, KC_BSLS, KC_0, _______,
114 KC_6, KC_7, KC_8, KC_9, KC_BSPC, _______, _______,
115 _________________COLEMAK_R1________________, KC_DEL,
116 KC_PGUP, KC_D, _________________COLEMAK_R2________________, KC_ENT,
117 KC_PGDN, KC_B, _________________COLEMAK_R3________________, KC_RSFT,
118 KC_HOME, KC_END, KC_SPC, MIS_KAN, KC_RALT, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT
119 ),
120
121 [_MISC] = LAYOUT_wrapper(
122 _________________FUNC__L___________________,
123 _______, _______, _______, _______, _______, _______, _______,
124 _______, _______, _______, _______, _______, _______, _______,
125 _______, _______, _______, _______, _______, _______, _______,
126 _______, _______, _______, _______, _______, _______, _______, _______,
127
128 _______, _______, _______, _______, KC_F10, _______,
129 KC_F6, KC_F7, KC_F8, KC_F9, _______, _______, _______,
130 _______, _______, _______, _______, _______, _______,
131 _______, _______, _______, _______, _______, _______, KC_QUOT, _______,
132 _______, _______, _______, _______, _______, _______, _______, _______,
133 _______, _______, _______, _______, _______, _______, _______, _______, _______
134 ),
135
136 [_FN] = LAYOUT(
137 DF_SWAP, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
138 XXXXXXX, DF_QWER, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
139 DF_COLE, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, _______,
140 XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
141 XXXXXXX, XXXXXXX, AG_NORM, AG_SWAP, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
142
143 _______, MI_OCTD, MI_OCTU, MI_VELD, MI_VELU, _______,
144 XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, RGB_RMOD, RGB_MOD,
145 XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
146 _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
147 RGB_SAD, RGB_SAI, RGB_HUD, RGB_HUI, RGB_SPD, RGB_SPI, RGB_VAD, RGB_VAI,
148 XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, RGB_RMOD, RGB_MOD, EEP_RST, RGB_TOG
149 )
150};
151
152void my_init(void){
153 // Set octave to MI_OCT_0
154 midi_config.octave = MI_OCT_0 - MIDI_OCTAVE_MIN;
155
156 // avoid using 127 since it is used as a special number in some sound sources.
157 midi_config.velocity = MIDI_INITIAL_VELOCITY;
158}
159
160void eeconfig_init_user(void) { // EEPROM is getting reset!
161 midi_init();
162 my_init();
163#ifdef RGB_MATRIX_ENABLE
164 rgb_matrix_enable();
165 rgb_matrix_set_speed(RGB_MATRIX_STARTUP_SPD);
166 rgb_matrix_sethsv(HSV_BLUE);
167
168 rgb_matrix_mode(RGB_MATRIX_SOLID_REACTIVE);
169 // rgb_matrix_mode(RGB_MATRIX_RAINBOW_MOVING_CHEVRON);
170#endif
171}
172
173void keyboard_post_init_user(void) {
174 my_init();
175
176 // party mode (for LED soldering test. Enable rainbow color effect, and disable led_indicator to check all LEDs)
177 rgb_matrix_mode(RGB_MATRIX_RAINBOW_MOVING_CHEVRON);
178};
179
180#ifdef RGB_MATRIX_ENABLE
181void rgb_matrix_indicators_user(void) {
182 if (rgb_matrix_is_enabled()) { // turn the lights on when it is enabled.
183 uint8_t layer = biton32(layer_state);
184 switch (layer) {
185 case _CLOSE:
186 // rgb_matrix_set_color(pgm_read_byte(&convert_led_location2number[11]), RGB_RED); // RGB_TOG <- too heavy.
187
188 // Close state indicator
189 rgb_matrix_set_color( 0, RGB_DARKWHITE); // oc
190 break;
191
192 case _FN:
193 // left hand side
194 rgb_matrix_set_color( 46, RGB_DARKORANGE); // DF_OPEN
195 rgb_matrix_set_color( 48, RGB_DARKWHITE); // DF_QWER
196 rgb_matrix_set_color( 60, RGB_DARKWHITE); // DF_COLE
197
198 rgb_matrix_set_color( 73, RGB_DARKYELLOW); // AG_SWAP
199 rgb_matrix_set_color( 72, RGB_DARKYELLOW); // AG_NORM
200
201
202 // right hand side
203 rgb_matrix_set_color( 1, RGB_DARKYELLOW); // MI_OCTD
204 rgb_matrix_set_color(13, RGB_DARKGREEN); // MI_OCTU
205 rgb_matrix_set_color(14, RGB_DARKYELLOW); // MI_VELD
206 rgb_matrix_set_color(25, RGB_DARKGREEN); // MI_VELU
207
208 rgb_matrix_set_color( 6, RGB_DARKBLUE); // RGB_SAD
209 rgb_matrix_set_color( 9, RGB_DARKBLUE); // RGB_SAI
210 rgb_matrix_set_color(18, RGB_DARKBLUE); // RGB_HUD
211 rgb_matrix_set_color(21, RGB_DARKBLUE); // RGB_HUI
212 rgb_matrix_set_color(29, RGB_DARKBLUE); // RGB_SPD
213 rgb_matrix_set_color(32, RGB_DARKBLUE); // RGB_SPI
214 rgb_matrix_set_color(36, RGB_DARKBLUE); // RGB_VAD
215 rgb_matrix_set_color(39, RGB_DARKBLUE); // RGB_VAI
216
217 rgb_matrix_set_color(31, RGB_DARKBLUE); // RGB_RMOD
218 rgb_matrix_set_color(37, RGB_DARKBLUE); // RGB_MOD
219 rgb_matrix_set_color(38, RGB_DARKPINK); // EEP_RST
220 rgb_matrix_set_color(40, RGB_DARKRED); // RGB_TOG
221
222 rgb_matrix_set_color(41, RGB_DARKORANGE); // _FN
223 break;
224 }
225 }
226}
227#endif
diff --git a/keyboards/bandominedoni/keymaps/led/readme.md b/keyboards/bandominedoni/keymaps/led/readme.md
new file mode 100644
index 000000000..e6ec2ad10
--- /dev/null
+++ b/keyboards/bandominedoni/keymaps/led/readme.md
@@ -0,0 +1 @@
# The default keymap for bandominedoni
diff --git a/keyboards/bandominedoni/keymaps/led/rules.mk b/keyboards/bandominedoni/keymaps/led/rules.mk
new file mode 100644
index 000000000..08ed472ad
--- /dev/null
+++ b/keyboards/bandominedoni/keymaps/led/rules.mk
@@ -0,0 +1,2 @@
1RGB_MATRIX_ENABLE = yes # Use RGB matrix (Don't enable this when RGBLIGHT_ENABLE is used.)
2RGB_MATRIX_CUSTOM_KB = yes #
diff --git a/keyboards/bandominedoni/keymaps/via/config.h b/keyboards/bandominedoni/keymaps/via/config.h
new file mode 100644
index 000000000..4dcac5104
--- /dev/null
+++ b/keyboards/bandominedoni/keymaps/via/config.h
@@ -0,0 +1,18 @@
1/* Copyright 2021 3araht
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#define DYNAMIC_KEYMAP_LAYER_COUNT 4
diff --git a/keyboards/bandominedoni/keymaps/via/keymap.c b/keyboards/bandominedoni/keymaps/via/keymap.c
new file mode 100644
index 000000000..ad6833d69
--- /dev/null
+++ b/keyboards/bandominedoni/keymaps/via/keymap.c
@@ -0,0 +1,156 @@
1/* Copyright 2021 3araht
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
18// Defines names for use in layer keycodes and the keymap
19enum layer_names {
20#ifndef PEDAL_NORMALLY_CLOSED
21 _OPEN,
22#endif
23 _CLOSE,
24#ifdef PEDAL_NORMALLY_CLOSED
25 _OPEN,
26#endif
27 _MISC,
28 _FN
29};
30
31const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
32 [_OPEN] = LAYOUT(
33 MI_Gs_1, MI_As_1, MI_Cs_2, MI_F_2, MI_Gs_3,
34 MI_E_1, MI_A_1, MI_G_2, MI_Ds_2, MI_F_3, MI_As_2, MI_F_1,
35 MI_D_2, MI_A_2, MI_C_3, MI_E_3, MI_C_2, MI_G_1, TG_SWAP,
36 MI_E_2, MI_Gs_2, MI_B_2, MI_D_3, MI_Fs_3, MI_Cs_3, MI_Fs_1,
37 MI_D_1, MI_B_1, MI_G_3, MI_A_3, MI_Ds_3, MI_Fs_2, MI_Ds_1, MI_C_1,
38
39 MO_SWAP, MI_B_5, MI_Gs_5, MI_G_5, MI_F_5, FN_MUTE,
40 MI_Cs_3, MI_A_5, MI_Fs_5, MI_E_5, MI_Ds_5, KC_VOLD, KC_VOLU,
41 MI_C_3, MI_D_3, MI_G_3, MI_As_4, MI_C_5, MI_D_5,
42 TG_SWAP, MI_B_2, MI_E_3, MI_Cs_4, MI_Fs_3, MI_A_3, MI_C_4, MI_E_4,
43 MI_A_2, MI_F_3, MI_As_3, MI_Gs_3, MI_B_3, MI_D_4, MI_Gs_4, MI_B_4,
44 MI_Gs_2, MI_As_2, MI_Ds_3, MI_F_4, MI_Ds_4, MI_Fs_4, MI_A_4, MI_Cs_5, MI_G_4
45 ),
46
47 [_CLOSE] = LAYOUT(
48 MI_Gs_1, MI_As_1, MI_Ds_2, MI_Ds_3, MI_G_3,
49 MI_D_1, MI_D_2, MI_As_2, MI_C_3, MI_Cs_2, MI_C_2, MI_Fs_1,
50 MI_G_1, MI_G_2, MI_B_2, MI_D_3, MI_F_3, MI_Fs_2, TG_SWAP,
51 MI_A_1, MI_E_2, MI_A_2, MI_Cs_3, MI_E_3, MI_Gs_2, MI_B_1,
52 MI_E_1, MI_E_2, MI_Fs_3, MI_Gs_3, MI_B_3, MI_F_2, MI_Cs_1, MI_F_1,
53
54 MO_SWAP, MI_A_5, MI_Gs_5, MI_Fs_5, MI_F_5, FN_MUTE,
55 MI_C_3, MI_G_5, MI_As_4, MI_C_5, MI_Ds_5, KC_VOLD, KC_VOLU,
56 MI_D_3, MI_Cs_3, MI_Gs_3, MI_As_3, MI_C_4, MI_D_5,
57 TG_SWAP, MI_B_2, MI_Fs_3, MI_Fs_4, MI_G_3, MI_B_3, MI_D_4, MI_G_4,
58 MI_A_2, MI_F_3, MI_E_3, MI_A_3, MI_Cs_4, MI_E_4, MI_A_4, MI_Cs_5,
59 MI_Gs_2, MI_As_2, MI_Ds_3, MI_F_4, MI_E_4, MI_Gs_4, MI_B_4, MI_E_5, MI_Ds_4
60 ),
61
62 [_MISC] = LAYOUT(
63 _______, _______, _______, _______, _______,
64 _______, _______, _______, _______, _______, _______, _______,
65 _______, _______, _______, _______, _______, _______, _______,
66 _______, _______, _______, _______, _______, _______, _______,
67 _______, _______, _______, _______, _______, _______, _______, _______,
68
69 _______, _______, _______, _______, _______, _______,
70 _______, _______, _______, _______, _______, _______, _______,
71 _______, _______, _______, _______, _______, _______,
72 _______, _______, _______, _______, _______, _______, _______, _______,
73 _______, _______, _______, _______, _______, _______, _______, _______,
74 _______, _______, _______, _______, _______, _______, _______, _______, _______
75 ),
76
77 [_FN] = LAYOUT(
78 DF_SWAP, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
79 XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
80 XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, _______,
81 XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
82 XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
83
84 _______, MI_OCTD, MI_OCTU, MI_VELD, MI_VELU, _______,
85 XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, RGB_RMOD, RGB_MOD,
86 XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
87 _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
88 RGB_SAD, RGB_SAI, RGB_HUD, RGB_HUI, RGB_SPD, RGB_SPI, RGB_VAD, RGB_VAI,
89 XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, RGB_RMOD, RGB_MOD, EEP_RST, RGB_TOG
90 )
91};
92
93void my_init(void){
94 // Set octave to MI_OCT_0
95 midi_config.octave = MI_OCT_0 - MIDI_OCTAVE_MIN;
96
97 // avoid using 127 since it is used as a special number in some sound sources.
98 midi_config.velocity = MIDI_INITIAL_VELOCITY;
99}
100
101void eeconfig_init_user(void) { // EEPROM is getting reset!
102 midi_init();
103 my_init();
104#ifdef RGB_MATRIX_ENABLE
105 rgb_matrix_enable();
106 rgb_matrix_set_speed(RGB_MATRIX_STARTUP_SPD);
107 rgb_matrix_sethsv(HSV_BLUE);
108
109 rgb_matrix_mode(RGB_MATRIX_SOLID_REACTIVE);
110 // rgb_matrix_mode(RGB_MATRIX_RAINBOW_MOVING_CHEVRON);
111#endif
112}
113
114void keyboard_post_init_user(void) {
115 my_init();
116};
117
118#ifdef RGB_MATRIX_ENABLE
119void rgb_matrix_indicators_user(void) {
120 if (rgb_matrix_is_enabled()) { // turn the lights on when it is enabled.
121 uint8_t layer = biton32(layer_state);
122 switch (layer) {
123 case _CLOSE:
124 // rgb_matrix_set_color(pgm_read_byte(&convert_led_location2number[11]), RGB_RED); // RGB_TOG <- too heavy.
125
126 // Close state indicator
127 rgb_matrix_set_color( 0, RGB_DARKWHITE); // oc
128 break;
129
130 case _FN:
131 // rgb_matrix_set_color(pgm_read_byte(&convert_led_location2number[11]), RGB_RED); // RGB_TOG <- too heavy.
132 rgb_matrix_set_color(14, RGB_DARKYELLOW); // MI_OCTD
133 rgb_matrix_set_color(25, RGB_DARKGREEN); // MI_OCTU
134 rgb_matrix_set_color(14, RGB_DARKYELLOW); // MI_VELD
135 rgb_matrix_set_color(25, RGB_DARKGREEN); // MI_VELU
136
137 rgb_matrix_set_color( 6, RGB_DARKBLUE); // RGB_SAD
138 rgb_matrix_set_color( 9, RGB_DARKBLUE); // RGB_SAI
139 rgb_matrix_set_color(18, RGB_DARKBLUE); // RGB_HUD
140 rgb_matrix_set_color(21, RGB_DARKBLUE); // RGB_HUI
141 rgb_matrix_set_color(29, RGB_DARKBLUE); // RGB_SPD
142 rgb_matrix_set_color(32, RGB_DARKBLUE); // RGB_SPI
143 rgb_matrix_set_color(36, RGB_DARKBLUE); // RGB_VAD
144 rgb_matrix_set_color(39, RGB_DARKBLUE); // RGB_VAI
145
146 rgb_matrix_set_color(31, RGB_DARKBLUE); // RGB_RMOD
147 rgb_matrix_set_color(37, RGB_DARKBLUE); // RGB_MOD
148 rgb_matrix_set_color(38, RGB_DARKPINK); // EEP_RST
149 rgb_matrix_set_color(40, RGB_DARKRED); // RGB_TOG
150
151 rgb_matrix_set_color(41, RGB_DARKORANGE); // _FN
152 break;
153 }
154 }
155}
156#endif
diff --git a/keyboards/bandominedoni/keymaps/via/readme.md b/keyboards/bandominedoni/keymaps/via/readme.md
new file mode 100644
index 000000000..6af1cf92b
--- /dev/null
+++ b/keyboards/bandominedoni/keymaps/via/readme.md
@@ -0,0 +1 @@
# The default VIA keymap for bandominedoni
diff --git a/keyboards/bandominedoni/keymaps/via/rules.mk b/keyboards/bandominedoni/keymaps/via/rules.mk
new file mode 100644
index 000000000..71eb1ebf8
--- /dev/null
+++ b/keyboards/bandominedoni/keymaps/via/rules.mk
@@ -0,0 +1,3 @@
1RGB_MATRIX_ENABLE = yes # Use RGB matrix (Don't enable this when RGBLIGHT_ENABLE is used.)
2RGB_MATRIX_CUSTOM_KB = yes #
3VIA_ENABLE = yes
diff --git a/keyboards/bandominedoni/readme.md b/keyboards/bandominedoni/readme.md
new file mode 100644
index 000000000..99d28daf0
--- /dev/null
+++ b/keyboards/bandominedoni/readme.md
@@ -0,0 +1,22 @@
1# bandominedoni
2
3![bandoMIneDonI](https://github.com/3araht/bandoMIneDonI/blob/main/pictures/bandoMIneDonI.jpg)
4
5bandoMIneDonI keyboard is a MIDI split keyboard with bandoneon layout.
6Close and Open of the bellow is emulated by either using a sustain pedal, or tapping a dedicated keys to alter the close and open status.
7
8* Keyboard Maintainer: [3araht](https://github.com/3araht)
9* Hardware Supported: bandoMIneDonI keyboard, a split keyboard mainly work as bandoneon MIDI keyboard.
10* Hardware Availability: [BOOTH](https://3araht.booth.pm/).
11
12Make example for this keyboard (after setting up your build environment):
13
14 make bandominedoni:default
15
16Flashing example for this keyboard:
17
18 make bandominedoni:default:flash
19
20Uncomment "PEDAL_NORMALLY_CLOSED" in bandominedoni.h when normally-on pedal is used for switching Open/Close state.
21
22See 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/bandominedoni/rgb_matrix_kb.inc b/keyboards/bandominedoni/rgb_matrix_kb.inc
new file mode 100644
index 000000000..77ad22c1c
--- /dev/null
+++ b/keyboards/bandominedoni/rgb_matrix_kb.inc
@@ -0,0 +1,16 @@
1#ifdef RGB_MATRIX_KEYREACTIVE_ENABLED
2RGB_MATRIX_EFFECT(my_party_rocks)
3
4# ifdef RGB_MATRIX_CUSTOM_EFFECT_IMPLS
5
6bool my_party_rocks(effect_params_t* params) {
7 RGB_MATRIX_USE_LIMITS(led_min, led_max);
8 HSV hsv = {rand() & 0xFF, rand() & 0xFF, rgb_matrix_config.hsv.v};
9 RGB rgb = rgb_matrix_hsv_to_rgb(hsv);
10 // rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b);
11 rgb_matrix_set_color_all(rgb.r, rgb.g, rgb.b);
12 return rgb_matrix_check_finished_leds(led_max);
13}
14
15# endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS
16#endif // RGB_MATRIX_KEYREACTIVE_ENABLED
diff --git a/keyboards/bandominedoni/rules.mk b/keyboards/bandominedoni/rules.mk
new file mode 100644
index 000000000..29599b324
--- /dev/null
+++ b/keyboards/bandominedoni/rules.mk
@@ -0,0 +1,25 @@
1# MCU name
2MCU = atmega32u4
3
4# Bootloader selection
5BOOTLOADER = caterina
6
7# Build Options
8# change yes to no to disable
9#
10BOOTMAGIC_ENABLE = no # Enable Bootmagic Lite
11MOUSEKEY_ENABLE = no # 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 = no # Enable N-Key Rollover
16BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
17RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
18AUDIO_ENABLE = no # Audio output
19MIDI_ENABLE = yes # MIDI support
20ENCODER_ENABLE = yes # encoder on mute button
21SPLIT_KEYBOARD = yes # Enables split keyboard support
22RGB_MATRIX_ENABLE = no # Use RGB matrix (Don't enable this when RGBLIGHT_ENABLE is used.)
23RGB_MATRIX_DRIVER = WS2812 #
24
25LTO_ENABLE = yes