summaryrefslogtreecommitdiffstats
path: root/keyboards/chromatonemini
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/chromatonemini')
-rw-r--r--keyboards/chromatonemini/chromatonemini.c156
-rw-r--r--keyboards/chromatonemini/chromatonemini.h119
-rw-r--r--keyboards/chromatonemini/config.h183
-rw-r--r--keyboards/chromatonemini/info.json84
-rw-r--r--keyboards/chromatonemini/keymaps/default/keymap.c114
-rw-r--r--keyboards/chromatonemini/keymaps/default/rules.mk1
-rw-r--r--keyboards/chromatonemini/keymaps/led/keymap.c696
-rw-r--r--keyboards/chromatonemini/keymaps/led/rules.mk5
-rw-r--r--keyboards/chromatonemini/keymaps/party/keymap.c699
-rw-r--r--keyboards/chromatonemini/keymaps/party/rules.mk5
-rw-r--r--keyboards/chromatonemini/keymaps/via/keymap.c285
-rw-r--r--keyboards/chromatonemini/keymaps/via/rules.mk5
-rw-r--r--keyboards/chromatonemini/readme.md19
-rw-r--r--keyboards/chromatonemini/rgb_matrix_kb.inc58
-rw-r--r--keyboards/chromatonemini/rules.mk2
15 files changed, 2431 insertions, 0 deletions
diff --git a/keyboards/chromatonemini/chromatonemini.c b/keyboards/chromatonemini/chromatonemini.c
new file mode 100644
index 0000000000..d7dc33a0e0
--- /dev/null
+++ b/keyboards/chromatonemini/chromatonemini.c
@@ -0,0 +1,156 @@
+/* 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;
+}
diff --git a/keyboards/chromatonemini/chromatonemini.h b/keyboards/chromatonemini/chromatonemini.h
new file mode 100644
index 0000000000..d42ee500ce
--- /dev/null
+++ b/keyboards/chromatonemini/chromatonemini.h
@@ -0,0 +1,119 @@
+/* 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, \
+ 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, KC_NO }, \
+ { k10, k11, k12, k13, k14, k15, k16, KC_NO }, \
+ { 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);
+
diff --git a/keyboards/chromatonemini/config.h b/keyboards/chromatonemini/config.h
new file mode 100644
index 0000000000..b8bf416d8a
--- /dev/null
+++ b/keyboards/chromatonemini/config.h
@@ -0,0 +1,183 @@
+/*
+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"
+
+/*
+ * 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 */
+/*== 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 RGB_MATRIX_LED_COUNT 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_DEFAULT_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
+
+/* 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
+
+/* disable action features */
+//#define NO_ACTION_LAYER
+//#define NO_ACTION_TAPPING
+
+/* 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..7d33f4ed20
--- /dev/null
+++ b/keyboards/chromatonemini/info.json
@@ -0,0 +1,84 @@
+{
+ "keyboard_name": "chromatonemini",
+ "manufacturer": "3araht",
+ "url": "https://github.com/3araht/chromatonemini",
+ "maintainer": "3araht",
+ "bootloader": "caterina",
+ "processor": "atmega32u4",
+ "features": {
+ "midi": true,
+ "extrakey": true,
+ "encoder": true,
+ "via": true,
+ "bootmagic": false,
+ "console": false,
+ "mousekey": false,
+ "nkro": false,
+ "rgblight": false,
+ "audio": false
+ },
+ "diode_direction": "COL2ROW",
+ "matrix_pins": {
+ "cols": [ "F4", "F5", "F6", "F7", "B1", "B3", "B2", "B6" ],
+ "rows": [ "E6", "D7", "C6", "D4", "D0", "D1" ]
+ },
+ "debounce": 5,
+ "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":"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}]
+ }
+ },
+ "encoder": {
+ "rotary": [
+ { "pin_a": "B5", "pin_b": "B4", "resolution": 4 }
+ ]
+ }
+}
diff --git a/keyboards/chromatonemini/keymaps/default/keymap.c b/keyboards/chromatonemini/keymaps/default/keymap.c
new file mode 100644
index 0000000000..b657ace9b8
--- /dev/null
+++ b/keyboards/chromatonemini/keymaps/default/keymap.c
@@ -0,0 +1,114 @@
+/* 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 0
+extern midi_config_t midi_config;
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+ /* Base */
+ [_BASE] = LAYOUT(
+ FN_MUTE, MI_SUST,
+ MI_BNDU,
+ MI_TRSD, MI_TRSU, MI_C2, MI_D2, MI_E2, MI_Fs2, MI_Ab2, MI_Bb2, MI_C3, MI_D3, MI_E3, MI_Fs3, MI_Ab3, MI_Bb3, MI_C4, MI_D4, MI_E4, MI_Fs4, MI_Ab4, MI_Bb4, MI_C5,
+ MI_BNDD, MI_Db2, MI_Eb2, MI_F2, MI_G2, MI_A2, MI_B2, MI_Db3, MI_Eb3, MI_F3, MI_G3, MI_A3, MI_B3, MI_Db4, MI_Eb4, MI_F4, MI_G4, MI_A4, MI_B4
+ ),
+
+ /* RESERVE */
+ [_RESERVE] = LAYOUT(
+ _______, _______,
+ _______,
+ _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
+ _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
+ ),
+
+ [_FN] = LAYOUT(
+ _______, 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, EE_CLR, XXXXXXX, XXXXXXX
+ )
+};
+
+#if defined(ENCODER_MAP_ENABLE)
+const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][2] = {
+ [_BASE] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU) },
+ [_RESERVE] = { ENCODER_CCW_CW(_______, _______) },
+ [_FN] = { ENCODER_CCW_CW(_______, _______) },
+};
+#endif
+
+// commom codes called from eeconfig_init_user() and keyboard_post_init_user().
+void my_init(void){
+ // Set octave to 0
+ midi_config.octave = QK_MIDI_OCTAVE_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/rules.mk b/keyboards/chromatonemini/keymaps/default/rules.mk
new file mode 100644
index 0000000000..8006608ea9
--- /dev/null
+++ b/keyboards/chromatonemini/keymaps/default/rules.mk
@@ -0,0 +1 @@
+ENCODER_MAP_ENABLE = yes # replacing ENCODERS_CW_KEY method to this on 2022/08/31.
diff --git a/keyboards/chromatonemini/keymaps/led/keymap.c b/keyboards/chromatonemini/keymaps/led/keymap.c
new file mode 100644
index 0000000000..22fc25d253
--- /dev/null
+++ b/keyboards/chromatonemini/keymaps/led/keymap.c
@@ -0,0 +1,696 @@
+/* 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"
+
+// define which MIDI ch to use.
+// Note that (actual MIDI ch# - 1) -> 0 .. 15 is used for coding.
+// ch1
+#define DEFAULT_MAIN_CH_NUMBER 0
+// ch3
+#define DEFAULT_SUB_CH_NUMBER 2
+// ch2
+#define ALT_MAIN_CH_NUMBER 1
+// ch4
+#define ALT_SUB_CH_NUMBER 3
+static uint8_t midi_left_ch = DEFAULT_SUB_CH_NUMBER; // By default, DEFAULT_SUB_CH_NUMBER is used for left side when separated.
+
+// By default( when use_alt_ch_gr == false), DEFAULT ch group (DEFAULT_MAIN_CH_NUMBER for entirely, or right side when separated, DEFAULT_SUB_CH_NUMBER for left side) is used.
+// When false, ALT ch group (ALT_MAIN_CH_NUMBER for entirely, or right side when separated, ALT_SUB_CH_NUMBER for left side) is used.
+static bool use_alt_ch_gr = false;
+
+// Defines names for use in layer keycodes and the keymap
+enum layer_names {
+ _BASE, // Base layer, shift mode, single channel.
+ _SEPALEFTOCT, // 1st oct channel separated version. Shift mode.
+ _SEPAHALF, // Half channel separated version. Shift mode.
+ _SEPARIGHTOCT, // 2nd oct channel separated version. Shift mode.
+ _TRANS, // Transpose feature is enabled instead of shift mode, single channel.
+ _FLIPBASE, // Horizontal flipped version entirely. single channel.
+ _FLIPTRANS, // Horizontal flipped version entirely. Transpose is used. single channel.
+ _FN // FuNction layer. This must be at the end of the enumurate to use the range from _LS_FN ... _LS_FN_MAX for FN layer LED settings.
+};
+
+// Layer State
+#define _LS_BASE (1UL << _BASE)
+#define _LS_SEPALEFTOCT (1UL << _SEPALEFTOCT)
+#define _LS_SEPAHALF (1UL << _SEPAHALF)
+#define _LS_SEPARIGHTOCT (1UL << _SEPARIGHTOCT)
+#define _LS_FLIPBASE (1UL << _FLIPBASE)
+
+#define _LS_TRANS (1UL << _BASE | 1UL << _TRANS)
+#define _LS_SEPALEFTOCT_T (1UL << _SEPALEFTOCT | 1UL << _TRANS)
+#define _LS_SEPAHALF_T (1UL << _SEPAHALF | 1UL << _TRANS)
+#define _LS_SEPARIGHTOCT_T (1UL << _SEPARIGHTOCT | 1UL << _TRANS)
+#define _LS_FLIPTRANS (1UL << _FLIPBASE | 1UL << _FLIPTRANS)
+
+#define _LS_FN (1UL << _FN)
+#define _LS_MAX (_LS_FN << 1)
+
+// Don't change the DEFAULT_SCALE_COL value below. It must be 0.
+#define DEFAULT_SCALE_COL 0
+static uint8_t scale_indicator_col = DEFAULT_SCALE_COL;
+static bool trans_mode_indicator_loc_sel = true; // when it is true, the location is _KEY01, _KEY13, ...
+
+// use led indicator or not.
+static bool led_indicator_enable = true;
+
+// Defines the keycodes used by our macros in process_record_user
+enum custom_keycodes {
+ SHIFT_L = SAFE_RANGE,
+ SHIFT_R,
+ TGLINDI, // ToGgLe INDIcator
+ TGLINTR, // ToGgLe INdicator location {(_KEY01, _KEY13, _KEY25, _KEY37) or (_KEY02, _KEY14, _KEY26) / (_KEY12, _KEY24, _KEY36)}in TRans mode
+ TGLTRNS, // ToGgLe TRaNS and shift
+ TGLCHGR, // ToGgLe CH GRoup
+ VERSION,
+
+ B_BASE, // border set to the left end.
+ B_LEFT, // border set to the 1st left octave.
+ B_CENTER, // border set to the center.
+ B_RIGHT, // border set to the 1st right octave.
+ B_FLIP, // border set to the right end.
+
+ // MY tone for _FLIPHALF and _FLIPLEFTOCT layers to distinguish the notes to avoid sustain effect, etc.
+ // Since they are flipped, their subscripts are not MY_ but YM_, to make them easier to tell.
+ YM_TONE_MIN,
+
+ YM_C = YM_TONE_MIN,
+ YM_Cs,
+ YM_Db = YM_Cs,
+ YM_D,
+ YM_Ds,
+ YM_Eb = YM_Ds,
+ YM_E,
+ YM_F,
+ YM_Fs,
+ YM_Gb = YM_Fs,
+ YM_G,
+ YM_Gs,
+ YM_Ab = YM_Gs,
+ YM_A,
+ YM_As,
+ YM_Bb = YM_As,
+ YM_B,
+
+ YM_C_1,
+ YM_Cs_1,
+ YM_Db_1 = YM_Cs_1,
+ YM_D_1,
+ YM_Ds_1,
+ YM_Eb_1 = YM_Ds_1,
+ YM_E_1,
+ YM_F_1,
+ YM_Fs_1,
+ YM_Gb_1 = YM_Fs_1,
+ YM_G_1,
+ YM_Gs_1,
+ YM_Ab_1 = YM_Gs_1,
+ YM_A_1,
+ YM_As_1,
+ YM_Bb_1 = YM_As_1,
+ YM_B_1,
+
+ YM_C_2,
+ YM_Cs_2,
+ YM_Db_2 = YM_Cs_2,
+ YM_D_2,
+ YM_Ds_2,
+ YM_Eb_2 = YM_Ds_2,
+ YM_E_2,
+ YM_F_2,
+ YM_Fs_2,
+ YM_Gb_2 = YM_Fs_2,
+ YM_G_2,
+ YM_Gs_2,
+ YM_Ab_2 = YM_Gs_2,
+ YM_A_2,
+ YM_As_2,
+ YM_Bb_2 = YM_As_2,
+ YM_B_2,
+
+ YM_C_3,
+ YM_Cs_3,
+ YM_Db_3 = YM_Cs_3,
+ YM_D_3,
+ YM_Ds_3,
+ YM_Eb_3 = YM_Ds_3,
+ YM_E_3,
+ YM_F_3,
+ YM_Fs_3,
+ YM_Gb_3 = YM_Fs_3,
+ YM_G_3,
+ YM_Gs_3,
+ YM_Ab_3 = YM_Gs_3,
+ YM_A_3,
+ YM_As_3,
+ YM_Bb_3 = YM_As_3,
+ YM_B_3,
+
+ YM_C_4,
+ YM_Cs_4,
+ YM_Db_4 = YM_Cs_4,
+ YM_D_4,
+ YM_Ds_4,
+ YM_Eb_4 = YM_Ds_4,
+ YM_E_4,
+ YM_F_4,
+ YM_Fs_4,
+ YM_Gb_4 = YM_Fs_4,
+ YM_G_4,
+ YM_Gs_4,
+ YM_Ab_4 = YM_Gs_4,
+ YM_A_4,
+ YM_As_4,
+ YM_Bb_4 = YM_As_4,
+ YM_B_4,
+
+ YM_C_5,
+ YM_Cs_5,
+ YM_Db_5 = YM_Cs_5,
+ YM_D_5,
+ YM_Ds_5,
+ YM_Eb_5 = YM_Ds_5,
+ YM_E_5,
+ YM_F_5,</