~sungo/qmk_userspace

ref: 6cde6c816005783e2e1b5062aa535bfebeb08e9f qmk_userspace/config.h -rw-r--r-- 1.7 KiB
6cde6c81 — sungo RGBLIGHT_ENABLE is off by default so no need to set it here too 8 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
#pragma once

/**** TAP HOLD *****/
#define TAPPING_TOGGLE 2
#define PERMISSIVE_HOLD

#define TAPPING_FORCE_HOLD
#define TAPPING_TERM 100
/****  END TAP HOLD *****/

/******** MOUSE KEYS ***********/
#define MK_KINETIC_SPEED

#define MOUSEKEY_DELAY         16
#define MOUSEKEY_MOVE_DELTA    10
#define MOUSEKEY_INITIAL_SPEED 10
#define MOUSEKEY_BASE_SPEED    300
/******** END MOUSE KEYS ***********/

#define DIM_HSV_AZURE 132, 102, 50

#ifdef RGB_MATRIX_ENABLE
#define RGB_DISABLE_WHEN_USB_SUSPENDED
#endif

#if defined(KEYBOARD_reviung41) || defined(KEYBOARD_reviung39)

#define RGBLIGHT_LAYERS

#undef RGBLED_NUM

#define RGB_DI_PIN D3
#define RGBLED_NUM 11

#define RGBLIGHT_HUE_STEP  16
#define RGBLIGHT_SAT_STEP  16
#define RGBLIGHT_VAL_STEP  16
#define RGBLIGHT_LIMIT_VAL 255

#define RGBLIGHT_DEFAULT_HUE 132
#define RGBLIGHT_DEFAULT_SAT 102
#define RGBLIGHT_DEFAULT_VAL 50

#define DEFINE_LAYER(hsv) \
	{0, 10, DIM_HSV_AZURE}, { 10, 1, hsv }

#define HSV_LAYER0 DEFINE_LAYER(DIM_HSV_AZURE)
#define HSV_LAYER1 DEFINE_LAYER(HSV_TURQUOISE)
#define HSV_LAYER2 DEFINE_LAYER(HSV_GOLDENROD)

#endif

#ifdef KEYBOARD_crkbd
#include "config/crkbd.h"
#endif

#ifdef KEYBOARD_keebio_iris

#define MASTER_LEFT
#undef RGBLIGHT_ANIMATIONS
#define RGBLIGHT_SPLIT

/*
 * These dont' work because keebio has code in the driver to override them
#define RGBLIGHT_DEFAULT_HUE 132
#define RGBLIGHT_DEFAULT_SAT 102
#define RGBLIGHT_DEFAULT_VAL 50
*/

#endif


#ifdef KEYBOARD_keebio_foldkb
#ifdef RGBLIGHT_ENABLE
#define RGBLIGHT

#undef RGBLIGHT_DEFAULT_MODE
#define RGBLIGHT_DEFAULT_MODE RGBLIGHT_MODE_STATIC_LIGHT

#define RGBLIGHT_DEFAULT_HUE 132
#define RGBLIGHT_DEFAULT_SAT 102
#define RGBLIGHT_DEFAULT_VAL 150
#endif

#endif