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

Compiling Error(Arduino) #10

Closed
SShultz75 opened this issue Oct 15, 2016 · 3 comments
Closed

Compiling Error(Arduino) #10

SShultz75 opened this issue Oct 15, 2016 · 3 comments

Comments

@SShultz75
Copy link

Arduino: 1.6.12 (Windows 10), Board: "Arduino/Genuino Uno"

C:\Users\Mr. Shultz\Documents\Arduino\USBdrivebyWindowsOS\USBdrivebyWindowsOS.ino: In function 'void openapp(String)':

USBdrivebyWindowsOS:33: error: 'KEY_R' was not declared in this scope

key(KEY_R , MODIFIERKEY_RIGHT_GUI);

   ^

USBdrivebyWindowsOS:33: error: 'MODIFIERKEY_RIGHT_GUI' was not declared in this scope

key(KEY_R , MODIFIERKEY_RIGHT_GUI);

           ^

USBdrivebyWindowsOS:37: error: 'Keyboard' not found. Does your sketch include the line '#include <Keyboard.h>'?
Keyboard.print(app);

^

USBdrivebyWindowsOS:38: error: 'KEY_ENTER' was not declared in this scope

key(KEY_ENTER, 0);

   ^

C:\Users\Mr. Shultz\Documents\Arduino\USBdrivebyWindowsOS\USBdrivebyWindowsOS.ino: In function 'void key(int, int)':

USBdrivebyWindowsOS:45: error: 'Keyboard' not found. Does your sketch include the line '#include <Keyboard.h>'?
Keyboard.set_modifier(MODIFIER);

^

C:\Users\Mr. Shultz\Documents\Arduino\USBdrivebyWindowsOS\USBdrivebyWindowsOS.ino: In function 'void waitForDrivers()':

USBdrivebyWindowsOS:57: error: 'keyboard_leds' was not declared in this scope

while (!(keyboard_leds & 2))

        ^

USBdrivebyWindowsOS:59: error: 'KEY_CAPS_LOCK' was not declared in this scope

 key(KEY_CAPS_LOCK, 0);

     ^

USBdrivebyWindowsOS:61: error: 'keyboard_leds' was not declared in this scope

if (keyboard_leds & 2)

   ^

USBdrivebyWindowsOS:63: error: 'KEY_CAPS_LOCK' was not declared in this scope

 key(KEY_CAPS_LOCK, 0);

     ^

C:\Users\Mr. Shultz\Documents\Arduino\USBdrivebyWindowsOS\USBdrivebyWindowsOS.ino: In function 'void pwn()':

USBdrivebyWindowsOS:71: error: 'Keyboard' not found. Does your sketch include the line '#include <Keyboard.h>'?
Keyboard.println("cd AppData/Local/Temp");

^

USBdrivebyWindowsOS:85: error: 'KEY_F4' was not declared in this scope

key(KEY_F4, MODIFIERKEY_ALT);

   ^

USBdrivebyWindowsOS:85: error: 'MODIFIERKEY_ALT' was not declared in this scope

key(KEY_F4, MODIFIERKEY_ALT);

           ^

USBdrivebyWindowsOS:87: error: 'KEY_ENTER' was not declared in this scope

key(KEY_ENTER, 0);

   ^

USBdrivebyWindowsOS:94: error: 'KEY_SPACE' was not declared in this scope

key(KEY_SPACE, MODIFIERKEY_ALT);

   ^

USBdrivebyWindowsOS:96: error: 'KEY_C' was not declared in this scope

key(KEY_C, 0);

   ^

exit status 1
'KEY_R' was not declared in this scope

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

@samyk
Copy link
Owner

samyk commented Oct 16, 2016

Select "Serial+Keyboard+Mouse+Joystick" from Tools->USB Type

@samyk samyk closed this as completed Oct 16, 2016
@SShultz75
Copy link
Author

the "Tools->USB Type" no longer exists in the up to date Arduino IDE

@samyk
Copy link
Owner

samyk commented Oct 17, 2016

Did you choose Teensy as the board type?

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

2 participants