Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move RGBLIGHT_SLEEP to data driven #21072

Merged
merged 8 commits into from
Jun 16, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge branch 'develop' into rgblight-sleep-data-driven
  • Loading branch information
fauxpark authored Jun 14, 2023
commit b89306a830ac15905ca1b181d5bbc82dfd258c31
1 change: 1 addition & 0 deletions keyboards/handwired/freoduo/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
},
"rgblight": {
"sleep": true,
"led_map": [15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30],
"split_count": [16, 14]
},
"ws2812": {
Expand Down
3 changes: 2 additions & 1 deletion keyboards/handwired/macroboard/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"device_version": "0.0.1"
},
"rgblight": {
"sleep": true
"sleep": true,
"led_map": [0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 23, 21, 19, 17, 15, 13, 11, 9, 7, 5, 3, 1]
},
"ws2812": {
"pin": "B9"
Expand Down
1 change: 0 additions & 1 deletion keyboards/matrix/cain_re/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
#define RGBLIGHT_HUE_STEP 8
#define RGBLIGHT_SAT_STEP 8
#define RGBLIGHT_VAL_STEP 8
#define RGBLIGHT_LED_MAP { 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 0, 1, 2, 3 }

#define CAPS_PIN D3
#define NUM_PIN F7
Expand Down
3 changes: 2 additions & 1 deletion keyboards/matrix/cain_re/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"device_version": "0.0.1"
},
"rgblight": {
"sleep": true
"sleep": true,
"led_map": [4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 0, 1, 2, 3]
},
"ws2812": {
"pin": "E6"
Expand Down
1 change: 0 additions & 1 deletion keyboards/nullbitsco/snap/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@

/* Optional SMT LED pins */
#define RGBLED_NUM 10
#define RGBLIGHT_LED_MAP { 8, 9, 0, 1, 2, 6, 7, 3, 4, 5 }
#define RGBLIGHT_EFFECT_BREATHING
#define RGBLIGHT_EFFECT_RAINBOW_MOOD
#define RGBLIGHT_EFFECT_RAINBOW_SWIRL
Expand Down
1 change: 1 addition & 0 deletions keyboards/nullbitsco/snap/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
},
"rgblight": {
"sleep": true,
"led_map": [8, 9, 0, 1, 2, 6, 7, 3, 4, 5],
"split_count": [5, 5]
},
"ws2812": {
Expand Down
16 changes: 0 additions & 16 deletions keyboards/om60/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,22 +36,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

#ifndef RGBLED_NUM
#define RGBLED_NUM 69
#define RGBLIGHT_LED_MAP { \
0, 1, 2, 3, \
8, 7, 6, 5, 4, \
9,10,11,12,13, \
18,17,16,15,14, \
19,20,21,22,23, \
28,27,26,25,24, \
29,30,31,32,33, \
38,37,36,35,34, \
39,40,41,42,43, \
48,47,46,45,44, \
49,50,51,52,53, \
58,57,56,55,54, \
59,60,61,62,63, \
68,67,66,65,64 \
}
#endif

#define RGBLIGHT_EFFECT_BREATHING
Expand Down
3 changes: 2 additions & 1 deletion keyboards/om60/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
]
},
"rgblight": {
"sleep": true
"sleep": true,
"led_map": [0, 1, 2, 3, 8, 7, 6, 5, 4, 9, 10, 11, 12, 13, 18, 17, 16, 15, 14, 19, 20, 21, 22, 23, 28, 27, 26, 25, 24, 29, 30, 31, 32, 33, 38, 37, 36, 35, 34, 39, 40, 41, 42, 43, 48, 47, 46, 45, 44, 49, 50, 51, 52, 53, 58, 57, 56, 55, 54, 59, 60, 61, 62, 63, 68, 67, 66, 65, 64]
},
"ws2812": {
"pin": "D3"
Expand Down
26 changes: 0 additions & 26 deletions keyboards/sofle/keyhive/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,30 +36,4 @@
# define RGBLIGHT_SAT_STEP 17
# define RGBLIGHT_VAL_STEP 17
//# define RGBLIGHT_LAYERS //Enable layer light indicators. Not required as updates are done in layer_state_set_user and led_update_user (+588).

//RGB LED Conversion macro from physical array to electric array (+146). This results in better looking animated effects.
//First section is the LED matrix, second section is the electrical wiring order, and the third section is the desired mapping
# define LED_LAYOUT( \
L00, L01, L02, L03, L04, L05, L08, L09, L010, L011, L012, L013, \
L10, L12, L14, L19, L111, L113, \
L20, L21, L22, L23, L24, L25, L28, L29, L210, L211, L212, L213, \
L30, L31, L32, L33, L34, L35, L38, L39, L310, L311, L312, L313, \
L40, L42, L44, L49, L411, L413, \
L50, L51, L52, L53, L54, L55, L58, L59, L510, L511, L512, L513, \
L62, L63, L64, L65, L66, L67, L68, L69, L610, L611, \
L71, L76, L77, L712 )\
{ \
L14,L12,L10,L40,L42,L44,L71,L76,L66,L65,L55,L35,L25,L05,L04,L24,L34,L54,L64,L63,L53,L33,L23,L03,L02,L22,L32,L52,L62,L51,L31,L21,L01,L00,L20,L30,L50,L19,L111,L113,L413,L411,L49,L712,L77,L67,L68,L58,L38,L28,L08,L09,L29,L39,L59,L69,L610,L510,L310,L210,L010,L011,L211,L311,L511,L611,L512,L312,L212,L012,L013,L213,L313,L513, \
}
//RGB LED logical order map
# define RGBLIGHT_LED_MAP LED_LAYOUT( \
5, 6, 17, 18, 29, 30, 43, 44, 55, 56, 67, 68, \
4, 16, 28, 45, 57, 69, \
3, 7, 15, 19, 27, 31, 42, 46, 54, 58, 66, 70, \
2, 8, 14, 20, 26, 32, 41, 47, 53, 59, 65, 71, \
1, 13, 25, 48, 60, 72, \
0, 9, 12, 21, 24, 33, 40, 49, 52, 61, 64, 73, \
11, 22, 23, 34, 35, 38, 39, 50, 51, 62, \
10, 36, 37, 63 )

#endif
3 changes: 2 additions & 1 deletion keyboards/taleguers/taleguers75/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
]
},
"rgblight": {
"sleep": true
"sleep": true,
"led_map": [5, 4, 3, 2, 1, 0]
},
"ws2812": {
"pin": "D3"
Expand Down
1 change: 1 addition & 0 deletions keyboards/yoichiro/lunakey_mini/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
},
"rgblight": {
"sleep": true,
"led_map": [0, 1, 2, 3, 4, 5, 11, 10, 9, 8, 7, 6],
"split_count": [6, 6]
},
"ws2812": {
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.