summaryrefslogtreecommitdiff
path: root/keyboards/viktus
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/viktus')
-rw-r--r--keyboards/viktus/at101_bh/keymaps/default/keymap.c9
-rw-r--r--keyboards/viktus/omnikey_bh/keymaps/default/keymap.c9
-rw-r--r--keyboards/viktus/osav2/info.json1
-rw-r--r--keyboards/viktus/sp_mini/config.h4
-rw-r--r--keyboards/viktus/sp_mini/info.json4
5 files changed, 15 insertions, 12 deletions
diff --git a/keyboards/viktus/at101_bh/keymaps/default/keymap.c b/keyboards/viktus/at101_bh/keymaps/default/keymap.c
index 692c30ac61..d05e549d21 100644
--- a/keyboards/viktus/at101_bh/keymaps/default/keymap.c
+++ b/keyboards/viktus/at101_bh/keymaps/default/keymap.c
@@ -19,26 +19,27 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS),
};
-void led_set_user(uint8_t usb_led) {
+bool led_update_user(led_t led_state) {
setPinOutput(B4);
setPinOutput(D6);
setPinOutput(D7);
- if (usb_led & (1 << USB_LED_NUM_LOCK)) {
+ if (led_state.num_lock) {
writePinHigh(D7);
} else {
writePinLow(D7);
}
- if (usb_led & (1 << USB_LED_CAPS_LOCK)) {
+ if (led_state.caps_lock) {
writePinHigh(B4);
} else {
writePinLow(B4);
}
- if (usb_led & (1 << USB_LED_SCROLL_LOCK)) {
+ if (led_state.scroll_lock) {
writePinHigh(D6);
} else {
writePinLow(D6);
}
+ return false;
}
diff --git a/keyboards/viktus/omnikey_bh/keymaps/default/keymap.c b/keyboards/viktus/omnikey_bh/keymaps/default/keymap.c
index 96976ba2a3..e5fb6bf902 100644
--- a/keyboards/viktus/omnikey_bh/keymaps/default/keymap.c
+++ b/keyboards/viktus/omnikey_bh/keymaps/default/keymap.c
@@ -22,24 +22,25 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
),
};
-void led_set_user(uint8_t usb_led) {
+bool led_update_user(led_t led_state) {
DDRB |= (1 << 4) | (1 << 5) | (1 << 6);
- if (usb_led & (1 << USB_LED_NUM_LOCK)) {
+ if (led_state.num_lock) {
PORTB |= (1 << 4);
} else {
PORTB &= ~(1 << 4);
}
- if (usb_led & (1 << USB_LED_CAPS_LOCK)) {
+ if (led_state.caps_lock) {
PORTB |= (1 << 5);
} else {
PORTB &= ~(1 << 5);
}
- if (usb_led & (1 << USB_LED_SCROLL_LOCK)) {
+ if (led_state.scroll_lock) {
PORTB |= (1 << 6);
} else {
PORTB &= ~(1 << 6);
}
+ return false;
}
diff --git a/keyboards/viktus/osav2/info.json b/keyboards/viktus/osav2/info.json
index eba02a4137..b528bac281 100644
--- a/keyboards/viktus/osav2/info.json
+++ b/keyboards/viktus/osav2/info.json
@@ -44,6 +44,7 @@
"pin": "D4"
},
"backlight": {
+ "driver": "timer",
"levels": 6,
"max_brightness": 191,
"pin": "D6"
diff --git a/keyboards/viktus/sp_mini/config.h b/keyboards/viktus/sp_mini/config.h
index bc80a8ebca..d83026859d 100644
--- a/keyboards/viktus/sp_mini/config.h
+++ b/keyboards/viktus/sp_mini/config.h
@@ -35,10 +35,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define RGBLIGHT_EFFECT_ALTERNATING
#define RGBLIGHT_EFFECT_TWINKLE
-//#define RGBLIGHT_SPLIT
-#define RGBLED_NUM 24 // Number of LEDs
-#define RGBLED_SPLIT { 12, 12 }
-
/*
* Feature disable options
* These options are also useful to firmware size reduction.
diff --git a/keyboards/viktus/sp_mini/info.json b/keyboards/viktus/sp_mini/info.json
index 19bba8fea6..60b4d1996b 100644
--- a/keyboards/viktus/sp_mini/info.json
+++ b/keyboards/viktus/sp_mini/info.json
@@ -26,6 +26,10 @@
}
}
},
+ "rgblight": {
+ "led_count": 24,
+ "split_count": [12, 12]
+ },
"ws2812": {
"pin": "E6"
},