aboutsummaryrefslogtreecommitdiff
path: root/keyboards/ares/ares.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/ares/ares.c')
-rw-r--r--keyboards/ares/ares.c34
1 files changed, 13 insertions, 21 deletions
diff --git a/keyboards/ares/ares.c b/keyboards/ares/ares.c
index 07276491c..e6379cb18 100644
--- a/keyboards/ares/ares.c
+++ b/keyboards/ares/ares.c
@@ -17,27 +17,19 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
17 17
18#include "ares.h" 18#include "ares.h"
19 19
20#ifdef BACKLIGHT_ENABLE 20void keyboard_pre_init_kb(void) {
21void backlight_init_ports(void) { 21 led_init_ports();
22 setPinOutput(D0); 22 keyboard_pre_init_user();
23 setPinOutput(D1);
24 setPinOutput(D4);
25 setPinOutput(D6);
26} 23}
27 24
28void backlight_set(uint8_t level) { 25void led_init_ports(void) {
29 if (level == 0) { 26 setPinOutput(D1);
30 // Turn out the lights 27 writePinHigh(D1);
31 writePinLow(D0); 28}
32 writePinLow(D1); 29
33 writePinLow(D4); 30bool led_update_kb(led_t led_state) {
34 writePinLow(D6); 31 if (led_update_user(led_state)) {
35 } else { 32 writePin(D1, !led_state.caps_lock);
36 // Turn on the lights 33 }
37 writePinHigh(D0); 34 return true;
38 writePinHigh(D1);
39 writePinHigh(D4);
40 writePinHigh(D6);
41 }
42} 35}
43#endif