aboutsummaryrefslogtreecommitdiff
path: root/keyboards/gray_studio/hb85
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/gray_studio/hb85')
-rw-r--r--keyboards/gray_studio/hb85/config.h4
-rw-r--r--keyboards/gray_studio/hb85/hb85.c20
2 files changed, 4 insertions, 20 deletions
diff --git a/keyboards/gray_studio/hb85/config.h b/keyboards/gray_studio/hb85/config.h
index 9309012a4..0e1f0aff4 100644
--- a/keyboards/gray_studio/hb85/config.h
+++ b/keyboards/gray_studio/hb85/config.h
@@ -34,5 +34,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
34#define RGBLED_NUM 5 34#define RGBLED_NUM 5
35#define RGBLIGHT_ANIMATIONS 35#define RGBLIGHT_ANIMATIONS
36 36
37#define LED_NUM_LOCK_PIN D0
38#define LED_CAPS_LOCK_PIN D1
39#define LED_SCROLL_LOCK_PIN D6
40
37#define BACKLIGHT_PIN D4 41#define BACKLIGHT_PIN D4
38#define BACKLIGHT_LEVELS 3 42#define BACKLIGHT_LEVELS 3
diff --git a/keyboards/gray_studio/hb85/hb85.c b/keyboards/gray_studio/hb85/hb85.c
index 4b3ff64f1..964234d6b 100644
--- a/keyboards/gray_studio/hb85/hb85.c
+++ b/keyboards/gray_studio/hb85/hb85.c
@@ -17,23 +17,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
17*/ 17*/
18 18
19#include "hb85.h" 19#include "hb85.h"
20
21void keyboard_pre_init_kb(void) {
22 led_init_ports();
23 keyboard_pre_init_user();
24}
25
26void led_init_ports(void) {
27 setPinOutput(D0);
28 setPinOutput(D1);
29 setPinOutput(D6);
30}
31
32bool led_update_kb(led_t led_state) {
33 if (led_update_user(led_state)) {
34 writePin(D0, led_state.num_lock);
35 writePin(D1, led_state.caps_lock);
36 writePin(D6, led_state.scroll_lock);
37 }
38 return true;
39}