hhkb: Pin setting for power saving
[tmk_keyboard.git] / keyboard / hhkb / hhkb_avr.h
index 7ea6322c738ef371e931a43901e0ae467de50dcc..5cb1d0d7d8365d594450b0ddcde0704c650767ee 100644 (file)
@@ -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();
Imprint / Impressum