From 862f519e241b83113566eebde71841958b2d00b7 Mon Sep 17 00:00:00 2001 From: tmk Date: Mon, 14 Jul 2014 15:20:10 +0900 Subject: Add software UART and battery monitor --- keyboard/hhkb_rn42/rn42.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'keyboard/hhkb_rn42/rn42.c') diff --git a/keyboard/hhkb_rn42/rn42.c b/keyboard/hhkb_rn42/rn42.c index c25e193719..89ecb199ca 100644 --- a/keyboard/hhkb_rn42/rn42.c +++ b/keyboard/hhkb_rn42/rn42.c @@ -70,9 +70,11 @@ static uint8_t keyboard_leds(void) { return 0; } static void send_keyboard(report_keyboard_t *report) { // wake from deep sleep +/* PORTD |= (1<<5); // high wait_ms(5); PORTD &= ~(1<<5); // low +*/ serial_send(0xFD); // Raw report mode serial_send(9); // length @@ -90,9 +92,11 @@ static void send_keyboard(report_keyboard_t *report) static void send_mouse(report_mouse_t *report) { // wake from deep sleep +/* PORTD |= (1<<5); // high wait_ms(5); PORTD &= ~(1<<5); // low +*/ serial_send(0xFD); // Raw report mode serial_send(5); // length -- cgit v1.2.3