summaryrefslogtreecommitdiff
path: root/keyboards/acheron/shark
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/acheron/shark
parentba7546a334ec56e70629652e8552dd493449e9db (diff)
Move backlight config to data driven (#19910)
Diffstat (limited to 'keyboards/acheron/shark')
-rw-r--r--keyboards/acheron/shark/alpha/config.h1
-rw-r--r--keyboards/acheron/shark/alpha/info.json3
-rw-r--r--keyboards/acheron/shark/beta/config.h3
-rw-r--r--keyboards/acheron/shark/beta/info.json5
-rw-r--r--keyboards/acheron/shark/beta/rules.mk1
5 files changed, 8 insertions, 5 deletions
diff --git a/keyboards/acheron/shark/alpha/config.h b/keyboards/acheron/shark/alpha/config.h
index cadd2d825d..dba9b3f41d 100644
--- a/keyboards/acheron/shark/alpha/config.h
+++ b/keyboards/acheron/shark/alpha/config.h
@@ -44,7 +44,6 @@ B0, which is unconnected on the PCB
/* COL2ROW, ROW2COL*/
#define DIODE_DIRECTION COL2ROW
-#define BACKLIGHT_PIN B0
#define BACKLIGHT_PWM_DRIVER PWMD3
#define BACKLIGHT_PWM_CHANNEL 3
diff --git a/keyboards/acheron/shark/alpha/info.json b/keyboards/acheron/shark/alpha/info.json
index 0db6134e0b..5b235cc387 100644
--- a/keyboards/acheron/shark/alpha/info.json
+++ b/keyboards/acheron/shark/alpha/info.json
@@ -6,6 +6,9 @@
"pid": "0x5368",
"device_version": "0.0.1"
},
+ "backlight": {
+ "pin": "B0"
+ },
"processor": "STM32F303",
"bootloader": "stm32-dfu",
"board": "QMK_PROTON_C",
diff --git a/keyboards/acheron/shark/beta/config.h b/keyboards/acheron/shark/beta/config.h
index 633f76289f..161b9b1558 100644
--- a/keyboards/acheron/shark/beta/config.h
+++ b/keyboards/acheron/shark/beta/config.h
@@ -25,12 +25,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define LOCKING_SUPPORT_ENABLE
#define LOCKING_RESYNC_ENABLE
-#define BACKLIGHT_PIN A6
#define BACKLIGHT_PWM_DRIVER PWMD3
#define BACKLIGHT_PWM_CHANNEL 1
#define BACKLIGHT_PAL_MODE 2
-#define BACKLIGHT_LEVELS 20
-#define BACKLIGHT_BREATHING
#define RGB_DI_PIN B15
#define RGBLED_NUM 24
diff --git a/keyboards/acheron/shark/beta/info.json b/keyboards/acheron/shark/beta/info.json
index 615e9a91b9..0dcb286e97 100644
--- a/keyboards/acheron/shark/beta/info.json
+++ b/keyboards/acheron/shark/beta/info.json
@@ -4,6 +4,11 @@
"pid": "0x5369",
"device_version": "0.0.2"
},
+ "backlight": {
+ "pin": "A6",
+ "levels": 20,
+ "breathing": true
+ },
"processor": "STM32F411",
"bootloader": "stm32-dfu",
"community_layouts": ["ortho_4x12"],
diff --git a/keyboards/acheron/shark/beta/rules.mk b/keyboards/acheron/shark/beta/rules.mk
index b4a94395c6..fd436cc258 100644
--- a/keyboards/acheron/shark/beta/rules.mk
+++ b/keyboards/acheron/shark/beta/rules.mk
@@ -10,7 +10,6 @@ NKRO_ENABLE = yes # Enable N-Key rollover
BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality
RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow
AUDIO_ENABLE = no # Audio output
-BACKLIGHT_DRIVER = pwm
LTO_ENABLE = no
ENCODER_ENABLE = yes