aboutsummaryrefslogtreecommitdiff
path: root/keyboards/jc65/v32a/v32a.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/jc65/v32a/v32a.c')
-rw-r--r--keyboards/jc65/v32a/v32a.c37
1 files changed, 12 insertions, 25 deletions
diff --git a/keyboards/jc65/v32a/v32a.c b/keyboards/jc65/v32a/v32a.c
index 2a289872f..627661a57 100644
--- a/keyboards/jc65/v32a/v32a.c
+++ b/keyboards/jc65/v32a/v32a.c
@@ -17,32 +17,19 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
17 17
18#include "v32a.h" 18#include "v32a.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); 23}
24 setPinOutput(D4);
25 setPinOutput(D6);
26 24
27 writePinLow(D0); 25void led_init_ports(void) {
28 writePinLow(D1); 26 setPinOutput(D1);
29 writePinLow(D4); 27 writePinHigh(D1);
30 writePinLow(D6);
31} 28}
32 29
33void backlight_set(uint8_t level) { 30bool led_update_kb(led_t led_state) {
34 if (level == 0) { 31 if (led_update_user(led_state)) {
35 // Turn out the lights 32 writePin(D1, !led_state.caps_lock);
36 writePinLow(D0); 33 }
37 writePinLow(D1); 34 return true;
38 writePinLow(D4);
39 writePinLow(D6);
40 } else {
41 // Turn on the lights
42 writePinHigh(D0);
43 writePinHigh(D1);
44 writePinHigh(D4);
45 writePinHigh(D6);
46 }
47} 35}
48#endif