aboutsummaryrefslogtreecommitdiffstats
path: root/keyboards/handwired/onekey/proton_c
diff options
context:
space:
mode:
authorGravatar Joel Challis <git@zvecr.com>2019-10-05 16:57:00 +0100
committerGravatar GitHub <noreply@github.com>2019-10-05 16:57:00 +0100
commit38aefaf78e3d9f17ef561f031679a02c9fba869c (patch)
tree9de5fc423f20d27daedeee0500faad57ce8712a2 /keyboards/handwired/onekey/proton_c
parent60b2a9a5ea88321629e970e936652cc1ba786b80 (diff)
downloadqmk_firmware-38aefaf78e3d9f17ef561f031679a02c9fba869c.tar.gz
ARM - Initial backlight support (#6487)
* Move AVR backlight to own file, add borrowed ARM implementation * Tiny fix for backlight custom logic * Remove duplicate board from rebase * Fix f303 onekey example * clang-format * clang-format * Remove backlight keymap debug * Initial pass of ARM backlight docs * Initial pass of ARM backlight docs - resolve todos * fix rules validation logic * Add f072 warning * Add f072 warning * tidy up breathing in backlight keymap * tidy up breathing in backlight keymap * add missing break to backlight keymap
Diffstat (limited to 'keyboards/handwired/onekey/proton_c')
-rw-r--r--keyboards/handwired/onekey/proton_c/config.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/keyboards/handwired/onekey/proton_c/config.h b/keyboards/handwired/onekey/proton_c/config.h
index f6bedcfe6..d4fb9c829 100644
--- a/keyboards/handwired/onekey/proton_c/config.h
+++ b/keyboards/handwired/onekey/proton_c/config.h
@@ -21,3 +21,8 @@
#define MATRIX_COL_PINS { A3 }
#define MATRIX_ROW_PINS { A2 }
#define UNUSED_PINS
+
+#define BACKLIGHT_PIN B8
+#define BACKLIGHT_PWM_DRIVER PWMD4
+#define BACKLIGHT_PWM_CHANNEL 3
+#define BACKLIGHT_PAL_MODE 2