From 801d2ff940a5f19ee4fa7df992e86d1fd1daf610 Mon Sep 17 00:00:00 2001 From: Ryan Date: Fri, 30 Dec 2022 11:48:05 +1100 Subject: Remove useless line continuations (#19399) --- keyboards/ktec/staryu/keymaps/krusli/keymap.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'keyboards/ktec') diff --git a/keyboards/ktec/staryu/keymaps/krusli/keymap.c b/keyboards/ktec/staryu/keymaps/krusli/keymap.c index 1db6857348..3fe539106d 100644 --- a/keyboards/ktec/staryu/keymaps/krusli/keymap.c +++ b/keyboards/ktec/staryu/keymaps/krusli/keymap.c @@ -59,21 +59,21 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { }; const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { - [_LAYER0] = LAYOUT( \ - KC_ESC, TO(_LAYER1), \ - KC_Z, KC_X, KC_ENT \ + [_LAYER0] = LAYOUT( + KC_ESC, TO(_LAYER1), + KC_Z, KC_X, KC_ENT ), - [_LAYER1] = LAYOUT( \ - MUTE, TO(_LAYER2), \ - GIT_ADD, GIT_COMMIT, GIT_PUSH \ + [_LAYER1] = LAYOUT( + MUTE, TO(_LAYER2), + GIT_ADD, GIT_COMMIT, GIT_PUSH ), - [_LAYER2] = LAYOUT( \ - RGB_MOD, TO(_LAYER3), \ - RGB_TOG, RGB_HUD, RGB_HUI \ + [_LAYER2] = LAYOUT( + RGB_MOD, TO(_LAYER3), + RGB_TOG, RGB_HUD, RGB_HUI ), - [_LAYER3] = LAYOUT( \ - RGB_VAI, TO(_LAYER0), \ - RGB_SAD, RGB_VAD, RGB_SAI \ + [_LAYER3] = LAYOUT( + RGB_VAI, TO(_LAYER0), + RGB_SAD, RGB_VAD, RGB_SAI ) }; -- cgit v1.2.3 From d0ebafaea6847926e6391a6920821bcb17b3c39c Mon Sep 17 00:00:00 2001 From: Joel Challis Date: Sun, 1 Jan 2023 00:54:12 +0000 Subject: Align definition of unicode_map (#19452) --- keyboards/ktec/ergodone/keymaps/vega/keymap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'keyboards/ktec') diff --git a/keyboards/ktec/ergodone/keymaps/vega/keymap.c b/keyboards/ktec/ergodone/keymaps/vega/keymap.c index eafbdda513..8e460d7b4c 100644 --- a/keyboards/ktec/ergodone/keymaps/vega/keymap.c +++ b/keyboards/ktec/ergodone/keymaps/vega/keymap.c @@ -320,7 +320,7 @@ enum unicode_names { nullpic, // Null picture - ␀ }; -const uint32_t PROGMEM unicode_map[] = { +const uint32_t unicode_map[] PROGMEM = { // MATH [neq] = 0x2260, //≠ [intgrl] = 0x222B, //∫ -- cgit v1.2.3 From b7274343913eb3e019f0dc08fa8f7774165e787d Mon Sep 17 00:00:00 2001 From: Ryan Date: Sun, 29 Jan 2023 02:42:44 +1100 Subject: Remove commented out backlight config & stray "backlight levels" (#19703) --- keyboards/ktec/daisy/config.h | 1 - 1 file changed, 1 deletion(-) (limited to 'keyboards/ktec') diff --git a/keyboards/ktec/daisy/config.h b/keyboards/ktec/daisy/config.h index ae2f012676..3c0ee3bf79 100644 --- a/keyboards/ktec/daisy/config.h +++ b/keyboards/ktec/daisy/config.h @@ -48,7 +48,6 @@ along with this program. If not, see . #define LED_PIN_ON_STATE 0 #define BACKLIGHT_PIN D0 -// #define BACKLIGHT_BREATHING #define BACKLIGHT_LEVELS 6 #define RGB_DI_PIN C7 -- cgit v1.2.3 From f6dd8dea2e493dc549a60fee99de871c4088d09a Mon Sep 17 00:00:00 2001 From: Nick Brassel Date: Tue, 31 Jan 2023 06:03:30 +1100 Subject: Remove usages of config_common.h from config.h files. (#19714) --- keyboards/ktec/daisy/config.h | 1 - keyboards/ktec/staryu/config.h | 1 - 2 files changed, 2 deletions(-) (limited to 'keyboards/ktec') diff --git a/keyboards/ktec/daisy/config.h b/keyboards/ktec/daisy/config.h index 3c0ee3bf79..17d3d46983 100644 --- a/keyboards/ktec/daisy/config.h +++ b/keyboards/ktec/daisy/config.h @@ -17,7 +17,6 @@ along with this program. If not, see . #pragma once -#include "config_common.h" /* key matrix size */ #define MATRIX_ROWS 4 diff --git a/keyboards/ktec/staryu/config.h b/keyboards/ktec/staryu/config.h index b8abd983c5..ec9c361530 100755 --- a/keyboards/ktec/staryu/config.h +++ b/keyboards/ktec/staryu/config.h @@ -16,7 +16,6 @@ along with this program. If not, see . */ #pragma once -#include "config_common.h" /* key matrix size */ #define MATRIX_ROWS 2 -- cgit v1.2.3 From b867522f8cf90aef6f4531e669e35aba5ec0bf1c Mon Sep 17 00:00:00 2001 From: Ryan Date: Tue, 31 Jan 2023 07:45:41 +1100 Subject: Clean up Force NKRO in config.h (#19718) --- keyboards/ktec/daisy/config.h | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'keyboards/ktec') diff --git a/keyboards/ktec/daisy/config.h b/keyboards/ktec/daisy/config.h index 17d3d46983..ac28983779 100644 --- a/keyboards/ktec/daisy/config.h +++ b/keyboards/ktec/daisy/config.h @@ -91,27 +91,6 @@ along with this program. If not, see . */ // #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. -- cgit v1.2.3 From f20a05440ed38bb3de754b2193e56d3e41a939a1 Mon Sep 17 00:00:00 2001 From: Ryan Date: Fri, 3 Feb 2023 11:04:10 +1100 Subject: Remove unused `MATRIX_HAS_GHOST` from config.h (#19726) --- keyboards/ktec/daisy/config.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'keyboards/ktec') diff --git a/keyboards/ktec/daisy/config.h b/keyboards/ktec/daisy/config.h index ac28983779..0831b6e7a5 100644 --- a/keyboards/ktec/daisy/config.h +++ b/keyboards/ktec/daisy/config.h @@ -78,9 +78,6 @@ along with this program. If not, see . /* 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 */ -- cgit v1.2.3 From ebb512db827e84619e7151fcf76e3daf9328fe59 Mon Sep 17 00:00:00 2001 From: Ryan Date: Sat, 4 Feb 2023 06:19:58 +1100 Subject: Debounce defines cleanup (#19742) * Clean up `DEBOUNCE` in config.h, 0-9 * Clean up `DEBOUNCE` in config.h, A * Clean up `DEBOUNCE` in config.h, B * Clean up `DEBOUNCE` in config.h, C * Clean up `DEBOUNCE` in config.h, D * Clean up `DEBOUNCE` in config.h, E * Clean up `DEBOUNCE` in config.h, F * Clean up `DEBOUNCE` in config.h, G * Clean up `DEBOUNCE` in config.h, H * Clean up `DEBOUNCE` in config.h, handwired * Clean up `DEBOUNCE` in config.h, I * Clean up `DEBOUNCE` in config.h, J * Clean up `DEBOUNCE` in config.h, K * Clean up `DEBOUNCE` in config.h, L * Clean up `DEBOUNCE` in config.h, M * Clean up `DEBOUNCE` in config.h, N * Clean up `DEBOUNCE` in config.h, O * Clean up `DEBOUNCE` in config.h, P * Clean up `DEBOUNCE` in config.h, Q * Clean up `DEBOUNCE` in config.h, R * Clean up `DEBOUNCE` in config.h, S * Clean up `DEBOUNCE` in config.h, T * Clean up `DEBOUNCE` in config.h, U * Clean up `DEBOUNCE` in config.h, V * Clean up `DEBOUNCE` in config.h, W * Clean up `DEBOUNCE` in config.h, X * Clean up `DEBOUNCE` in config.h, Y * Clean up `DEBOUNCE` in config.h, Z * Remove default debounce from info.json * Migrate non-default debounce to info.json --- keyboards/ktec/daisy/config.h | 3 --- keyboards/ktec/staryu/config.h | 3 --- 2 files changed, 6 deletions(-) (limited to 'keyboards/ktec') diff --git a/keyboards/ktec/daisy/config.h b/keyboards/ktec/daisy/config.h index 0831b6e7a5..a29079d18c 100644 --- a/keyboards/ktec/daisy/config.h +++ b/keyboards/ktec/daisy/config.h @@ -75,9 +75,6 @@ along with this program. If not, see . // #define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0 to 255 #endif -/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ -#define DEBOUNCE 5 - /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ #define LOCKING_SUPPORT_ENABLE /* Locking resynchronize hack */ diff --git a/keyboards/ktec/staryu/config.h b/keyboards/ktec/staryu/config.h index ec9c361530..3b0cb8f330 100755 --- a/keyboards/ktec/staryu/config.h +++ b/keyboards/ktec/staryu/config.h @@ -53,9 +53,6 @@ along with this program. If not, see . #define BACKLIGHT_LED_COUNT 5 #define BACKLIGHT_LEVELS 10 -/* Set 0 if debouncing isn't needed */ -#define DEBOUNCE 5 - /* Bootmagic Lite key configuration */ #define BOOTMAGIC_LITE_ROW 0 #define BOOTMAGIC_LITE_COLUMN 1 -- cgit v1.2.3 From a988f8a169112e31b21ff7c61870ab483c396cf3 Mon Sep 17 00:00:00 2001 From: Ryan Date: Mon, 6 Feb 2023 13:40:23 +1100 Subject: Remove unused `GRAVE_ESC_CTRL_OVERRIDE` from config.h (#19752) --- keyboards/ktec/daisy/config.h | 5 ----- 1 file changed, 5 deletions(-) (limited to 'keyboards/ktec') diff --git a/keyboards/ktec/daisy/config.h b/keyboards/ktec/daisy/config.h index a29079d18c..d0d368a581 100644 --- a/keyboards/ktec/daisy/config.h +++ b/keyboards/ktec/daisy/config.h @@ -80,11 +80,6 @@ along with this program. If not, see . /* Locking resynchronize hack */ #define LOCKING_RESYNC_ENABLE -/* If defined, GRAVE_ESC will always act as ESC when CTRL is held. - * This is userful for the Windows task manager shortcut (ctrl+shift+esc). - */ -// #define GRAVE_ESC_CTRL_OVERRIDE - /* * Feature disable options * These options are also useful to firmware size reduction. -- cgit v1.2.3 From 11b6bb8179ce93c5954c96e24ef6dd09c497a131 Mon Sep 17 00:00:00 2001 From: Ryan Date: Tue, 7 Feb 2023 11:05:37 +1100 Subject: Remove unused Bootmagic row/col defines from config.h (#19761) --- keyboards/ktec/daisy/config.h | 4 ---- 1 file changed, 4 deletions(-) (limited to 'keyboards/ktec') diff --git a/keyboards/ktec/daisy/config.h b/keyboards/ktec/daisy/config.h index d0d368a581..2c2663004c 100644 --- a/keyboards/ktec/daisy/config.h +++ b/keyboards/ktec/daisy/config.h @@ -95,7 +95,3 @@ along with this program. If not, see . //#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 -- cgit v1.2.3 From 8d6bf19fc78fe372cd42486718d753f342895d2f Mon Sep 17 00:00:00 2001 From: Ryan Date: Wed, 8 Feb 2023 01:46:51 +1100 Subject: Remove unused `SOFT_SERIAL_PIN` from config.h (#19768) --- keyboards/ktec/daisy/config.h | 5 ----- 1 file changed, 5 deletions(-) (limited to 'keyboards/ktec') diff --git a/keyboards/ktec/daisy/config.h b/keyboards/ktec/daisy/config.h index 2c2663004c..3f256af5ca 100644 --- a/keyboards/ktec/daisy/config.h +++ b/keyboards/ktec/daisy/config.h @@ -38,11 +38,6 @@ along with this program. If not, see . /* 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_CAPS_LOCK_PIN C6 #define LED_PIN_ON_STATE 0 -- cgit v1.2.3 From f9aeea64c1f85d388485503e52035b5f7533ed26 Mon Sep 17 00:00:00 2001 From: Ryan Date: Wed, 8 Feb 2023 18:41:46 +1100 Subject: Migrate `MCU` and `BOOTLOADER` to data-driven (#19529) --- keyboards/ktec/daisy/info.json | 2 ++ keyboards/ktec/daisy/rules.mk | 6 ------ keyboards/ktec/staryu/info.json | 2 ++ keyboards/ktec/staryu/rules.mk | 6 ------ 4 files changed, 4 insertions(+), 12 deletions(-) (limited to 'keyboards/ktec') diff --git a/keyboards/ktec/daisy/info.json b/keyboards/ktec/daisy/info.json index f9c7b3e382..832f5021f1 100644 --- a/keyboards/ktec/daisy/info.json +++ b/keyboards/ktec/daisy/info.json @@ -8,6 +8,8 @@ "pid": "0xD7DC", "device_version": "5.0.1" }, + "processor": "atmega32u4", + "bootloader": "atmel-dfu", "layouts": { "LAYOUT": { "layout": [ diff --git a/keyboards/ktec/daisy/rules.mk b/keyboards/ktec/daisy/rules.mk index c483c98ee3..8a6e2c7b71 100644 --- a/keyboards/ktec/daisy/rules.mk +++ b/keyboards/ktec/daisy/rules.mk @@ -1,9 +1,3 @@ -# MCU name -MCU = atmega32u4 - -# Bootloader selection -BOOTLOADER = atmel-dfu - # Build Options # change yes to no to disable # diff --git a/keyboards/ktec/staryu/info.json b/keyboards/ktec/staryu/info.json index 8971ec7021..392610c98a 100644 --- a/keyboards/ktec/staryu/info.json +++ b/keyboards/ktec/staryu/info.json @@ -8,6 +8,8 @@ "pid": "0x2328", "device_version": "2.0.5" }, + "processor": "atmega32u2", + "bootloader": "lufa-dfu", "layouts": { "LAYOUT": { "layout": [{"x":1, "y":0}, {"x":2, "y":0}, {"x":0, "y":1}, {"x":1, "y":1}, {"x":2, "y":1}] diff --git a/keyboards/ktec/staryu/rules.mk b/keyboards/ktec/staryu/rules.mk index 73b1a47953..8a6e2c7b71 100755 --- a/keyboards/ktec/staryu/rules.mk +++ b/keyboards/ktec/staryu/rules.mk @@ -1,9 +1,3 @@ -# MCU name -MCU = atmega32u2 - -# Bootloader selection -BOOTLOADER = lufa-dfu - # Build Options # change yes to no to disable # -- cgit v1.2.3 From 2cdf99ae950a82e233482347651b7689c4896827 Mon Sep 17 00:00:00 2001 From: Ryan Date: Tue, 14 Feb 2023 18:39:41 +1100 Subject: Migrate `DIRECT_PINS` to data driven (#19826) --- keyboards/ktec/staryu/config.h | 11 ----------- keyboards/ktec/staryu/info.json | 6 ++++++ 2 files changed, 6 insertions(+), 11 deletions(-) (limited to 'keyboards/ktec') diff --git a/keyboards/ktec/staryu/config.h b/keyboards/ktec/staryu/config.h index 3b0cb8f330..1826763cbf 100755 --- a/keyboards/ktec/staryu/config.h +++ b/keyboards/ktec/staryu/config.h @@ -16,17 +16,6 @@ along with this program. If not, see . */ #pragma once - -/* key matrix size */ -#define MATRIX_ROWS 2 -#define MATRIX_COLS 3 - -/* key matrix pins */ -#define DIRECT_PINS { \ - { NO_PIN, D0, D1 }, \ - { D4, D3, D2 }, \ -} - #define RGB_DI_PIN C6 #define RGBLED_NUM 1 // Number of LEDs #define RGBLIGHT_EFFECT_BREATHING diff --git a/keyboards/ktec/staryu/info.json b/keyboards/ktec/staryu/info.json index 392610c98a..e222923a23 100644 --- a/keyboards/ktec/staryu/info.json +++ b/keyboards/ktec/staryu/info.json @@ -10,6 +10,12 @@ }, "processor": "atmega32u2", "bootloader": "lufa-dfu", + "matrix_pins": { + "direct": [ + [null, "D0", "D1"], + ["D4", "D3", "D2"] + ] + }, "layouts": { "LAYOUT": { "layout": [{"x":1, "y":0}, {"x":2, "y":0}, {"x":0, "y":1}, {"x":1, "y":1}, {"x":2, "y":1}] -- cgit v1.2.3 From 7fad94ba2d5092abe451d0bbc95caaa37fec95bc Mon Sep 17 00:00:00 2001 From: Ryan Date: Fri, 17 Feb 2023 08:13:41 +1100 Subject: Remove unused RGBLight defines from config.h (#19859) --- keyboards/ktec/daisy/config.h | 6 ------ keyboards/ktec/staryu/config.h | 8 +------- 2 files changed, 1 insertion(+), 13 deletions(-) (limited to 'keyboards/ktec') diff --git a/keyboards/ktec/daisy/config.h b/keyboards/ktec/daisy/config.h index 3f256af5ca..db86f3b508 100644 --- a/keyboards/ktec/daisy/config.h +++ b/keyboards/ktec/daisy/config.h @@ -62,12 +62,6 @@ along with this program. If not, see . # define RGBLIGHT_EFFECT_RGB_TEST # define RGBLIGHT_EFFECT_ALTERNATING # define RGBLIGHT_EFFECT_TWINKLE -// /*== 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 /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ diff --git a/keyboards/ktec/staryu/config.h b/keyboards/ktec/staryu/config.h index 1826763cbf..d2fb24f35d 100755 --- a/keyboards/ktec/staryu/config.h +++ b/keyboards/ktec/staryu/config.h @@ -29,13 +29,7 @@ along with this program. If not, see . #define RGBLIGHT_EFFECT_ALTERNATING #define RGBLIGHT_EFFECT_TWINKLE #define RGBLIGHT_LIMIT_VAL 200 -// #ifdef RGB_DI_PIN -// #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 */ -// #endif + #undef BACKLIGHT_PIN #define BACKLIGHT_PINS { C2, C7, D5, D6, B0 } -- cgit v1.2.3 From d784f78bd0a034c1d6085379615014fd701536ab Mon Sep 17 00:00:00 2001 From: Ryan Date: Fri, 17 Feb 2023 08:49:49 +1100 Subject: Move Bootmagic config to data driven (#19860) --- keyboards/ktec/staryu/config.h | 4 ---- keyboards/ktec/staryu/info.json | 3 +++ 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'keyboards/ktec') diff --git a/keyboards/ktec/staryu/config.h b/keyboards/ktec/staryu/config.h index d2fb24f35d..e8e726364c 100755 --- a/keyboards/ktec/staryu/config.h +++ b/keyboards/ktec/staryu/config.h @@ -35,7 +35,3 @@ along with this program. If not, see . #define BACKLIGHT_PINS { C2, C7, D5, D6, B0 } #define BACKLIGHT_LED_COUNT 5 #define BACKLIGHT_LEVELS 10 - -/* Bootmagic Lite key configuration */ -#define BOOTMAGIC_LITE_ROW 0 -#define BOOTMAGIC_LITE_COLUMN 1 diff --git a/keyboards/ktec/staryu/info.json b/keyboards/ktec/staryu/info.json index e222923a23..b366c60315 100644 --- a/keyboards/ktec/staryu/info.json +++ b/keyboards/ktec/staryu/info.json @@ -8,6 +8,9 @@ "pid": "0x2328", "device_version": "2.0.5" }, + "bootmagic": { + "matrix": [0, 1] + }, "processor": "atmega32u2", "bootloader": "lufa-dfu", "matrix_pins": { -- cgit v1.2.3 From f4ba17c4a0ee59603c167b04f2d6f6eee8b2cf1b Mon Sep 17 00:00:00 2001 From: Ryan Date: Fri, 17 Feb 2023 13:14:29 +1100 Subject: Move LED indicator config to data driven (#19800) --- keyboards/ktec/daisy/config.h | 3 --- keyboards/ktec/daisy/info.json | 4 ++++ 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'keyboards/ktec') diff --git a/keyboards/ktec/daisy/config.h b/keyboards/ktec/daisy/config.h index db86f3b508..80ce9d64e0 100644 --- a/keyboards/ktec/daisy/config.h +++ b/keyboards/ktec/daisy/config.h @@ -38,9 +38,6 @@ along with this program. If not, see . /* COL2ROW, ROW2COL*/ #define DIODE_DIRECTION COL2ROW -#define LED_CAPS_LOCK_PIN C6 -#define LED_PIN_ON_STATE 0 - #define BACKLIGHT_PIN D0 #define BACKLIGHT_LEVELS 6 diff --git a/keyboards/ktec/daisy/info.json b/keyboards/ktec/daisy/info.json index 832f5021f1..50c5dd78b0 100644 --- a/keyboards/ktec/daisy/info.json +++ b/keyboards/ktec/daisy/info.json @@ -8,6 +8,10 @@ "pid": "0xD7DC", "device_version": "5.0.1" }, + "indicators": { + "caps_lock": "C6", + "on_state": 0 + }, "processor": "atmega32u4", "bootloader": "atmel-dfu", "layouts": { -- cgit v1.2.3 From 2da0827d4ffbcba161126d6001f370e97d0172a8 Mon Sep 17 00:00:00 2001 From: Ryan Date: Fri, 17 Feb 2023 16:08:25 +1100 Subject: Remove matrix size defines (#19581) --- keyboards/ktec/daisy/config.h | 4 ---- 1 file changed, 4 deletions(-) (limited to 'keyboards/ktec') diff --git a/keyboards/ktec/daisy/config.h b/keyboards/ktec/daisy/config.h index 80ce9d64e0..e25e645b09 100644 --- a/keyboards/ktec/daisy/config.h +++ b/keyboards/ktec/daisy/config.h @@ -18,10 +18,6 @@ along with this program. If not, see . #pragma once -/* key matrix size */ -#define MATRIX_ROWS 4 -#define MATRIX_COLS 11 - /* * Keyboard Matrix Assignments * -- cgit v1.2.3 From e837a32b2b4d6eb96ffacad0022699d67c0f8f1e Mon Sep 17 00:00:00 2001 From: Ryan Date: Sun, 19 Feb 2023 18:55:12 +1100 Subject: Move layouts for direct_pins boards to data driven (#19872) --- keyboards/ktec/staryu/info.json | 8 +++++++- keyboards/ktec/staryu/staryu.c | 17 ----------------- keyboards/ktec/staryu/staryu.h | 28 ---------------------------- 3 files changed, 7 insertions(+), 46 deletions(-) delete mode 100755 keyboards/ktec/staryu/staryu.c delete mode 100755 keyboards/ktec/staryu/staryu.h (limited to 'keyboards/ktec') diff --git a/keyboards/ktec/staryu/info.json b/keyboards/ktec/staryu/info.json index b366c60315..0463c08ccc 100644 --- a/keyboards/ktec/staryu/info.json +++ b/keyboards/ktec/staryu/info.json @@ -21,7 +21,13 @@ }, "layouts": { "LAYOUT": { - "layout": [{"x":1, "y":0}, {"x":2, "y":0}, {"x":0, "y":1}, {"x":1, "y":1}, {"x":2, "y":1}] + "layout": [ + {"x":1, "y":0, "matrix": [0, 1]}, + {"x":2, "y":0, "matrix": [0, 2]}, + {"x":0, "y":1, "matrix": [1, 0]}, + {"x":1, "y":1, "matrix": [1, 1]}, + {"x":2, "y":1, "matrix": [1, 2]} + ] } } } diff --git a/keyboards/ktec/staryu/staryu.c b/keyboards/ktec/staryu/staryu.c deleted file mode 100755 index 4adadf2015..0000000000 --- a/keyboards/ktec/staryu/staryu.c +++ /dev/null @@ -1,17 +0,0 @@ -/* -Copyright 2018 Cole Markham - -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 . -*/ -#include "staryu.h" diff --git a/keyboards/ktec/staryu/staryu.h b/keyboards/ktec/staryu/staryu.h deleted file mode 100755 index bdce5806f7..0000000000 --- a/keyboards/ktec/staryu/staryu.h +++ /dev/null @@ -1,28 +0,0 @@ -/* -Copyright 2018 Cole Markham - -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 . -*/ -#pragma once - -#include "quantum.h" -#define ___ KC_NO - -#define LAYOUT( \ - K01, K02, \ - K10, K11, K12 \ -) { \ - { ___, K01, K02 }, \ - { K10, K11, K12 } \ -} -- cgit v1.2.3 From 9c0ce80d7e7d266cfd2d8fb0d92889db06ea95ff Mon Sep 17 00:00:00 2001 From: Ryan Date: Tue, 21 Feb 2023 12:05:40 +1100 Subject: Move backlight config to data driven, part 1 (#19887) --- keyboards/ktec/staryu/backlight_staryu.h | 2 +- keyboards/ktec/staryu/config.h | 4 ---- keyboards/ktec/staryu/info.json | 3 +++ 3 files changed, 4 insertions(+), 5 deletions(-) (limited to 'keyboards/ktec') diff --git a/keyboards/ktec/staryu/backlight_staryu.h b/keyboards/ktec/staryu/backlight_staryu.h index b90350e28b..34511da5c1 100644 --- a/keyboards/ktec/staryu/backlight_staryu.h +++ b/keyboards/ktec/staryu/backlight_staryu.h @@ -18,7 +18,7 @@ along with this program. If not, see . // Add backwards compatibility for existing keymaps static inline void backlight_set_value(uint8_t index, uint8_t level) { - static const uint8_t backlight_pins[BACKLIGHT_LED_COUNT] = BACKLIGHT_PINS; + static const uint8_t backlight_pins[] = BACKLIGHT_PINS; if (level) { setPinOutput(backlight_pins[index]); } else { diff --git a/keyboards/ktec/staryu/config.h b/keyboards/ktec/staryu/config.h index e8e726364c..1a1b7372e6 100755 --- a/keyboards/ktec/staryu/config.h +++ b/keyboards/ktec/staryu/config.h @@ -30,8 +30,4 @@ along with this program. If not, see . #define RGBLIGHT_EFFECT_TWINKLE #define RGBLIGHT_LIMIT_VAL 200 - -#undef BACKLIGHT_PIN -#define BACKLIGHT_PINS { C2, C7, D5, D6, B0 } -#define BACKLIGHT_LED_COUNT 5 #define BACKLIGHT_LEVELS 10 diff --git a/keyboards/ktec/staryu/info.json b/keyboards/ktec/staryu/info.json index 0463c08ccc..21c4e04dd7 100644 --- a/keyboards/ktec/staryu/info.json +++ b/keyboards/ktec/staryu/info.json @@ -8,6 +8,9 @@ "pid": "0x2328", "device_version": "2.0.5" }, + "backlight": { + "pins": ["C2", "C7", "D5", "D6", "B0"] + }, "bootmagic": { "matrix": [0, 1] }, -- cgit v1.2.3 From 314f6c1ddba09851b33e4f3b4bd43bdbc55f9628 Mon Sep 17 00:00:00 2001 From: Ryan Date: Sun, 26 Feb 2023 08:37:57 +1100 Subject: Move backlight config to data driven (#19910) --- keyboards/ktec/daisy/config.h | 3 --- keyboards/ktec/daisy/info.json | 4 ++++ keyboards/ktec/staryu/config.h | 2 -- keyboards/ktec/staryu/info.json | 3 ++- 4 files changed, 6 insertions(+), 6 deletions(-) (limited to 'keyboards/ktec') diff --git a/keyboards/ktec/daisy/config.h b/keyboards/ktec/daisy/config.h index e25e645b09..d2103b03c6 100644 --- a/keyboards/ktec/daisy/config.h +++ b/keyboards/ktec/daisy/config.h @@ -34,9 +34,6 @@ along with this program. If not, see . /* COL2ROW, ROW2COL*/ #define DIODE_DIRECTION COL2ROW -#define BACKLIGHT_PIN D0 -#define BACKLIGHT_LEVELS 6 - #define RGB_DI_PIN C7 #ifdef RGB_DI_PIN # define RGBLED_NUM 8 diff --git a/keyboards/ktec/daisy/info.json b/keyboards/ktec/daisy/info.json index 50c5dd78b0..6901774b23 100644 --- a/keyboards/ktec/daisy/info.json +++ b/keyboards/ktec/daisy/info.json @@ -8,6 +8,10 @@ "pid": "0xD7DC", "device_version": "5.0.1" }, + "backlight": { + "pin": "D0", + "levels": 6 + }, "indicators": { "caps_lock": "C6", "on_state": 0 diff --git a/keyboards/ktec/staryu/config.h b/keyboards/ktec/staryu/config.h index 1a1b7372e6..23c362c0aa 100755 --- a/keyboards/ktec/staryu/config.h +++ b/keyboards/ktec/staryu/config.h @@ -29,5 +29,3 @@ along with this program. If not, see . #define RGBLIGHT_EFFECT_ALTERNATING #define RGBLIGHT_EFFECT_TWINKLE #define RGBLIGHT_LIMIT_VAL 200 - -#define BACKLIGHT_LEVELS 10 diff --git a/keyboards/ktec/staryu/info.json b/keyboards/ktec/staryu/info.json index 21c4e04dd7..02189fecf7 100644 --- a/keyboards/ktec/staryu/info.json +++ b/keyboards/ktec/staryu/info.json @@ -9,7 +9,8 @@ "device_version": "2.0.5" }, "backlight": { - "pins": ["C2", "C7", "D5", "D6", "B0"] + "pins": ["C2", "C7", "D5", "D6", "B0"], + "levels": 10 }, "bootmagic": { "matrix": [0, 1] -- cgit v1.2.3