summaryrefslogtreecommitdiffstats
path: root/keyboards/ai03/equinox
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2023-02-26 08:37:57 +1100
committerGitHub <noreply@github.com>2023-02-26 08:37:57 +1100
commit314f6c1ddba09851b33e4f3b4bd43bdbc55f9628 (patch)
tree8d0008ee0609b42ffbcbe19e52c3695ea5ab9280 /keyboards/ai03/equinox
parentba7546a334ec56e70629652e8552dd493449e9db (diff)
Move backlight config to data driven (#19910)
Diffstat (limited to 'keyboards/ai03/equinox')
-rw-r--r--keyboards/ai03/equinox/config.h4
-rw-r--r--keyboards/ai03/equinox/rev0/config.h5
-rw-r--r--keyboards/ai03/equinox/rev0/info.json5
-rw-r--r--keyboards/ai03/equinox/rev1/info.json5
4 files changed, 10 insertions, 9 deletions
diff --git a/keyboards/ai03/equinox/config.h b/keyboards/ai03/equinox/config.h
index f838baddd6..32065a4740 100644
--- a/keyboards/ai03/equinox/config.h
+++ b/keyboards/ai03/equinox/config.h
@@ -34,10 +34,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
/* COL2ROW, ROW2COL*/
#define DIODE_DIRECTION COL2ROW
-#define BACKLIGHT_PIN B7
-#define BACKLIGHT_BREATHING
-#define BACKLIGHT_LEVELS 5
-
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE
/* Locking resynchronize hack */
diff --git a/keyboards/ai03/equinox/rev0/config.h b/keyboards/ai03/equinox/rev0/config.h
index be599c1225..78c6fb8fcd 100644
--- a/keyboards/ai03/equinox/rev0/config.h
+++ b/keyboards/ai03/equinox/rev0/config.h
@@ -20,8 +20,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
// Fix for prototype missing COL0, COL1, using backlight and RGB underglow I/O pins
#undef MATRIX_COL_PINS
#define MATRIX_COL_PINS { C4, B7, C6, C7, B6, B5, B4, B3, B2, B1, B0, D6 }
-
-// This directs backlight code to use a disconnected pin, so the firwmare still has
-// backlight code and VIA support even though it doesn't do anything.
-#undef BACKLIGHT_PIN
-#define BACKLIGHT_PIN D1 \ No newline at end of file
diff --git a/keyboards/ai03/equinox/rev0/info.json b/keyboards/ai03/equinox/rev0/info.json
index dd190d18ee..d76623777e 100644
--- a/keyboards/ai03/equinox/rev0/info.json
+++ b/keyboards/ai03/equinox/rev0/info.json
@@ -1,4 +1,9 @@
{
+ "backlight": {
+ "pin": "D1",
+ "levels": 5,
+ "breathing": true
+ },
"processor": "atmega32u2",
"bootloader": "atmel-dfu"
}
diff --git a/keyboards/ai03/equinox/rev1/info.json b/keyboards/ai03/equinox/rev1/info.json
index dd190d18ee..19cd40d140 100644
--- a/keyboards/ai03/equinox/rev1/info.json
+++ b/keyboards/ai03/equinox/rev1/info.json
@@ -1,4 +1,9 @@
{
+ "backlight": {
+ "pin": "B7",
+ "levels": 5,
+ "breathing": true
+ },
"processor": "atmega32u2",
"bootloader": "atmel-dfu"
}