summary refs log tree commit diff
path: root/keyboards/tg4x
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2023-06-16 14:04:45 +1000
committerGitHub <noreply@github.com>2023-06-16 14:04:45 +1000
commit2367d8129c92474eb0da66ebc5ace893097cf574 (patch)
tree07dd36030e6b490cf2c33a43bb434d419a02d0c2 /keyboards/tg4x
parent579db6131e271a6b3a52c3e19b2fe3a15fd403c7 (diff)
Move `RGBLIGHT_SLEEP` to data driven (#21072)
Diffstat (limited to 'keyboards/tg4x')
-rw-r--r--keyboards/tg4x/config.h1
-rw-r--r--keyboards/tg4x/info.json3
2 files changed, 3 insertions, 1 deletions
diff --git a/keyboards/tg4x/config.h b/keyboards/tg4x/config.h
index 20a2c414b3..5dab3ee20a 100644
--- a/keyboards/tg4x/config.h
+++ b/keyboards/tg4x/config.h
@@ -21,7 +21,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
   #define RGBLIGHT_HUE_STEP 8
   #define RGBLIGHT_SAT_STEP 8
   #define RGBLIGHT_VAL_STEP 8
-  #define RGBLIGHT_SLEEP  /* If defined, the RGB lighting will be switched off when the host goes to sleep */
 #define RGBLIGHT_EFFECT_BREATHING
 #define RGBLIGHT_EFFECT_RAINBOW_MOOD
 #define RGBLIGHT_EFFECT_RAINBOW_SWIRL
diff --git a/keyboards/tg4x/info.json b/keyboards/tg4x/info.json
index a3e464a110..db3cc0e580 100644
--- a/keyboards/tg4x/info.json
+++ b/keyboards/tg4x/info.json
@@ -8,6 +8,9 @@
         "pid": "0x0458",
         "device_version": "0.2.1"
     },
+    "rgblight": {
+        "sleep": true
+    },
     "ws2812": {
         "pin": "D2"
     },