aboutsummaryrefslogtreecommitdiffstats
path: root/keyboards/reversestudio
diff options
context:
space:
mode:
authorBen Beckford <beckford@gmail.com>2020-04-20 10:58:45 +0100
committerBen Beckford <beckford@gmail.com>2020-04-20 10:58:45 +0100
commitb80340c2076aef8732c05f197dff449d02135eef (patch)
treee091ca4433f36125cf3dccfa2fcaf675ec4f3651 /keyboards/reversestudio
parentcb4a86475e6af91b64dbe09bc6df686ef0ae367c (diff)
parent7e4cf9ace2fd954a1a735fcbea75f719bfc3fbc2 (diff)
downloadfirmware-b80340c2076aef8732c05f197dff449d02135eef.tar.gz
firmware-b80340c2076aef8732c05f197dff449d02135eef.tar.bz2
firmware-b80340c2076aef8732c05f197dff449d02135eef.zip
Merge branch 'master' of https://github.com/bbeckford/qmk_firmware
Diffstat (limited to 'keyboards/reversestudio')
-rw-r--r--keyboards/reversestudio/decadepad/decadepad.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/keyboards/reversestudio/decadepad/decadepad.c b/keyboards/reversestudio/decadepad/decadepad.c
index b1c3f58ce..32a66e295 100644
--- a/keyboards/reversestudio/decadepad/decadepad.c
+++ b/keyboards/reversestudio/decadepad/decadepad.c
@@ -1,7 +1,16 @@
#include "decadepad.h"
+void matrix_init_kb(void) {
+ led_init_ports();
+ matrix_init_user();
+};
+
+void led_init_ports(void) {
+ setPinOutput(D4);
+}
+
bool led_update_kb(led_t led_state) {
if (led_update_user(led_state)){
- writePin(D4, led_state.num_lock);
+ writePin(D4, !led_state.num_lock);
}
return true;
} \ No newline at end of file