aboutsummaryrefslogtreecommitdiff
path: root/keyboards/inland/kb83
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/inland/kb83')
-rw-r--r--keyboards/inland/kb83/keyboard.json (renamed from keyboards/inland/kb83/info.json)9
-rw-r--r--keyboards/inland/kb83/rgb_matrix_kb.inc51
-rw-r--r--keyboards/inland/kb83/rules.mk17
3 files changed, 9 insertions, 68 deletions
diff --git a/keyboards/inland/kb83/info.json b/keyboards/inland/kb83/keyboard.json
index b4396fb630..31ca8f1bda 100644
--- a/keyboards/inland/kb83/info.json
+++ b/keyboards/inland/kb83/keyboard.json
@@ -34,6 +34,15 @@
},
"processor": "WB32FQ95",
"bootloader": "wb32-dfu",
+ "features": {
+ "bootmagic": true,
+ "mousekey": false,
+ "extrakey": true,
+ "nkro": true,
+ "rgb_matrix": true,
+ "dip_switch": true,
+ "encoder": true
+ },
"matrix_pins": {
"cols": ["C1", "C2", "C3", "A0", "A1", "A2", "A3", "A4", "A5", "A6", "A7", "C4", "C5", "B0", "B1", "B2"],
"rows": ["B15", "C6", "C7", "C8", "C9", "A8"]
diff --git a/keyboards/inland/kb83/rgb_matrix_kb.inc b/keyboards/inland/kb83/rgb_matrix_kb.inc
deleted file mode 100644
index 56e2bd31cb..0000000000
--- a/keyboards/inland/kb83/rgb_matrix_kb.inc
+++ /dev/null
@@ -1,51 +0,0 @@
-// !!! DO NOT ADD #pragma once !!! //
-
-// Step 1.
-// Declare custom effects using the RGB_MATRIX_EFFECT macro
-// (note the lack of semicolon after the macro!)
-
-RGB_MATRIX_EFFECT(turn_off_rgb)
-RGB_MATRIX_EFFECT(kb_reset_rgb)
-
-// Step 2.
-// Define effects inside the `RGB_MATRIX_CUSTOM_EFFECT_IMPLS` ifdef block
-
-#ifdef RGB_MATRIX_CUSTOM_EFFECT_IMPLS
-
-// e.g: A simple effect, self-contained within a single method
-static bool turn_off_rgb(effect_params_t *params) {
- RGB_MATRIX_USE_LIMITS(led_min, led_max);
- for (uint8_t i = led_min; i < led_max; i++) {
- rgb_matrix_set_color(i, 0x00, 0x00, 0x00);
- }
- return rgb_matrix_check_finished_leds(led_max);
-}
-
-// e.g: A more complex effect, relying on external methods and state, with
-// dedicated init and run methods
-static uint8_t some_global_state;
-static void kb_reset_rgb_init(effect_params_t* params) {
- some_global_state = 0;
-}
-static bool kb_reset_rgb_run(effect_params_t* params) {
- RGB_MATRIX_USE_LIMITS(led_min, led_max);
- some_global_state++;
- if(some_global_state&0x01){
- for (uint8_t i = led_min; i < led_max; i++)
- rgb_matrix_set_color(i, 0, 0, 0);
- }
- else{
- for (uint8_t i = led_min; i < led_max; i++)
- rgb_matrix_set_color(i, 0xc0, 0xc0, 0xc0);
- }
- if(some_global_state>=7)
- rgb_matrix_init();
- return rgb_matrix_check_finished_leds(led_max);
-}
-
-static bool kb_reset_rgb(effect_params_t* params) {
- if (params->init) kb_reset_rgb_init(params);
- return kb_reset_rgb_run(params);
-}
-
-#endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS
diff --git a/keyboards/inland/kb83/rules.mk b/keyboards/inland/kb83/rules.mk
deleted file mode 100644
index aefdb5a168..0000000000
--- a/keyboards/inland/kb83/rules.mk
+++ /dev/null
@@ -1,17 +0,0 @@
-# Build Options
-# change yes to no to disable
-#
-BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite
-MOUSEKEY_ENABLE = no # Mouse keys
-EXTRAKEY_ENABLE = yes # Audio control and System control
-CONSOLE_ENABLE = no # Console for debug
-COMMAND_ENABLE = no # Commands for debug and configuration
-KEYBOARD_SHARED_EP = no
-NKRO_ENABLE = yes # Enable N-Key Rollover
-BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
-RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
-AUDIO_ENABLE = no # Audio output
-DIP_SWITCH_ENABLE = yes # DPI Switch
-ENCODER_ENABLE = yes
-RGB_MATRIX_ENABLE = yes
-#RGB_MATRIX_CUSTOM_USER = yes #Add turnoff LED