Skip to content

Commit

Permalink
Migrate lighting defaults to info.json (#22920)
Browse files Browse the repository at this point in the history
  • Loading branch information
zvecr authored Feb 1, 2024
1 parent 7d5b4ad commit 2f37a78
Show file tree
Hide file tree
Showing 141 changed files with 312 additions and 338 deletions.
11 changes: 2 additions & 9 deletions keyboards/0xcb/1337/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#pragma once

// clang-format off

/* default setup after eeprom reset */
#define RGBLIGHT_DEFAULT_MODE RGBLIGHT_EFFECT_BREATHING + 2
#define RGBLIGHT_DEFAULT_HUE 152
#define RGBLIGHT_DEFAULT_SAT 232
#define RGBLIGHT_DEFAULT_VAR 255
#define RGBLIGHT_DEFAULT_SPD 2
// clang-format on
/* default setup after eeprom reset */
#define RGBLIGHT_DEFAULT_MODE RGBLIGHT_EFFECT_BREATHING + 2

/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE
Expand Down
5 changes: 5 additions & 0 deletions keyboards/0xcb/1337/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@
"rgb_test": true,
"alternating": true,
"twinkle": true
},
"default": {
"hue": 152,
"sat": 232,
"speed": 2
}
},
"ws2812": {
Expand Down
2 changes: 0 additions & 2 deletions keyboards/anavi/arrows/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@

#pragma once

#define RGBLIGHT_DEFAULT_MODE RGBLIGHT_MODE_RAINBOW_MOOD

/* Double tap reset button to enter bootloader */
#define RP2040_BOOTLOADER_DOUBLE_TAP_RESET
#define RP2040_BOOTLOADER_DOUBLE_TAP_RESET_LED GP17
Expand Down
3 changes: 3 additions & 0 deletions keyboards/anavi/arrows/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@
"snake": true,
"static_gradient": true,
"twinkle": true
},
"default": {
"animation": "rainbow_mood"
}
},
"ws2812": {
Expand Down
3 changes: 0 additions & 3 deletions keyboards/anavi/knob1/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,11 @@

#pragma once

#define RGBLIGHT_DEFAULT_MODE 9

/* Double tap reset button to enter bootloader */
#define RP2040_BOOTLOADER_DOUBLE_TAP_RESET
#define RP2040_BOOTLOADER_DOUBLE_TAP_RESET_LED GP17
#define RP2040_BOOTLOADER_DOUBLE_TAP_RESET_TIMEOUT 500U


#define I2C_DRIVER I2CD1
#define I2C1_SDA_PIN GP6
#define I2C1_SCL_PIN GP7
Expand Down
6 changes: 3 additions & 3 deletions keyboards/anavi/knob1/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@
"rgblight": {
"led_count": 1,
"hue_steps": 10,
"saturation_steps": 17,
"brightness_steps": 17,
"max_brightness": 255,
"animations": {
"alternating": true,
"breathing": true,
Expand All @@ -31,6 +28,9 @@
"snake": true,
"static_gradient": true,
"twinkle": true
},
"default": {
"animation": "rainbow_swirl"
}
},
"ws2812": {
Expand Down
2 changes: 0 additions & 2 deletions keyboards/anavi/macropad12/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@

#pragma once

#define RGBLIGHT_DEFAULT_MODE RGBLIGHT_MODE_RAINBOW_MOOD

/* Double tap reset button to enter bootloader */
#define RP2040_BOOTLOADER_DOUBLE_TAP_RESET
#define RP2040_BOOTLOADER_DOUBLE_TAP_RESET_LED GP17
Expand Down
3 changes: 3 additions & 0 deletions keyboards/anavi/macropad12/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@
"snake": true,
"static_gradient": true,
"twinkle": true
},
"default": {
"animation": "rainbow_mood"
}
},
"ws2812": {
Expand Down
1 change: 0 additions & 1 deletion keyboards/dztech/duo_s/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#pragma once

#define RGBLIGHT_DEFAULT_MODE (RGBLIGHT_EFFECT_RAINBOW_MOOD + 6)
#define RGBLIGHT_DEFAULT_SPD 15

/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE
Expand Down
3 changes: 3 additions & 0 deletions keyboards/dztech/duo_s/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@
"rgb_test": true,
"alternating": true,
"twinkle": true
},
"default": {
"speed": 15
}
},
"ws2812": {
Expand Down
1 change: 0 additions & 1 deletion keyboards/dztech/endless80/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,3 @@
#pragma once

#define RGBLIGHT_DEFAULT_MODE (RGBLIGHT_EFFECT_RAINBOW_MOOD + 6)
#define RGBLIGHT_DEFAULT_SPD 10
3 changes: 3 additions & 0 deletions keyboards/dztech/endless80/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@
"rgb_test": true,
"alternating": true,
"twinkle": true
},
"default": {
"speed": 10
}
},
"processor": "atmega32u4",
Expand Down
2 changes: 0 additions & 2 deletions keyboards/ffkeebs/puca/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

