aboutsummaryrefslogtreecommitdiffstats
path: root/keyboards/reversestudio
diff options
context:
space:
mode:
authorhuajijam <strhuaji@gmail.com>2020-04-20 17:54:33 +0800
committerGitHub <noreply@github.com>2020-04-20 10:54:33 +0100
commit7e4cf9ace2fd954a1a735fcbea75f719bfc3fbc2 (patch)
treec53d333c433b686b00548599be9bd32557e973ea /keyboards/reversestudio
parent0d658e0c95c560138bfc3838720c09a2e9cff893 (diff)
downloadfirmware-7e4cf9ace2fd954a1a735fcbea75f719bfc3fbc2.tar.gz
firmware-7e4cf9ace2fd954a1a735fcbea75f719bfc3fbc2.tar.bz2
firmware-7e4cf9ace2fd954a1a735fcbea75f719bfc3fbc2.zip
Fixing DecadePad Numlock LED Bug (#8831)
* Fixing Numlock LED Bugs * Change LED CODE to new API
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