arduino pro micro - pc usb volume control

i am trying to make something like that but I get some errors when i compile
this is the project I wanna built

the code is in atach
the errors are

C:\Users\AdiContakt\Desktop\mediavolcontrollerHIDwithLED\mediavolcontrollerHIDwithLED.ino: In function 'void setup()':

mediavolcontrollerHIDwithLED:92: error: 'Keyboard' not found. Does your sketch include the line '#include <Keyboard.h>'?
  Keyboard.begin();

  ^

C:\Users\AdiContakt\Desktop\mediavolcontrollerHIDwithLED\mediavolcontrollerHIDwithLED.ino: In function 'void loop()':

mediavolcontrollerHIDwithLED:108: error: 'Keyboard' not found. Does your sketch include the line '#include <Keyboard.h>'?
        Keyboard.press(KEY_LEFT_CTRL);

        ^

mediavolcontrollerHIDwithLED:108: error: 'KEY_LEFT_CTRL' was not declared in this scope

        Keyboard.press(KEY_LEFT_CTRL);

                       ^

mediavolcontrollerHIDwithLED:109: error: 'KEY_F10' was not declared in this scope

        Keyboard.press(KEY_F10);

                       ^

mediavolcontrollerHIDwithLED:116: error: 'Keyboard' not found. Does your sketch include the line '#include <Keyboard.h>'?
        Keyboard.press(KEY_LEFT_CTRL);

        ^

mediavolcontrollerHIDwithLED:116: error: 'KEY_LEFT_CTRL' was not declared in this scope

        Keyboard.press(KEY_LEFT_CTRL);

                       ^

mediavolcontrollerHIDwithLED:117: error: 'KEY_F10' was not declared in this scope

        Keyboard.press(KEY_F10);

                       ^

mediavolcontrollerHIDwithLED:133: error: 'Keyboard' not found. Does your sketch include the line '#include <Keyboard.h>'?
      Keyboard.press(KEY_LEFT_CTRL);

      ^

mediavolcontrollerHIDwithLED:133: error: 'KEY_LEFT_CTRL' was not declared in this scope

      Keyboard.press(KEY_LEFT_CTRL);

                     ^

mediavolcontrollerHIDwithLED:134: error: 'KEY_F8' was not declared in this scope

      Keyboard.press(KEY_F8);

                     ^

mediavolcontrollerHIDwithLED:142: error: 'Keyboard' not found. Does your sketch include the line '#include <Keyboard.h>'?
      Keyboard.press(KEY_LEFT_CTRL);

      ^

mediavolcontrollerHIDwithLED:142: error: 'KEY_LEFT_CTRL' was not declared in this scope

      Keyboard.press(KEY_LEFT_CTRL);

                     ^

mediavolcontrollerHIDwithLED:143: error: 'KEY_F9' was not declared in this scope

      Keyboard.press(KEY_F9);

                     ^

mediavolcontrollerHIDwithLED:161: error: 'Keyboard' not found. Does your sketch include the line '#include <Keyboard.h>'?
        Keyboard.press(KEY_LEFT_CTRL);

        ^

mediavolcontrollerHIDwithLED:161: error: 'KEY_LEFT_CTRL' was not declared in this scope

        Keyboard.press(KEY_LEFT_CTRL);

                       ^

mediavolcontrollerHIDwithLED:162: error: 'KEY_F11' was not declared in this scope

        Keyboard.press(KEY_F11);

                       ^

mediavolcontrollerHIDwithLED:170: error: 'Keyboard' not found. Does your sketch include the line '#include <Keyboard.h>'?
        Keyboard.press(KEY_LEFT_CTRL);

        ^

mediavolcontrollerHIDwithLED:170: error: 'KEY_LEFT_CTRL' was not declared in this scope

        Keyboard.press(KEY_LEFT_CTRL);

                       ^

mediavolcontrollerHIDwithLED:171: error: 'KEY_F11' was not declared in this scope

        Keyboard.press(KEY_F11);

                       ^

mediavolcontrollerHIDwithLED:191: error: 'Keyboard' not found. Does your sketch include the line '#include <Keyboard.h>'?
        Keyboard.press(KEY_LEFT_CTRL);

        ^

mediavolcontrollerHIDwithLED:191: error: 'KEY_LEFT_CTRL' was not declared in this scope

        Keyboard.press(KEY_LEFT_CTRL);

                       ^

mediavolcontrollerHIDwithLED:192: error: 'KEY_F12' was not declared in this scope

        Keyboard.press(KEY_F12);

                       ^

mediavolcontrollerHIDwithLED:200: error: 'Keyboard' not found. Does your sketch include the line '#include <Keyboard.h>'?
        Keyboard.press(KEY_LEFT_CTRL);

        ^

mediavolcontrollerHIDwithLED:200: error: 'KEY_LEFT_CTRL' was not declared in this scope

        Keyboard.press(KEY_LEFT_CTRL);

                       ^

mediavolcontrollerHIDwithLED:201: error: 'KEY_F12' was not declared in this scope

        Keyboard.press(KEY_F12);

                       ^

mediavolcontrollerHIDwithLED:221: error: 'Keyboard' not found. Does your sketch include the line '#include <Keyboard.h>'?
        Keyboard.press(KEY_LEFT_CTRL);

        ^

mediavolcontrollerHIDwithLED:221: error: 'KEY_LEFT_CTRL' was not declared in this scope

        Keyboard.press(KEY_LEFT_CTRL);

                       ^