#pragma once

#define RGBLIGHT_DEFAULT_MODE RGBLIGHT_MODE_STATIC_LIGHT

/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE
/* Locking resynchronize hack */
Expand Down
4 changes: 0 additions & 4 deletions keyboards/fjlabs/avalon/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define LOCKING_SUPPORT_ENABLE
/* Locking resynchronize hack */
#define LOCKING_RESYNC_ENABLE

#define RGBLIGHT_DEFAULT_SPD 144
#define RGBLIGHT_DEFAULT_MODE RGBLIGHT_MODE_RAINBOW_SWIRL

4 changes: 4 additions & 0 deletions keyboards/fjlabs/avalon/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@
"rgb_test": true,
"alternating": true,
"twinkle": true
},
"default": {
"animation": "rainbow_swirl",
"speed": 144
}
},
"ws2812": {
Expand Down
3 changes: 0 additions & 3 deletions keyboards/fjlabs/kyuu/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
/* Locking resynchronize hack */
#define LOCKING_RESYNC_ENABLE

#define RGBLIGHT_DEFAULT_SPD 144
#define RGBLIGHT_DEFAULT_MODE RGBLIGHT_MODE_RAINBOW_SWIRL

/* Define less important options */

/*
Expand Down
4 changes: 4 additions & 0 deletions keyboards/fjlabs/kyuu/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@
"rgb_test": true,
"alternating": true,
"twinkle": true
},
"default": {
"animation": "rainbow_swirl",
"speed": 144
}
},
"ws2812": {
Expand Down
3 changes: 0 additions & 3 deletions keyboards/fjlabs/mk61rgbansi/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
/* Locking resynchronize hack */
#define LOCKING_RESYNC_ENABLE

#define RGBLIGHT_DEFAULT_SPD 144
#define RGBLIGHT_DEFAULT_MODE RGBLIGHT_MODE_RAINBOW_SWIRL

/* Define less important options */

/*
Expand Down
4 changes: 4 additions & 0 deletions keyboards/fjlabs/mk61rgbansi/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@
"rgb_test": true,
"alternating": true,
"twinkle": true
},
"default": {
"animation": "rainbow_swirl",
"speed": 144
}
},
"processor": "atmega32u4",
Expand Down
3 changes: 0 additions & 3 deletions keyboards/fjlabs/tf60ansi/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
/* Locking resynchronize hack */
#define LOCKING_RESYNC_ENABLE

#define RGBLIGHT_DEFAULT_SPD 144
#define RGBLIGHT_DEFAULT_MODE RGBLIGHT_MODE_RAINBOW_SWIRL

/* Define less important options */

/*
Expand Down
4 changes: 4 additions & 0 deletions keyboards/fjlabs/tf60ansi/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@
"rgb_test": true,
"alternating": true,
"twinkle": true
},
"default": {
"animation": "rainbow_swirl",
"speed": 144
}
},
"processor": "atmega32u4",
Expand Down
3 changes: 0 additions & 3 deletions keyboards/fjlabs/tf60v2/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
/* Locking resynchronize hack */
#define LOCKING_RESYNC_ENABLE

#define RGBLIGHT_DEFAULT_SPD 144
#define RGBLIGHT_DEFAULT_MODE RGBLIGHT_MODE_RAINBOW_SWIRL

/* Define less important options */

/*
Expand Down
4 changes: 4 additions & 0 deletions keyboards/fjlabs/tf60v2/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@
"rgb_test": true,
"alternating": true,
"twinkle": true
},
"default": {
"animation": "rainbow_swirl",
"speed": 144
}
},
"processor": "atmega32u4",
Expand Down
3 changes: 0 additions & 3 deletions keyboards/fjlabs/tf65rgbv2/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
/* Locking resynchronize hack */
#define LOCKING_RESYNC_ENABLE

#define RGBLIGHT_DEFAULT_SPD 144
#define RGBLIGHT_DEFAULT_MODE RGBLIGHT_MODE_RAINBOW_SWIRL

/* Define less important options */

/*
Expand Down
4 changes: 4 additions & 0 deletions keyboards/fjlabs/tf65rgbv2/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@
"rgb_test": true,
"alternating": true,
"twinkle": true
},
"default": {
"animation": "rainbow_swirl",
"speed": 144
}
},
"processor": "atmega32u4",
Expand Down
4 changes: 0 additions & 4 deletions keyboards/frooastboard/nano/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,4 @@

#pragma once

#define RGBLIGHT_DEFAULT_HUE 234

#define RGBLIGHT_DEFAULT_VAL 190

#define RGBLIGHT_DEFAULT_MODE RGBLIGHT_MODE_RAINBOW_MOOD + 2
4 changes: 4 additions & 0 deletions keyboards/frooastboard/nano/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@
"rainbow_swirl": true,
"snake": true,
"twinkle": true
},
"default": {
"hue": 234,
"val": 190
}
},
"ws2812": {
Expand Down
4 changes: 0 additions & 4 deletions keyboards/gray_studio/aero75/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@

#pragma once

#define RGBLIGHT_LAYERS
#define RGBLIGHT_LAYERS_OVERRIDE_RGB_OFF
#define RGBLIGHT_DEFAULT_MODE RGBLIGHT_MODE_RAINBOW_MOOD

/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE
/* Locking resynchronize hack */
Expand Down
7 changes: 7 additions & 0 deletions keyboards/gray_studio/aero75/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@
"rgb_test": true,
"alternating": true,
"twinkle": true
},
"default": {
"animation": "rainbow_mood"
},
"layers": {
"enabled": true,
"override_rgb": true
}
},
"matrix_pins": {
Expand Down
19 changes: 0 additions & 19 deletions keyboards/gray_studio/apollo80/config.h

This file was deleted.

3 changes: 3 additions & 0 deletions keyboards/gray_studio/apollo80/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@
"rgb_test": true,
"alternating": true,
"twinkle": true
},
"default": {
"animation": "rainbow_mood"
}
},
"matrix_pins": {
Expand Down
4 changes: 0 additions & 4 deletions keyboards/gray_studio/space65r3/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
// SPDX-License-Identifier: GPL-2.0
#pragma once

#define RGBLIGHT_LAYERS
#define RGBLIGHT_LAYERS_OVERRIDE_RGB_OFF
#define RGBLIGHT_DEFAULT_MODE RGBLIGHT_MODE_RAINBOW_MOOD

/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE
/* Locking resynchronize hack */
Expand Down
7 changes: 7 additions & 0 deletions keyboards/gray_studio/space65r3/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@
"rgb_test": true,
"alternating": true,
"twinkle": true
},
"default": {
"animation": "rainbow_mood"
},
"layers": {
"enabled": true,
"override_rgb": true
}
},
"matrix_pins": {
Expand Down
2 changes: 1 addition & 1 deletion keyboards/gray_studio/think65v3/config.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2023 Yizhen Liu (@edwardslau)
// SPDX-License-Identifier: GPL-2.0
#pragma once
#define RGBLIGHT_DEFAULT_MODE RGBLIGHT_MODE_RAINBOW_MOOD

/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE
/* Locking resynchronize hack */
Expand Down
3 changes: 3 additions & 0 deletions keyboards/gray_studio/think65v3/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@
"snake": true,
"static_gradient": true,
"twinkle": true
},
"default": {
"animation": "rainbow_mood"
}
},
"layout_aliases": {
Expand Down
Loading

0 comments on commit 2f37a78

Please sign in to comment.