summaryrefslogtreecommitdiffstats
path: root/keyboards
diff options
context:
space:
mode:
authorQMK Bot <hello@qmk.fm>2022-08-11 01:39:09 +0000
committerQMK Bot <hello@qmk.fm>2022-08-11 01:39:09 +0000
commitb7b842da552f6a57e17eaa1de29a6027b69cbc9d (patch)
tree15612dece3b16a3140acd1878b8841d59206f1c4 /keyboards
parent90a290ea62c7fce24bf5ded8ac33870762e042d1 (diff)
parent1038ade342606f155b2ed0bee6542a24580fe6b9 (diff)
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'keyboards')
-rw-r--r--keyboards/bandominedoni/keymaps/led/config.h18
-rw-r--r--keyboards/chromatonemini/chromatonemini.c208
-rw-r--r--keyboards/chromatonemini/chromatonemini.h122
-rw-r--r--keyboards/chromatonemini/config.h283
-rw-r--r--keyboards/chromatonemini/info.json61
-rw-r--r--keyboards/chromatonemini/keymaps/default/keymap.c106
-rw-r--r--keyboards/chromatonemini/keymaps/default/readme.md1
-rw-r--r--keyboards/chromatonemini/keymaps/led/keymap.c682
-rw-r--r--keyboards/chromatonemini/keymaps/led/readme.md1
-rw-r--r--keyboards/chromatonemini/keymaps/led/rules.mk3
-rw-r--r--keyboards/chromatonemini/keymaps/party/keymap.c684
-rw-r--r--keyboards/chromatonemini/keymaps/party/readme.md6
-rw-r--r--keyboards/chromatonemini/keymaps/party/rules.mk3
-rw-r--r--keyboards/chromatonemini/keymaps/via/config.h4
-rw-r--r--keyboards/chromatonemini/keymaps/via/keymap.c275
-rw-r--r--keyboards/chromatonemini/keymaps/via/readme.md1
-rw-r--r--keyboards/chromatonemini/keymaps/via/rules.mk3
-rw-r--r--keyboards/chromatonemini/readme.md19
-rw-r--r--keyboards/chromatonemini/rgb_matrix_kb.inc58
-rw-r--r--keyboards/chromatonemini/rules.mk22
20 files changed, 2560 insertions, 0 deletions
diff --git a/keyboards/bandominedoni/keymaps/led/config.h b/keyboards/bandominedoni/keymaps/led/config.h
new file mode 100644
index 0000000000..04bd66bf1a
--- /dev/null
+++ b/keyboards/bandominedoni/keymaps/led/config.h
@@ -0,0 +1,18 @@
+/* Copyright 2021 3araht
+ *
+ * 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
+
+#define DYNAMIC_KEYMAP_LAYER_COUNT 6
diff --git a/keyboards/chromatonemini/chromatonemini.c b/keyboards/chromatonemini/chromatonemini.c
new file mode 100644
index 0000000000..91caab7980
--- /dev/null
+++ b/keyboards/chromatonemini/chromatonemini.c
@@ -0,0 +1,208 @@
+/* Copyright 2021 3araht
+ *
+ * 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/>.
+ */
+
+#include "chromatonemini.h"
+
+#ifdef RGB_MATRIX_ENABLE
+# define NO_LED 255
+
+led_config_t g_led_config = {
+ {
+#if 0
+ // register bottom two rows
+ { 0, 4, 3, 2, 1, 41, 5, NO_LED },
+ { 40, 6, 39, 7, 38, 8, 37, NO_LED },
+ { 9, 36, 10, 35, 11, 34, 12, NO_LED },
+ { 33, 13, 32, 14, 31, 15, 30, NO_LED },
+ { 16, 29, 17, 28, 18, 27, 19, NO_LED },
+ { 26, 20, 25, 21, 24, 22, 23, NO_LED }
+
+ // register middle two rows
+ { 0, 4, 3, 2, 1, 78, 42, NO_LED },
+ { 77, 43, 76, 44, 75, 45, 74, NO_LED },
+ { 46, 73, 47, 72, 48, 71, 49, NO_LED },
+ { 70, 50, 69, 51, 68, 52, 67, NO_LED },
+ { 53, 66, 54, 65, 55, 64, 56, NO_LED },
+ { 63, 57, 62, 58, 61, 59, 60, NO_LED }
+
+ // register top and bottom rows
+ { 0, 4, 3, 2, 1, 115, 5, NO_LED },
+ { 114, 6, 113, 7, 112, 8, 111, NO_LED },
+ { 9, 110, 10, 109, 11, 108, 12, NO_LED },
+ { 107, 13, 106, 14, 105, 15, 104, NO_LED },
+ { 16, 103, 17, 102, 18, 101, 19, NO_LED },
+ { 100, 20, 99, 21, 98, 22, 97, NO_LED }
+#else
+ // register top two rows
+ { 0, 4, 3, 2, 1, 115, 79, NO_LED },
+ { 114, 80, 113, 81, 112, 82, 111, NO_LED },
+ { 83, 110, 84, 109, 85, 108, 86, NO_LED },
+ { 107, 87, 106, 88, 105, 89, 104, NO_LED },
+ { 90, 103, 91, 102, 92, 101, 93, NO_LED },
+ { 100, 94, 99, 95, 98, 96, 97, NO_LED }
+#endif
+ }, {
+ { 14, 12 },
+ { 14, 36 },
+ { 19, 48 }, { 9, 48 },
+ { 14, 60 },
+ { 39, 60 }, { 49, 60 }, { 59, 60 }, { 69, 60 }, { 79, 60 }, { 89, 60 }, { 99, 60 }, { 109, 60 }, { 119, 60 }, { 129, 60 }, { 139, 60 }, { 149, 60 }, { 159, 60 }, { 169, 60 }, { 179, 60 }, { 189, 60 }, { 199, 60 }, { 209, 60 },
+ { 214, 48 }, { 204, 48 }, { 194, 48 }, { 184, 48 }, { 174, 48 }, { 164, 48 }, { 154, 48 }, { 144, 48 }, { 134, 48 }, { 124, 48 }, { 114, 48 }, { 104, 48 }, { 94, 48 }, { 84, 48 }, { 74, 48 }, { 64, 48 }, { 54, 48 }, { 44, 48 }, { 34, 48 },
+ { 39, 36 }, { 49, 36 }, { 59, 36 }, { 69, 36 }, { 79, 36 }, { 89, 36 }, { 99, 36 }, { 109, 36 }, { 119, 36 }, { 129, 36 }, { 139, 36 }, { 149, 36 }, { 159, 36 }, { 169, 36 }, { 179, 36 }, { 189, 36 }, { 199, 36 }, { 209, 36 },
+ { 214, 24 }, { 204, 24 }, { 194, 24 }, { 184, 24 }, { 174, 24 }, { 164, 24 }, { 154, 24 }, { 144, 24 }, { 134, 24 }, { 124, 24 }, { 114, 24 }, { 104, 24 }, { 94, 24 }, { 84, 24 }, { 74, 24 }, { 64, 24 }, { 54, 24 }, { 44, 24 }, { 34, 24 },
+ { 39, 12 }, { 49, 12 }, { 59, 12 }, { 69, 12 }, { 79, 12 }, { 89, 12 }, { 99, 12 }, { 109, 12 }, { 119, 12 }, { 129, 12 }, { 139, 12 }, { 149, 12 }, { 159, 12 }, { 169, 12 }, { 179, 12 }, { 189, 12 }, { 199, 12 }, { 209, 12 },
+ { 214, 0 }, { 204, 0 }, { 194, 0 }, { 184, 0 }, { 174, 0 }, { 164, 0 }, { 154, 0 }, { 144, 0 }, { 134, 0 }, { 124, 0 }, { 114, 0 }, { 104, 0 }, { 94, 0 }, { 84, 0 }, { 74, 0 }, { 64, 0} , { 54, 0 }, { 44, 0 }, { 34, 0 }
+ }, {
+ 1,
+ 4,
+ 4, 4,
+ 4,
+ 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
+ 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
+ 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
+ 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
+ 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
+ 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4
+ }
+};
+
+// indicator
+const uint8_t led_scale_indicator[12][12] = {
+ {23, 29, 35, 41, 60, 66, 72, 78, 97, 103, 109, 115}, // C
+ { 5, 11, 17, 42, 48, 54, 79, 85, 91, NO_LED, NO_LED, NO_LED}, // C#
+ {28, 34, 40, 65, 71, 77, 102, 108, 114, NO_LED, NO_LED, NO_LED}, // D
+ { 6, 12, 18, 43, 49, 55, 80, 86, 92, NO_LED, NO_LED, NO_LED}, // D#
+ {27, 33, 39, 64, 70, 76, 101, 107, 113, NO_LED, NO_LED, NO_LED}, // E
+ { 7, 13, 19, 44, 50, 56, 81, 87, 93, NO_LED, NO_LED, NO_LED}, // F
+ {26, 32, 38, 63, 69, 75, 100, 106, 112, NO_LED, NO_LED, NO_LED}, // F#
+ { 8, 14, 20, 45, 51, 57, 82, 88, 94, NO_LED, NO_LED, NO_LED}, // G
+ {25, 31, 37, 62, 68, 74, 99, 105, 111, NO_LED, NO_LED, NO_LED}, // G#
+ { 9, 15, 21, 46, 52, 58, 83, 89, 95, NO_LED, NO_LED, NO_LED}, // A
+ {24, 30, 36, 61, 67, 73, 98, 104, 110, NO_LED, NO_LED, NO_LED}, // A#
+ {10, 16, 22, 47, 53, 59, 84, 90, 96, NO_LED, NO_LED, NO_LED} // B
+};
+
+const uint8_t led_single_col_indicator[37][3] = {
+ {41, 78, 115}, // K01 = C1
+ { 5, 42, 79}, // K02 = C#1
+ {40, 77, 114}, // K03 = D1
+ { 6, 43, 80}, // K04 = D#1
+ {39, 76, 113}, // K05 = E1
+ { 7, 44, 81}, // K06 = F1
+ {38, 75, 112}, // K07 = F#1
+ { 8, 45, 82}, // K08 = G1
+ {37, 74, 111}, // K09 = G#1
+ { 9, 46, 83}, // K10 = A1
+ {36, 73, 110}, // K11 = A#1
+ {10, 47, 84}, // K12 = B1
+ {35, 72, 109}, // K13 = C2
+ {11, 48, 85}, // K14 = C#2
+ {34, 71, 108}, // K15 = D2
+ {12, 49, 86}, // K16 = D#2
+ {33, 70, 107}, // K17 = E2
+ {13, 50, 87}, // K18 = F2
+ {32, 69, 106}, // K19 = F#2
+ {14, 51, 88}, // K20 = G2
+ {31, 68, 105}, // K21 = G#2
+ {15, 52, 89}, // K22 = A2
+ {30, 67, 104}, // K23 = A#2
+ {16, 53, 90}, // K24 = B2
+ {29, 66, 103}, // K25 = C3
+ {17, 54, 91}, // K26 = C#3
+ {28, 65, 102}, // K27 = D3
+ {18, 55, 92}, // K28 = D#3
+ {27, 64, 101}, // K29 = E3
+ {19, 56, 93}, // K30 = F3
+ {26, 63, 100}, // K31 = F#3
+ {20, 57, 94}, // K32 = G3
+ {25, 62, 99}, // K33 = G#3
+ {21, 58, 95}, // K34 = A3
+ {24, 61, 98}, // K35 = A#3
+ {22, 59, 96}, // K36 = B3
+ {23, 60, 97} // K37 = C4
+};
+
+#endif // RGB_MATRIX_ENABLE
+
+uint8_t shift_led_indicator_left(uint8_t scale_indicator_col){
+ if (scale_indicator_col > 0) {
+ scale_indicator_col--;
+ } else {
+ scale_indicator_col = 11;
+ }
+ return scale_indicator_col;
+}
+
+uint8_t shift_led_indicator_right(uint8_t scale_indicator_col){
+ if (scale_indicator_col < 11) {
+ scale_indicator_col++;
+ } else {
+ scale_indicator_col = 0;
+ }
+ return scale_indicator_col;
+}
+
+#ifdef ENCODER_ENABLE
+# ifdef ENCODERS
+static uint8_t encoder_state[ENCODERS] = {0};
+static keypos_t encoder_cw[ENCODERS] = ENCODERS_CW_KEY;
+static keypos_t encoder_ccw[ENCODERS] = ENCODERS_CCW_KEY;
+# endif
+
+void encoder_action_unregister(void) {
+# ifdef ENCODERS
+ for (int index = 0; index < ENCODERS; ++index) {
+ if (encoder_state[index]) {
+ keyevent_t encoder_event = (keyevent_t) {
+ .key = encoder_state[index] >> 1 ? encoder_cw[index] : encoder_ccw[index],
+ .pressed = false,
+ .time = (timer_read() | 1)
+ };
+ encoder_state[index] = 0;
+ action_exec(encoder_event);
+ }
+ }
+# endif
+}
+
+void encoder_action_register(uint8_t index, bool clockwise) {
+# ifdef ENCODERS
+ keyevent_t encoder_event = (keyevent_t) {
+ .key = clockwise ? encoder_cw[index] : encoder_ccw[index],
+ .pressed = true,
+ .time = (timer_read() | 1)
+ };
+ encoder_state[index] = (clockwise ^ 1) | (clockwise << 1);
+# ifdef CONSOLE_ENABLE
+ uprintf("encoder_action_register index = %u, clockwise = %u, row = %u, col = %u\n", index, clockwise, encoder_event.key.row, encoder_event.key.col);
+# endif
+ action_exec(encoder_event);
+# endif
+}
+
+void matrix_scan_kb(void) {
+ encoder_action_unregister();
+ matrix_scan_user();
+}
+
+bool encoder_update_kb(uint8_t index, bool clockwise) {
+ encoder_action_register(index, clockwise);
+ // don't return user actions, because they are in the keymap
+ // encoder_update_user(index, clockwise);
+ return true;
+};
+
+#endif
diff --git a/keyboards/chromatonemini/chromatonemini.h b/keyboards/chromatonemini/chromatonemini.h
new file mode 100644
index 0000000000..83838be73e
--- /dev/null
+++ b/keyboards/chromatonemini/chromatonemini.h
@@ -0,0 +1,122 @@
+/* Copyright 2021 3araht
+ *
+ * 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 "quantum.h"
+
+/* This is a shortcut to help you visually see your layout.
+ *
+ * The first section contains all of the arguments representing the physical
+ * layout of the board and position of the keys.
+ *
+ * The second converts the arguments into a two-dimensional array which
+ * represents the switch matrix.
+ */
+#define LAYOUT( \
+ enc, sustain, ccw, cw, \
+ up, \
+ left, right, k01, k03, k05, k07, k09, k11, k13, k15, k17, k19, k21, k23, k25, k27, k29, k31, k33, k35, k37, \
+ down, k02, k04, k06, k08, k10, k12, k14, k16, k18, k20, k22, k24, k26, k28, k30, k32, k34, k36 \
+) { \
+ { enc, down, left, right, up, k01, k02, sustain }, \
+ { k03, k04, k05, k06, k07, k08, k09, ccw }, \
+ { k10, k11, k12, k13, k14, k15, k16, cw }, \
+ { k17, k18, k19, k20, k21, k22, k23, KC_NO }, \
+ { k24, k25, k26, k27, k28, k29, k30, KC_NO }, \
+ { k31, k32, k33, k34, k35, k36, k37, KC_NO } \
+}
+
+
+#ifdef RGB_MATRIX_ENABLE
+extern led_config_t g_led_config;
+extern const uint8_t led_scale_indicator[12][12];
+extern const uint8_t led_single_col_indicator[37][3];
+
+ // default base layer color
+# define BASE_LAYER_COLOR RGB_DARKGOLDENROD
+
+ // border color
+# define FLIP_BORDER_COLOR RGB_DARKRED
+
+ // flip entirely
+# define FLIPB_LAYER_COLOR RGB_DARKYELLOW
+
+ // channel separation group
+# define SEPALEFT_LAYER_COLOR RGB_DARKGREEN
+# define SEPAHALF_LAYER_COLOR RGB_DARKGREEN
+# define SEPARIGHT_LAYER_COLOR RGB_DARKGREEN
+
+ // Trans group
+# define TRANS_LAYER_COLOR RGB_DARKORANGE
+# define SEPALEFT_T_LAYER_COLOR RGB_DARKORANGE
+# define SEPAHALF_T_LAYER_COLOR RGB_DARKORANGE
+# define SEPARIGHT_T_LAYER_COLOR RGB_DARKORANGE
+# define FLIPT_LAYER_COLOR RGB_DARKORANGE
+#endif // RGB_MATRIX_ENABLE
+
+// Defines names for use in _FN layer to specify which column to be used to turn on the LEDs.
+// use this with led_single_col_indicator[37][3], ex. led_single_col_indicator[_FN_C2][0].
+enum my_key_names {
+ _KEY01= 0,
+ _KEY02,
+ _KEY03,
+ _KEY04,
+ _KEY05,
+ _KEY06,
+ _KEY07,
+ _KEY08,
+ _KEY09,
+ _KEY10,
+ _KEY11,
+ _KEY12,
+ _KEY13,
+ _KEY14,
+ _KEY15,
+ _KEY16,
+ _KEY17,
+ _KEY18,
+ _KEY19,
+ _KEY20,
+ _KEY21,
+ _KEY22,
+ _KEY23,
+ _KEY24,
+ _KEY25,
+ _KEY26,
+ _KEY27,
+ _KEY28,
+ _KEY29,
+ _KEY30,
+ _KEY31,
+ _KEY32,
+ _KEY33,
+ _KEY34,
+ _KEY35,
+ _KEY36,
+ _KEY37,
+};
+
+#ifdef MIDI_ENABLE
+extern MidiDevice midi_device;
+#endif // MIDI_ENABLE
+
+uint8_t shift_led_indicator_left(uint8_t scale_indicator_col);
+uint8_t shift_led_indicator_right(uint8_t scale_indicator_col);
+
+void encoder_action_unregister(void);
+
+void encoder_action_register(uint8_t index, bool clockwise);
diff --git a/keyboards/chromatonemini/config.h b/keyboards/chromatonemini/config.h
new file mode 100644
index 0000000000..49b8eef7a8
--- /dev/null
+++ b/keyboards/chromatonemini/config.h
@@ -0,0 +1,283 @@
+/*
+Copyright 2021 3araht
+
+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"
+
+/* key matrix size */
+#define MATRIX_ROWS 6
+#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 { E6, D7, C6, D4, D0, D1 }
+#define MATRIX_COL_PINS { F4, F5, F6, F7, B1, B3, B2, B6 }
+#define UNUSED_PINS
+
+/* COL2ROW, ROW2COL */
+#define DIODE_DIRECTION COL2ROW
+
+/*
+ * Split Keyboard specific options, make sure you have 'SPLIT_KEYBOARD = yes' in your rules.mk, and define SOFT_SERIAL_PIN.
+ */
+// #define SOFT_SERIAL_PIN D0 // or D1, D2, D3, E6
+
+//#define LED_NUM_LOCK_PIN B0
+//#define LED_CAPS_LOCK_PIN B1
+//#define LED_SCROLL_LOCK_PIN B2
+//#define LED_COMPOSE_PIN B3
+//#define LED_KANA_PIN B4
+
+//#define BACKLIGHT_PIN B7
+//#define BACKLIGHT_LEVELS 3
+//#define BACKLIGHT_BREATHING
+
+/* ws2812 RGB LED */
+#define RGB_DI_PIN D3
+//#ifdef RGB_DI_PIN
+//# define RGBLED_NUM 16
+//# define RGBLIGHT_HUE_STEP 8
+//# define RGBLIGHT_SAT_STEP 8
+//# define RGBLIGHT_VAL_STEP 8
+//# define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */
+//# define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
+/*== all animations enable ==*/
+//# define RGBLIGHT_ANIMATIONS
+/*== or choose animations ==*/
+//# 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
+/*== customize breathing effect ==*/
+/*==== (DEFAULT) use fixed table instead of exp() and sin() ====*/
+//# define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256(default) or 128 or 64
+/*==== use exp() and sin() ====*/
+//# define RGBLIGHT_EFFECT_BREATHE_CENTER 1.85 // 1 to 2.7
+//# define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0 to 255
+//#endif
+
+
+#ifdef RGB_MATRIX_ENABLE
+
+/* ws2812 RGB MATRIX */
+# define DRIVER_LED_TOTAL 116
+
+ // reacts to keypresses
+# define RGB_MATRIX_KEYPRESSES
+
+// for all fingers used at once.
+# define LED_HITS_TO_REMEMBER 10
+
+# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 50
+# define RGB_MATRIX_STARTUP_SPD 127
+# define RGB_MATRIX_CENTER { 124, 32 }
+// the above brighness setting has no effect on rgb_matrix_set_color().
+// Use darker colors instead.
+/* RGB darker COLORS */
+# define RGB_DARKWHITE 0x33, 0x33, 0x33
+# define RGB_DARKRED 0x33, 0x0, 0x0
+# define RGB_DARKCORAL 0x33, 0x18, 0xF
+# define RGB_DARKORANGE 0x33, 0x19, 0x0
+# define RGB_DARKGOLDENROD 0x2B, 0x21, 0x6
+# define RGB_DARKGOLD 0x33, 0x2B, 0x0
+# define RGB_DARKYELLOW 0x33, 0x33, 0x0
+# define RGB_DARKCHARTREUSE 0x19, 0x33, 0x0
+# define RGB_DARKGREEN 0x0, 0x33, 0x0
+# define RGB_DARKSPRINGGREEN 0x0, 0x33, 0x19
+# define RGB_DARKTURQUOISE 0xE, 0x16, 0x15
+# define RGB_DARKTEAL 0x0, 0x19, 0x19
+# define RGB_DARKCYAN 0x0, 0x33, 0x33
+# define RGB_DARKAZURE 0x1E, 0x31, 0x33
+# define RGB_DARKBLUE 0x0, 0x0, 0x33
+# define RGB_DARKPURPLE 0x18, 0x0, 0x33
+# define RGB_DARKMAGENTA 0x33, 0x0, 0x33
+# define RGB_DARKPINK 0x33, 0x19, 0x26
+
+// https://docs.qmk.fm/#/feature_rgb_matrix
+// Enable suspend mode.
+# define RGB_DISABLE_WHEN_USB_SUSPENDED
+
+# ifdef CONSOLE_ENABLE
+# define ENABLE_RGB_MATRIX_SOLID_COLOR
+# define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE
+# else
+# define ENABLE_RGB_MATRIX_GRADIENT_UP_DOWN
+# define ENABLE_RGB_MATRIX_GRADIENT_LEFT_RIGHT
+# define ENABLE_RGB_MATRIX_BREATHING
+# define ENABLE_RGB_MATRIX_BAND_SAT
+# define ENABLE_RGB_MATRIX_BAND_VAL
+# define ENABLE_RGB_MATRIX_BAND_PINWHEEL_SAT
+# define ENABLE_RGB_MATRIX_BAND_PINWHEEL_VAL
+# define ENABLE_RGB_MATRIX_BAND_SPIRAL_SAT
+# define ENABLE_RGB_MATRIX_BAND_SPIRAL_VAL
+# define ENABLE_RGB_MATRIX_CYCLE_ALL
+# define ENABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT
+# define ENABLE_RGB_MATRIX_CYCLE_UP_DOWN
+# define ENABLE_RGB_MATRIX_RAINBOW_MOVING_CHEVRON
+# define ENABLE_RGB_MATRIX_CYCLE_OUT_IN
+# define ENABLE_RGB_MATRIX_CYCLE_OUT_IN_DUAL
+# define ENABLE_RGB_MATRIX_CYCLE_PINWHEEL
+# define ENABLE_RGB_MATRIX_CYCLE_SPIRAL
+# define ENABLE_RGB_MATRIX_DUAL_BEACON
+# define ENABLE_RGB_MATRIX_RAINBOW_BEACON
+# define ENABLE_RGB_MATRIX_RAINBOW_PINWHEELS
+# define ENABLE_RGB_MATRIX_RAINDROPS
+# define ENABLE_RGB_MATRIX_JELLYBEAN_RAINDROPS
+# define ENABLE_RGB_MATRIX_HUE_BREATHING
+# define ENABLE_RGB_MATRIX_HUE_PENDULUM
+# define ENABLE_RGB_MATRIX_HUE_WAVE
+# define ENABLE_RGB_MATRIX_TYPING_HEATMAP
+# define ENABLE_RGB_MATRIX_DIGITAL_RAIN
+# define ENABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE
+# define ENABLE_RGB_MATRIX_SOLID_REACTIVE
+# define ENABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE
+# define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE
+# define ENABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS
+# define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS
+# define ENABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS
+# define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS
+# define ENABLE_RGB_MATRIX_SPLASH
+# define ENABLE_RGB_MATRIX_MULTISPLASH
+# define ENABLE_RGB_MATRIX_SOLID_SPLASH
+# define ENABLE_RGB_MATRIX_SOLID_MULTISPLASH
+# endif // CONSOLE_ENABLE
+#endif // RGB_MATRIX_ENABLE
+
+/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
+#define DEBOUNCE 5
+
+/* define if matrix has ghost (lacks anti-ghosting diodes) */
+//#define MATRIX_HAS_GHOST
+
+// /* 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
+
+/* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
+ * This is useful for the Windows task manager shortcut (ctrl+shift+esc).
+ */
+//#define GRAVE_ESC_CTRL_OVERRIDE
+
+/*
+ * 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
+
+/*
+ * 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
+
+/* Bootmagic Lite key configuration */
+//#define BOOTMAGIC_LITE_ROW 0
+//#define BOOTMAGIC_LITE_COLUMN 0
+
+/* Audio */
+#ifdef AUDIO_ENABLE
+# define AUDIO_PIN B6 // use PB6 = PIN10 as Audio output
+// #define DAC_SAMPLE_MAX 32768U
+# define DAC_SAMPLE_MAX 65535U
+// #define AUDIO_CLICKY
+# define NO_MUSIC_MODE
+// #define STARTUP_SONG SONG(FANTASIE_IMPROMPTU)
+// #define STARTUP_SONG SONG(NOCTURNE_OP_9_NO_1)
+// #define STARTUP_SONG SONG(USSR_ANTHEM)
+// #define STARTUP_SONG SONG(CAMPANELLA)
+#endif // AUDIO_ENABLE
+
+/*
+ * MIDI options
+ */
+
+/* enable basic MIDI features:
+ - MIDI notes can be sent when in Music mode is on
+*/
+//#define MIDI_BASIC
+
+/* enable advanced MIDI features:
+ - MIDI notes can be added to the keymap
+ - Octave shift and transpose
+ - Virtual sustain, portamento, and modulation wheel
+ - etc.
+*/
+#ifdef MIDI_ENABLE
+# define MIDI_ADVANCED
+// Initial velocity value (avoid using 127 since it is used as a special number in some sound sources.)
+# define MIDI_INITIAL_VELOCITY 117
+#endif // MIDI_ENABLE
+
+/*
+ * Encoder options
+ */
+#ifdef ENCODER_ENABLE
+# define ENCODERS_PAD_A { B5 }
+# define ENCODERS_PAD_B { B4 }
+# define ENCODER_RESOLUTION 4
+# define TAP_CODE_DELAY 10
+
+#define ENCODERS 1
+#define ENCODERS_CW_KEY { {7, 2} }
+#define ENCODERS_CCW_KEY { {7, 1} }
+#endif // ENCODER_ENABLE
+
+/* 2021/01/22 added to shrink firmware size */
+// NO_ACTION_TAPPING -1964 bytes, however, this disables Layer mods...
+// #define NO_ACTION_TAPPING
+// NO_ACTION_ONESHOT -388 bytes
+#define NO_ACTION_ONESHOT
diff --git a/keyboards/chromatonemini/info.json b/keyboards/chromatonemini/info.json
new file mode 100644
index 0000000000..5f77db05ee
--- /dev/null
+++ b/keyboards/chromatonemini/info.json
@@ -0,0 +1,61 @@
+{
+ "keyboard_name": "chromatonemini",
+ "manufacturer": "3araht",
+ "url": "https://github.com/3araht/chromatonemini",
+ "maintainer": "3araht",
+ "usb": {
+ "vid": "0xFEED",
+ "pid": "0xF4B4",
+ "device_version": "0.0.1"
+ },
+ "layouts": {
+ "LAYOUT": {
+ "layout": [
+ {"label":"enc", "x":0.5, "y":0},
+ {"label":"sustain", "x":1.5, "y":0},
+ {"label":"ccw", "x":2.5, "y":0},
+ {"label":"cw", "x":3.5, "y":0},
+ {"label":"up", "x":0.5, "y":1.5},
+ {"label":"left", "x":0, "y":2.5},
+ {"label":"right", "x":1, "y":2.5},
+ {"label":"k01", "x":2.5, "y":2.5},
+ {"label":"k03", "x":3.5, "y":2.5},
+ {"label":"k05", "x":4.5, "y":2.5},
+ {"label":"k07", "x":5.5, "y":2.5},
+ {"label":"k09", "x":6.5, "y":2.5},
+ {"label":"k11", "x":7.5, "y":2.5},
+ {"label":"k13", "x":8.5, "y":2.5},
+ {"label":"k15", "x":9.5, "y":2.5},
+ {"label":"k17", "x":10.5, "y":2.5},
+ {"label":"k19", "x":11.5, "y":2.5},
+ {"label":"k21", "x":12.5, "y":2.5},
+ {"label":"k23", "x":13.5, "y":2.5},
+ {"label":"k25", "x":14.5, "y":2.5},
+ {"label":"k27", "x":15.5, "y":2.5},
+ {"label":"k29", "x":16.5, "y":2.5},
+ {"label":"k31", "x":17.5, "y":2.5},
+ {"label":"k33", "x":18.5, "y":2.5},
+ {"label":"k35", "x":19.5, "y":2.5},
+ {"label":"k37", "x":20.5, "y":2.5},
+ {"label":"down", "x":0.5, "y":3.5},
+ {"label":"k02", "x":3, "y":3.5},
+ {"label":"k04", "x":4, "y":3.5},
+ {"label":"k06", "x":5, "y":3.5},
+ {"label":"k08", "x":6, "y":3.5},
+ {"label":"k10", "x":7, "y":3.5},
+ {"label":"k12", "x":8, "y":3.5},
+ {"label":"k14", "x":9, "y":3.5},
+ {"label":"k16", "x":10, "y":3.5},
+ {"label":"k18", "x":11, "y":3.5},
+ {"label":"k20", "x":12, "y":3.5},
+ {"label":"k22", "x":13, "y":3.5},
+ {"label":"k24", "x":14, "y":3.5},
+ {"label":"k26", "x":15, "y":3.5},
+ {"label":"k28", "x":16, "y":3.5},
+ {"label":"k30", "x":17, "y":3.5},
+ {"label":"k32", "x":18, "y":3.5},
+ {"label":"k34", "x":19, "y":3.5},
+ {"label":"k36", "x":20, "y":3.5}]
+ }
+ }
+}
diff --git a/keyboards/chromatonemini/keymaps/default/keymap.c b/keyboards/chromatonemini/keymaps/default/keymap.c
new file mode 100644
index 0000000000..102aba930a
--- /dev/null
+++ b/keyboards/chromatonemini/keymaps/default/keymap.c
@@ -0,0 +1,106 @@
+/* Copyright 2021 3araht
+ *
+ * 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/>.
+ */
+#include QMK_KEYBOARD_H
+#include "version.h"
+
+// Defines names for use in layer keycodes and the keymap
+enum layer_names {
+ _BASE,
+ _RESERVE,
+ _FN
+};
+
+// Defines the keycodes used by our macros in process_record_user
+enum custom_keycodes {
+ L_BASE = SAFE_RANGE,
+ L_RESERVE,
+ VERSION
+};
+
+// Long press: go to _FN layer, tap: MUTE
+#define FN_MUTE LT(_FN, KC_MUTE)
+
+// Used to set octave to MI_OCT_0
+extern midi_config_t midi_config;
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+ /* Base */
+ [_BASE] = LAYOUT(
+ FN_MUTE, MI_SUS, KC_VOLD, KC_VOLU,
+ MI_BENDU,
+ MI_TRNSD, MI_TRNSU, MI_C_2, MI_D_2, MI_E_2, MI_Fs_2, MI_Ab_2, MI_Bb_2, MI_C_3, MI_D_3, MI_E_3, MI_Fs_3, MI_Ab_3, MI_Bb_3, MI_C_4, MI_D_4, MI_E_4, MI_Fs_4, MI_Ab_4, MI_Bb_4, MI_C_5,
+ MI_BENDD, MI_Db_2, MI_Eb_2, MI_F_2, MI_G_2, MI_A_2, MI_B_2, MI_Db_3, MI_Eb_3, MI_F_3, MI_G_3, MI_A_3, MI_B_3, MI_Db_4, MI_Eb_4, MI_F_4, MI_G_4, MI_A_4, MI_B_4
+ ),
+
+ /* RESERVE */
+ [_RESERVE] = LAYOUT(
+ _______, _______, _______, _______,
+ _______,
+ _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
+ _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
+ ),
+
+ [_FN] = LAYOUT(
+ _______, XXXXXXX, XXXXXXX, XXXXXXX,
+ MI_VELU,
+ MI_OCTD, MI_OCTU, L_BASE, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, VERSION, XXXXXXX, XXXXXXX,
+ MI_VELD, L_RESERVE, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, EEP_RST, XXXXXXX, XXXXXXX
+ )
+};
+
+// commom codes called from eeconfig_init_user() and keyboard_post_init_user().
+void my_init(void){
+ // Set octave to MI_OCT_1
+ midi_config.octave = MI_OCT_0 - MIDI_OCTAVE_MIN;
+ // avoid using 127 since it is used as a special number in some sound sources.
+ midi_config.velocity = MIDI_INITIAL_VELOCITY;
+ default_layer_set(1UL << _BASE);
+}
+
+void eeconfig_init_user(void) { // EEPROM is getting reset!
+ midi_init();
+ my_init(); // commom codes called from eeconfig_init_user() and keyboard_post_init_user().
+}
+
+void keyboard_post_init_user(void) {
+ my_init(); // commom codes called from eeconfig_init_user() and keyboard_post_init_user().
+};
+
+void reset_scale_indicator(void) {
+ // reset transpose value and scale_indicator_col to default.
+ midi_config.transpose = 0;
+}
+
+bool process_record_user(uint16_t keycode, keyrecord_t *record) {
+ switch (keycode) {
+ case VERSION: // Output firmware info.
+ if (record->event.pressed) {
+ SEND_STRING(QMK_KEYBOARD ":" QMK_KEYMAP " @ " QMK_VERSION " | " QMK_BUILDDATE);
+ }
+ break;
+
+ case L_BASE:
+ reset_scale_indicator();
+ default_layer_set(1UL << _BASE);
+ break;
+
+ case L_RESERVE:
+ reset_scale_indicator();
+ default_layer_set(1UL << _RESERVE);
+ break;
+ }
+ return true;
+}
diff --git a/keyboards/chromatonemini/keymaps/default/readme.md b/keyboards/chromatonemini/keymaps/default/readme.md
new file mode 100644
index 0000000000..4a18250f97
--- /dev/null
+++ b/keyboards/chromatonemini/keymaps/default/readme.md
@@ -0,0 +1 @@
+# The default keymap for chromatonemini
diff --git a/keyboards/chromatonemini