summaryrefslogtreecommitdiff
path: root/keyboards/keyboardio/model01
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/keyboardio/model01')
-rw-r--r--keyboards/keyboardio/model01/config.h53
-rw-r--r--keyboards/keyboardio/model01/info.json99
-rw-r--r--keyboards/keyboardio/model01/keymaps/tw1t611/config.h19
-rw-r--r--keyboards/keyboardio/model01/leds.c31
4 files changed, 98 insertions, 104 deletions
diff --git a/keyboards/keyboardio/model01/config.h b/keyboards/keyboardio/model01/config.h
index 2e4101537f..ec05a34c49 100644
--- a/keyboards/keyboardio/model01/config.h
+++ b/keyboards/keyboardio/model01/config.h
@@ -17,59 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once
-
/* key matrix size; rows are doubled for split */
#define MATRIX_ROWS 8
#define MATRIX_COLS 8
-
-/* RGB matrix constants */
-#define RGB_MATRIX_LED_COUNT 64
-
-// RGB Matrix Animation modes. Explicitly enabled
-// For full list of effects, see:
-// https://docs.qmk.fm/#/feature_rgb_matrix?id=rgb-matrix-effects
-#define ENABLE_RGB_MATRIX_ALPHAS_MODS
-#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_PIXEL_RAIN
-#define ENABLE_RGB_MATRIX_PIXEL_FLOW
-#define ENABLE_RGB_MATRIX_PIXEL_FRACTAL
-// enabled only if RGB_MATRIX_FRAMEBUFFER_EFFECTS is defined
-// #define ENABLE_RGB_MATRIX_TYPING_HEATMAP
-// #define ENABLE_RGB_MATRIX_DIGITAL_RAIN
-// enabled only of RGB_MATRIX_KEYPRESSES or RGB_MATRIX_KEYRELEASES is defined
-// #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
diff --git a/keyboards/keyboardio/model01/info.json b/keyboards/keyboardio/model01/info.json
index 6d2ca5ceb1..fd17535be4 100644
--- a/keyboards/keyboardio/model01/info.json
+++ b/keyboards/keyboardio/model01/info.json
@@ -9,7 +9,104 @@
"device_version": "0.0.1"
},
"rgb_matrix": {
- "driver": "custom"
+ "animations": {
+ "alphas_mods": true,
+ "gradient_up_down": true,
+ "gradient_left_right": true,
+ "breathing": true,
+ "band_sat": true,
+ "band_val": true,
+ "band_pinwheel_sat": true,
+ "band_pinwheel_val": true,
+ "band_spiral_sat": true,
+ "band_spiral_val": true,
+ "cycle_all": true,
+ "cycle_left_right": true,
+ "cycle_up_down": true,
+ "rainbow_moving_chevron": true,
+ "cycle_out_in": true,
+ "cycle_out_in_dual": true,
+ "cycle_pinwheel": true,
+ "cycle_spiral": true,
+ "dual_beacon": true,
+ "rainbow_beacon": true,
+ "rainbow_pinwheels": true,
+ "raindrops": true,
+ "jellybean_raindrops": true,
+ "hue_breathing": true,
+ "hue_pendulum": true,
+ "hue_wave": true,
+ "pixel_rain": true,
+ "pixel_flow": true,
+ "pixel_fractal": true
+ },
+ "driver": "custom",
+ "layout": [
+ {"matrix": [3, 7], "x": 3, "y": 35, "flags": 4},
+ {"matrix": [2, 7], "x": 0, "y": 26, "flags": 4},
+ {"matrix": [1, 7], "x": 0, "y": 17, "flags": 4},
+ {"matrix": [0, 7], "x": 0, "y": 6, "flags": 4},
+ {"matrix": [0, 6], "x": 14, "y": 5, "flags": 4},
+ {"matrix": [1, 6], "x": 15, "y": 16, "flags": 4},
+ {"matrix": [2, 6], "x": 16, "y": 25, "flags": 4},
+ {"matrix": [3, 6], "x": 17, "y": 34, "flags": 4},
+ {"matrix": [3, 5], "x": 31, "y": 29, "flags": 4},
+ {"matrix": [2, 5], "x": 31, "y": 19, "flags": 4},
+ {"matrix": [1, 5], "x": 30, "y": 11, "flags": 4},
+ {"matrix": [0, 5], "x": 30, "y": 1, "flags": 4},
+ {"matrix": [0, 4], "x": 45, "y": 0, "flags": 4},
+ {"matrix": [1, 4], "x": 45, "y": 8, "flags": 4},
+ {"matrix": [2, 4], "x": 46, "y": 17, "flags": 4},
+ {"matrix": [3, 4], "x": 46, "y": 27, "flags": 4},
+ {"matrix": [3, 3], "x": 60, "y": 27, "flags": 4},
+ {"matrix": [2, 3], "x": 60, "y": 18, "flags": 4},
+ {"matrix": [1, 3], "x": 60, "y": 9, "flags": 4},
+ {"matrix": [0, 3], "x": 60, "y": 0, "flags": 4},
+ {"matrix": [0, 2], "x": 74, "y": 2, "flags": 4},
+ {"matrix": [1, 2], "x": 74, "y": 11, "flags": 4},
+ {"matrix": [2, 2], "x": 75, "y": 20, "flags": 4},
+ {"matrix": [3, 2], "x": 74, "y": 28, "flags": 4},
+ {"matrix": [2, 1], "x": 89, "y": 30, "flags": 4},
+ {"matrix": [1, 1], "x": 89, "y": 19, "flags": 4},
+ {"matrix": [0, 1], "x": 89, "y": 7, "flags": 4},
+ {"matrix": [0, 0], "x": 70, "y": 38, "flags": 1},
+ {"matrix": [1, 0], "x": 82, "y": 41, "flags": 1},
+ {"matrix": [2, 0], "x": 93, "y": 45, "flags": 1},
+ {"matrix": [3, 0], "x": 104, "y": 50, "flags": 1},
+ {"matrix": [3, 1], "x": 74, "y": 64, "flags": 1},
+ {"matrix": [7, 6], "x": 149, "y": 64, "flags": 1},
+ {"matrix": [7, 7], "x": 119, "y": 50, "flags": 1},
+ {"matrix": [6, 7], "x": 130, "y": 45, "flags": 1},
+ {"matrix": [5, 7], "x": 141, "y": 41, "flags": 1},
+ {"matrix": [4, 7], "x": 153, "y": 38, "flags": 1},
+ {"matrix": [4, 6], "x": 134, "y": 7, "flags": 4},
+ {"matrix": [5, 6], "x": 134, "y": 19, "flags": 4},
+ {"matrix": [6, 6], "x": 134, "y": 30, "flags": 4},
+ {"matrix": [7, 5], "x": 149, "y": 28, "flags": 4},
+ {"matrix": [6, 5], "x": 148, "y": 20, "flags": 4},
+ {"matrix": [5, 5], "x": 149, "y": 11, "flags": 4},
+ {"matrix": [4, 5], "x": 149, "y": 2, "flags": 4},
+ {"matrix": [4, 4], "x": 163, "y": 0, "flags": 4},
+ {"matrix": [5, 4], "x": 163, "y": 9, "flags": 4},
+ {"matrix": [6, 4], "x": 163, "y": 18, "flags": 4},
+ {"matrix": [7, 4], "x": 163, "y": 27, "flags": 4},
+ {"matrix": [7, 3], "x": 177, "y": 27, "flags": 4},
+ {"matrix": [6, 3], "x": 177, "y": 17, "flags": 4},
+ {"matrix": [5, 3], "x": 178, "y": 8, "flags": 4},
+ {"matrix": [4, 3], "x": 178, "y": 0, "flags": 4},
+ {"matrix": [4, 2], "x": 193, "y": 1, "flags": 4},
+ {"matrix": [5, 2], "x": 193, "y": 11, "flags": 4},
+ {"matrix": [6, 2], "x": 192, "y": 19, "flags": 4},
+ {"matrix": [7, 2], "x": 192, "y": 29, "flags": 4},
+ {"matrix": [7, 1], "x": 206, "y": 34, "flags": 4},
+ {"matrix": [6, 1], "x": 207, "y": 25, "flags": 4},
+ {"matrix": [5, 1], "x": 208, "y": 16, "flags": 4},
+ {"matrix": [4, 1], "x": 209, "y": 5, "flags": 4},
+ {"matrix": [4, 0], "x": 224, "y": 6, "flags": 4},
+ {"matrix": [5, 0], "x": 223, "y": 17, "flags": 4},
+ {"matrix": [6, 0], "x": 223, "y": 26, "flags": 4},
+ {"matrix": [7, 0], "x": 220, "y": 35, "flags": 4}
+ ]
},
"processor": "atmega32u4",
"bootloader": "caterina",
diff --git a/keyboards/keyboardio/model01/keymaps/tw1t611/config.h b/keyboards/keyboardio/model01/keymaps/tw1t611/config.h
deleted file mode 100644
index 8ab9d8b025..0000000000
--- a/keyboards/keyboardio/model01/keymaps/tw1t611/config.h
+++ /dev/null
@@ -1,19 +0,0 @@
-/* Copyright 2018 James Laird-Wah
- *
- * 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
-
-/* place overrides here */
diff --git a/keyboards/keyboardio/model01/leds.c b/keyboards/keyboardio/model01/leds.c
index 7e65134bd4..3fb502cb27 100644
--- a/keyboards/keyboardio/model01/leds.c
+++ b/keyboards/keyboardio/model01/leds.c
@@ -45,37 +45,6 @@ void set_led_to(int led, uint8_t r, uint8_t g, uint8_t b) {
#ifdef RGB_MATRIX_ENABLE
-__attribute__ ((weak))
-led_config_t g_led_config = { {
- { 27, 26, 20, 19, 12, 11, 4, 3 },
- { 28, 25, 21, 18, 13, 10, 5, 2 },
- { 29, 24, 22, 17, 14, 9, 6, 1 },
- { 30, 31, 23, 16, 15, 8, 7, 0 },
- { 60, 59, 52, 51, 44, 43, 37, 36 },
- { 61, 58, 53, 50, 45, 42, 38, 35 },
- { 62, 57, 54, 49, 46, 41, 39, 34 },
- { 63, 56, 55, 48, 47, 40, 32, 33 }
-}, {
- { 3, 35 }, { 0, 26 }, { 0, 17 }, { 0, 6 }, { 14, 5 }, { 15, 16 }, { 16, 25 }, { 17, 34 },
- { 31, 29 }, { 31, 19 }, { 30, 11 }, { 30, 1 }, { 45, 0 }, { 45, 8 }, { 46, 17 }, { 46, 27 },
- { 60, 27 }, { 60, 18 }, { 60, 9 }, { 60, 0 }, { 74, 2 }, { 74, 11 }, { 75, 20 }, { 74, 28 },
- { 89, 30 }, { 89, 19 }, { 89, 7 }, { 70, 38 }, { 82, 41 }, { 93, 45 }, { 104, 50 }, { 74, 64 },
- { 149, 64 }, { 119, 50 }, { 130, 45 }, { 141, 41 }, { 153, 38 }, { 134, 7 }, { 134, 19 }, { 134, 30 },
- { 149, 28 }, { 148, 20 }, { 149, 11 }, { 149, 2 }, { 163, 0 }, { 163, 9 }, { 163, 18 }, { 163, 27 },
- { 177, 27 }, { 177, 17 }, { 178, 8 }, { 178, 0 }, { 193, 1 }, { 193, 11 }, { 192, 19 }, { 192, 29 },
- { 206, 34 }, { 207, 25 }, { 208, 16 }, { 209, 5 }, { 224, 6 }, { 223, 17 }, { 223, 26 }, { 220, 35 }
-}, {
- 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, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 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
-} };
-
-
static struct {
uint8_t b;
uint8_t g;