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
RGBLIGHT_HUEとかをinfo.jsonへ。
VALはデフォルト値のため、喜寿せず。
  • Loading branch information
jpskenn committed Nov 3, 2023
1 parent 93d131e commit 23b82ce
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 12 deletions.
3 changes: 0 additions & 3 deletions keyboards/sandy/dn0020/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define ENCODERS 2

/* RGB LED */
#define RGBLIGHT_HUE_STEP 8
#define RGBLIGHT_SAT_STEP 8
#define RGBLIGHT_VAL_STEP 8
#define RGBLIGHT_DEFAULT_VAL 80
/*== Lighting Layers ==*/
#define RGBLIGHT_LAYERS
Expand Down
4 changes: 3 additions & 1 deletion keyboards/sandy/dn0020/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
"pin": "B7"
},
"rgblight": {
"led_count": 4
"led_count": 4,
"saturation_steps": 8,
"brightness_steps": 8
},
"encoder": {
"rotary": [
Expand Down
3 changes: 0 additions & 3 deletions keyboards/sandy/dn0030/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define ENCODERS 2

/* RGB LED */
#define RGBLIGHT_HUE_STEP 8
#define RGBLIGHT_SAT_STEP 8
#define RGBLIGHT_VAL_STEP 8
#define RGBLIGHT_DEFAULT_VAL 80
/*== Lighting Effects ==*/
#define RGBLIGHT_EFFECT_BREATHING
Expand Down
4 changes: 3 additions & 1 deletion keyboards/sandy/dn0030/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
"pin": "B7"
},
"rgblight": {
"led_count": 18
"led_count": 18,
"saturation_steps": 8,
"brightness_steps": 8
},
"encoder": {
"rotary": [
Expand Down
3 changes: 0 additions & 3 deletions keyboards/sandy/v01/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define ENCODERS 2

/* RGB LED */
#define RGBLIGHT_HUE_STEP 8
#define RGBLIGHT_SAT_STEP 8
#define RGBLIGHT_VAL_STEP 8
#define RGBLIGHT_DEFAULT_VAL 80
/*== Lighting Layers ==*/
#define RGBLIGHT_LAYERS
Expand Down
4 changes: 3 additions & 1 deletion keyboards/sandy/v01/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
"pin": "B7"
},
"rgblight": {
"led_count": 4
"led_count": 4,
"saturation_steps": 8,
"brightness_steps": 8
},
"encoder": {
"rotary": [
Expand Down

0 comments on commit 23b82ce

Please sign in to comment.