Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 9 of 9

Thread: Arduino library : usb_keyboard.h

Threaded View

  1. #1

    Arduino library : usb_keyboard.h

    Hello, I downloaded the source files for the keyboard function on the website, this I have imported as a library in Arudino, but if it is to use, it is not Orange deposited, and the commands even if I want to export the program, it gives me a lot of errors, what's wrong?

    I want the tennsy connect on a breadboard with four buttons.

    Apology for the writing way, it is Google Translate.
    Thx4Help.

    Code:
    #include <usb_keyboard.h>
    #include <Bounce.h>
    
    
    
    Bounce button0 = Bounce(0, 10);
    
    void setup()
    {
      pinMode(0, INPUT_PULLUP);
    }
    
    void loop()
    {
      button0.update();
      if (button0.fallingEdge())
      {
          usb_Keyboard_press(KEY_F5, KEY_ALT);   
      }
      
    }
    Click image for larger version. 

Name:	Unbenannt2.jpg 
Views:	229 
Size:	50.3 KB 
ID:	7279
    Name:  Unbenannt.PNG
Views: 652
Size:  1.5 KB
    Last edited by Elektroniker; 06-02-2016 at 01:52 PM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •