From f4a20304e46d71e67c730bd57f7de201934adb35 Mon Sep 17 00:00:00 2001 From: tmk Date: Wed, 21 Dec 2016 13:53:20 +0900 Subject: [PATCH] hhkb: Pin setting for power saving --- keyboard/hhkb/hhkb_avr.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/keyboard/hhkb/hhkb_avr.h b/keyboard/hhkb/hhkb_avr.h index 7ea6322c..5cb1d0d7 100644 --- a/keyboard/hhkb/hhkb_avr.h +++ b/keyboard/hhkb/hhkb_avr.h @@ -71,6 +71,10 @@ static inline void KEY_INIT(void) /* row extention for HHKB JP */ DDRC |= (1<<6|1<<7); PORTC |= (1<<6|1<<7); +#else + /* input with pull up to save power */ + DDRC &= ~(1<<6|1<<7); + PORTC |= (1<<6|1<<7); #endif KEY_UNABLE(); KEY_PREV_OFF(); -- 2.46.2