Skip to content

Commit

Permalink
hhkb: Pin setting for power saving
Browse files Browse the repository at this point in the history
  • Loading branch information
tmk committed Dec 21, 2016
1 parent 1713aaa commit f4a2030
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions keyboard/hhkb/hhkb_avr.h
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit f4a2030

Please sign in to comment.