Skip to content

Commit

Permalink
Move RGBLIGHT_HUE/SAT/VAL_STEP to data driven (qmk#21292)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpskenn committed Nov 5, 2023
1 parent 27c6242 commit 08aaaff
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 20 deletions.
3 changes: 0 additions & 3 deletions keyboards/nora/v01/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once

/* RGBLIGHT */
#define RGBLIGHT_HUE_STEP 8
#define RGBLIGHT_SAT_STEP 8
#define RGBLIGHT_VAL_STEP 8
#define RGBLIGHT_DEFAULT_VAL 127 /* The default brightness level */
/* Lighting Layers */
#define RGBLIGHT_LAYERS
Expand Down
4 changes: 3 additions & 1 deletion keyboards/nora/v01/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@
},
"rgblight": {
"led_count": 16,
"max_brightness": 240
"max_brightness": 240,
"saturation_steps": 8,
"brightness_steps": 8
},
"layouts": {
"LAYOUT": {
Expand Down
7 changes: 0 additions & 7 deletions keyboards/nora/v03/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
/* RGBLIGHT */
#ifdef RGB_MATRIX_ENABLE
#define RGB_MATRIX_LED_COUNT 71
#define RGB_MATRIX_HUE_STEP 8
#define RGB_MATRIX_SAT_STEP 8
#define RGB_MATRIX_VAL_STEP 8
#define RGB_MATRIX_SPD_STEP 8
#define RGB_MATRIX_FRAMEBUFFER_EFFECTS
#define RGB_MATRIX_KEYPRESSES

#else
#define RGBLIGHT_HUE_STEP 8
#define RGBLIGHT_SAT_STEP 8
#define RGBLIGHT_VAL_STEP 8
#define RGBLIGHT_DEFAULT_VAL 127 /* The default brightness level */
/* Lighting Layers */
#define RGBLIGHT_LAYERS
Expand Down
7 changes: 6 additions & 1 deletion keyboards/nora/v03/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,16 @@
},
"rgb_matrix": {
"driver": "ws2812",
"sat_steps": 8,
"speed_steps": 8,
"val_steps": 8,
"max_brightness": 150
},
"rgblight": {
"led_count": 71,
"max_brightness": 150
"max_brightness": 150,
"saturation_steps": 8,
"brightness_steps": 8
},
"layouts": {
"LAYOUT": {
Expand Down
4 changes: 0 additions & 4 deletions keyboards/nora/v031/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define RGB_MATRIX_LED_COUNT 64

#define RGB_MATRIX_STARTUP_VAL 40
#define RGB_MATRIX_HUE_STEP 4
#define RGB_MATRIX_SAT_STEP 8
#define RGB_MATRIX_VAL_STEP 8
#define RGB_MATRIX_SPD_STEP 8

#define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_SOLID_COLOR
#define RGB_MATRIX_FRAMEBUFFER_EFFECTS
Expand Down
4 changes: 4 additions & 0 deletions keyboards/nora/v031/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
},
"rgb_matrix": {
"driver": "ws2812",
"hue_steps": 4,
"sat_steps": 8,
"speed_steps": 8,
"val_steps": 8,
"max_brightness": 128
},
"encoder": {
Expand Down
4 changes: 0 additions & 4 deletions keyboards/nora/v1/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define RGB_MATRIX_LED_COUNT 71

#define RGB_MATRIX_STARTUP_VAL 40
#define RGB_MATRIX_HUE_STEP 4
#define RGB_MATRIX_SAT_STEP 8
#define RGB_MATRIX_VAL_STEP 8
#define RGB_MATRIX_SPD_STEP 8

#define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_SOLID_COLOR
#define RGB_MATRIX_FRAMEBUFFER_EFFECTS
Expand Down
4 changes: 4 additions & 0 deletions keyboards/nora/v1/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
},
"rgb_matrix": {
"driver": "ws2812",
"hue_steps": 4,
"sat_steps": 8,
"speed_steps": 8,
"val_steps": 8,
"max_brightness": 128
},
"encoder": {
Expand Down

0 comments on commit 08aaaff

Please sign in to comment.