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

Using nanokey to make shutter remote. #2

Open
shirish47 opened this issue Jan 27, 2018 · 1 comment
Open

Using nanokey to make shutter remote. #2

shirish47 opened this issue Jan 27, 2018 · 1 comment

Comments

@shirish47
Copy link

I want to remotely make a control for taking images with volume up keycode.
so after a lot of searching, I found your library.
I have a nrf51 pcs working fine.

added this to code.

InterruptIn b2(p3);
DigitalOut  led(p14);

bool bpress=false;
void b2high()
{
  bpress=false;
  led=0;
}
void b2fall()
{
  bpress=true;
  led=1;
}

in the loop.

    if(bpress)
    {
      bpress=false;
      TheKeyboard.print(129,HEX);
    }

If I use print to print some text it works fine but these button codes don't work.

Some discussion on a consumer device and HID Keyboard.
http://www.microchip.com/forums/m618147.aspx

So any help or suggestions?
I thought after this library it would few mins of work :(

@shirish47
Copy link
Author

Ok I read about the caveats. only ASIC between 0-127 only :(

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