mirror of
https://github.com/qmk/qmk_firmware.git
synced 2024-12-15 22:23:21 +00:00
c9cf9712aa
Co-authored-by: Joel Challis <git@zvecr.com>
53 lines
2.2 KiB
C
53 lines
2.2 KiB
C
// Copyright 2022 Will Winder (@winder)
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#ifdef RGBLIGHT_ENABLE
|
|
# define RGBLED_NUM 64
|
|
# define RGBLIGHT_SPLIT
|
|
# define RGBLIGHT_HUE_STEP 10
|
|
# define RGBLIGHT_SAT_STEP 17
|
|
# define RGBLIGHT_VAL_STEP 17
|
|
|
|
# define RGBLIGHT_DEFAULT_MODE RGBLIGHT_MODE_RAINBOW_SWIRL+2
|
|
|
|
# define RGBLIGHT_EFFECT_ALTERNATING
|
|
# define RGBLIGHT_EFFECT_RGB_TEST
|
|
# define RGBLIGHT_EFFECT_RAINBOW_MOOD
|
|
# define RGBLIGHT_EFFECT_STATIC_GRADIENT
|
|
# define RGBLIGHT_EFFECT_RAINBOW_SWIRL
|
|
# define RGBLIGHT_EFFECT_BREATHING
|
|
# define RGBLIGHT_EFFECT_KNIGHT
|
|
# define RGBLIGHT_EFFECT_SNAKE
|
|
# define RGBLIGHT_EFFECT_CHRISTMAS
|
|
|
|
|
|
// RGB LED Conversion macro from physical array to electric array. This results in better looking animated effects.
|
|
# define LED_LAYOUT( \
|
|
/* LED matrix */ \
|
|
L01, L02, L03, L04, L05, L06, L011, L012, L013, L014, L015, L016, \
|
|
L11, L12, L13, L14, L15, L16, L111, L112, L113, L114, L115, L116, \
|
|
L20, L21, L22, L23, L24, L25, L26, L211, L212, L213, L214, L215, L216, L217, \
|
|
L31, L32, L33, L34, L35, L36, L37, L38, L39, L310, L311, L312, L313, L314, L315, L316, \
|
|
L44, L45, L46, L47, L48, L49, L410, L411, L412, L413 )\
|
|
{ \
|
|
/* left half - electrical wiring order */ \
|
|
L47,L48,L38,L37,L36,L26,L16,L06,L05,L15,L25,L35,L46,L45,L34,L24,L14,L04,L03,L13,L23,L33,L44,L32,L22,L12,L02,L01,L11,L21,L31,L20, \
|
|
/* right half - electrical wiring order */ \
|
|
L410,L49,L39,L310,L311,L211,L111,L011,L012,L112,L212,L312,L411,L412,L313,L213,L113,L013,L014,L114,L214,L314,L413,L315,L215,L115,L015,L016,L116,L216,L316,L217 \
|
|
}
|
|
# define RGBLIGHT_LED_MAP LED_LAYOUT( \
|
|
/* animation order. */ \
|
|
4, 8, 12, 17, 22, 27, 40, 45, 50, 54, 58, 62, \
|
|
3, 7, 11, 16, 21, 26, 39, 44, 49, 53, 57, 61, \
|
|
0, 2, 6, 10, 15, 20, 25, 38, 43, 48, 52, 56, 60, 63, \
|
|
1, 5, 9, 14, 19, 24, 29, 31, 33, 35, 37, 42, 47, 51, 55, 59, \
|
|
13, 18, 23, 28, 30, 32, 34, 36, 41, 46 )
|
|
#endif
|
|
|
|
#ifdef OLED_ENABLE
|
|
# define OLED_DISPLAY_128X64
|
|
# define OLED_TIMEOUT 30000
|
|
#endif
|