mediavolcontrollerHIDwithLED:222: error: 'KEY_F4' was not declared in this scope

        Keyboard.press(KEY_F4);

                       ^

mediavolcontrollerHIDwithLED:230: error: 'Keyboard' not found. Does your sketch include the line '#include <Keyboard.h>'?
        Keyboard.press(KEY_LEFT_CTRL);

        ^

mediavolcontrollerHIDwithLED:230: error: 'KEY_LEFT_CTRL' was not declared in this scope

        Keyboard.press(KEY_LEFT_CTRL);

                       ^

mediavolcontrollerHIDwithLED:231: error: 'KEY_F4' was not declared in this scope

        Keyboard.press(KEY_F4);

                       ^

mediavolcontrollerHIDwithLED:251: error: 'Keyboard' not found. Does your sketch include the line '#include <Keyboard.h>'?
        Keyboard.press(KEY_LEFT_CTRL);

        ^

mediavolcontrollerHIDwithLED:251: error: 'KEY_LEFT_CTRL' was not declared in this scope

        Keyboard.press(KEY_LEFT_CTRL);

                       ^

mediavolcontrollerHIDwithLED:252: error: 'KEY_F6' was not declared in this scope

        Keyboard.press(KEY_F6);

                       ^

mediavolcontrollerHIDwithLED:260: error: 'Keyboard' not found. Does your sketch include the line '#include <Keyboard.h>'?
        Keyboard.press(KEY_LEFT_CTRL);

        ^

mediavolcontrollerHIDwithLED:260: error: 'KEY_LEFT_CTRL' was not declared in this scope

        Keyboard.press(KEY_LEFT_CTRL);

                       ^

mediavolcontrollerHIDwithLED:261: error: 'KEY_F6' was not declared in this scope

        Keyboard.press(KEY_F6);

                       ^

mediavolcontrollerHIDwithLED:281: error: 'Keyboard' not found. Does your sketch include the line '#include <Keyboard.h>'?
        Keyboard.press(KEY_LEFT_CTRL);

        ^

mediavolcontrollerHIDwithLED:281: error: 'KEY_LEFT_CTRL' was not declared in this scope

        Keyboard.press(KEY_LEFT_CTRL);

                       ^

mediavolcontrollerHIDwithLED:282: error: 'KEY_F5' was not declared in this scope

        Keyboard.press(KEY_F5);

                       ^

mediavolcontrollerHIDwithLED:290: error: 'Keyboard' not found. Does your sketch include the line '#include <Keyboard.h>'?
        Keyboard.press(KEY_LEFT_CTRL);

        ^

mediavolcontrollerHIDwithLED:290: error: 'KEY_LEFT_CTRL' was not declared in this scope

        Keyboard.press(KEY_LEFT_CTRL);

                       ^

mediavolcontrollerHIDwithLED:291: error: 'KEY_F5' was not declared in this scope

        Keyboard.press(KEY_F5);

                       ^

mediavolcontrollerHIDwithLED:310: error: 'Keyboard' not found. Does your sketch include the line '#include <Keyboard.h>'?
        Keyboard.press(KEY_LEFT_CTRL);

        ^

mediavolcontrollerHIDwithLED:310: error: 'KEY_LEFT_CTRL' was not declared in this scope

        Keyboard.press(KEY_LEFT_CTRL);

                       ^

mediavolcontrollerHIDwithLED:311: error: 'KEY_F7' was not declared in this scope

        Keyboard.press(KEY_F7);

                       ^

mediavolcontrollerHIDwithLED:319: error: 'Keyboard' not found. Does your sketch include the line '#include <Keyboard.h>'?
        Keyboard.press(KEY_LEFT_CTRL);

        ^

mediavolcontrollerHIDwithLED:319: error: 'KEY_LEFT_CTRL' was not declared in this scope

        Keyboard.press(KEY_LEFT_CTRL);

                       ^

mediavolcontrollerHIDwithLED:320: error: 'KEY_F7' was not declared in this scope

        Keyboard.press(KEY_F7);

                       ^

exit status 1
'Keyboard' not found. Does your sketch include the line '#include <Keyboard.h>'?

i need some help , i am a newbie in "coding" ,10x

mediavolcontrollerHIDwithLED.ino (8.92 KB)

Never mind. I did not see your title. I know the micro supports the keyboard and mouse, but I've not used the pro Micro.

Sorry for the edit.

:frowning:

Hi,
mediavolcontrollerHIDwithLED:92: error: 'Keyboard' not found. Does your sketch include the line '#include <Keyboard.h>'?
Keyboard.begin();

This is a clue.

mediavolcontrollerHIDwithLED:92: error: 'Keyboard' not found. Does your sketch include the line '#include <Keyboard.h>'?
Keyboard.begin();

Have you got the keyboard library needed to run this code?

Please read the first post in any forum entitled how to use this forum.
http://forum.arduino.cc/index.php/topic,148850.0.html then look down to item #7 about how to post your code.
It will be formatted in a scrolling window that makes it easier to read.

Thanks.. Tom.. :slight_smile:

His code is too long to post (I tried, more than 9000 lines).

I don't see #include <keyboard.h> in the code

I think is the standard library from arduino, and I add encoder and hid library
From were I can get the right one(keyboard arduino library)?
I now how to post a code but I get a warning that I execed 9000 caracters.

on another forum somone tell me that I don"t have installed Remote library , after that i have to remove "Keboard.begin()"
but i can"t find on the web this library

i think this is the solution

Now I have another problem, after restarting the pc I have to reconnect the arduino otherwise won t work. Any solution?

bump