Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unresponsive keys of HHKB JP Bluetooth controller #239

Closed
tmk opened this issue Aug 8, 2015 · 0 comments
Closed

Unresponsive keys of HHKB JP Bluetooth controller #239

tmk opened this issue Aug 8, 2015 · 0 comments

Comments

@tmk
Copy link
Owner

tmk commented Aug 8, 2015

With Bluetooth controller for HHKB JP some keys are unresponsive during power saving of Bluetooth mode. This problem will occur also with USB mode when USB suspend state.

The unresponsive keys are on the first row of matrix; ESC TAB LFn LShift LCtrl

KEY_POWER_OFF() of hhkb_avr.h is the cause; lines making PC6 and PC7 input with pull-up, to be precise. Not sure why those lines cuase this problem exactly.

#ifdef HHKB_JP
DDRC &= ~(1<<6|1<<7);
PORTC |= (1<<6|1<<7);
#endif

static inline void KEY_POWER_OFF(void) {
    /* input with pull-up consumes less than without it when pin is open. */
    DDRB = 0x00; PORTB = 0xFF;          // change pins input with pull-up
#ifdef HHKB_JP
    DDRC  &= ~(1<<6|1<<7);
    PORTC |=  (1<<6|1<<7);
#endif
    DDRD |= (1<<4); PORTD &= ~(1<<4);   // MOS FET switch off
}
@tmk tmk closed this as completed in 79cf2d5 Aug 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant