diff options
Diffstat (limited to 'layouts/community/numpad_5x6/bjohnson')
| -rw-r--r-- | layouts/community/numpad_5x6/bjohnson/config.h | 2 | ||||
| -rw-r--r-- | layouts/community/numpad_5x6/bjohnson/keymap.c | 7 |
2 files changed, 5 insertions, 4 deletions
diff --git a/layouts/community/numpad_5x6/bjohnson/config.h b/layouts/community/numpad_5x6/bjohnson/config.h index fe2cffec7..668450d88 100644 --- a/layouts/community/numpad_5x6/bjohnson/config.h +++ b/layouts/community/numpad_5x6/bjohnson/config.h | |||
| @@ -4,7 +4,7 @@ | |||
| 4 | 4 | ||
| 5 | #if defined(RGBLIGHT_ENABLE) && !defined(RGBLED_NUM) | 5 | #if defined(RGBLIGHT_ENABLE) && !defined(RGBLED_NUM) |
| 6 | #define RGB_DI_PIN B7 | 6 | #define RGB_DI_PIN B7 |
| 7 | #define RGBLED_NUM 16 // Number of LEDs | 7 | #define RGBLED_NUM 13 // Number of LEDs |
| 8 | #define RGBLIGHT_ANIMATIONS | 8 | #define RGBLIGHT_ANIMATIONS |
| 9 | 9 | ||
| 10 | #define RGBLIGHT_HUE_STEP 12 | 10 | #define RGBLIGHT_HUE_STEP 12 |
diff --git a/layouts/community/numpad_5x6/bjohnson/keymap.c b/layouts/community/numpad_5x6/bjohnson/keymap.c index 79e87e69f..4b15ccdfb 100644 --- a/layouts/community/numpad_5x6/bjohnson/keymap.c +++ b/layouts/community/numpad_5x6/bjohnson/keymap.c | |||
| @@ -25,9 +25,10 @@ void keyboard_post_init_user(void) { | |||
| 25 | uint8_t temp_mode = rgblight_config.mode; | 25 | uint8_t temp_mode = rgblight_config.mode; |
| 26 | rgblight_enable_noeeprom(); | 26 | rgblight_enable_noeeprom(); |
| 27 | rgblight_mode_noeeprom(RGBLIGHT_MODE_STATIC_LIGHT); | 27 | rgblight_mode_noeeprom(RGBLIGHT_MODE_STATIC_LIGHT); |
| 28 | for (uint16_t i = 360; i > 0; i--) { | 28 | for (uint16_t i = 255; i > 0; i--) { |
| 29 | rgblight_sethsv_noeeprom( ( i + 180) % 360, 255, 255); | 29 | rgblight_sethsv_noeeprom( ( i + 128) % 255, 255, 255); |
| 30 | wait_ms(8); | 30 | matrix_scan(); |
| 31 | wait_ms(10); | ||
| 31 | } | 32 | } |
| 32 | led_set_user(host_keyboard_leds()); | 33 | led_set_user(host_keyboard_leds()); |
| 33 | rgblight_mode_noeeprom(temp_mode); | 34 | rgblight_mode_noeeprom(temp_mode); |
