Computers, Development Boards & Shields
Educational & Robotics Kits
Electronic Sensors
Motors & Controllers
Communication & Display
Electronic Components
Soldering & Lab Tools

0
Arduino Leonardo trouble turning an Amiga 2000 keyboard into a PC compatible one

I actually am using an Arduino for my first time ever, and am coming up with an error when I try to verify the code. It’s a code I copied and pasted from an Arduino forum to turn an Amiga 2000 keyboard into a PC compatible one. Everyone else in the thread seemed to have success with copying the code, so I am not sure why I am getting these problems. Here is the error log, if you’re able to help:

Amiga_2000_QWERTY_Copy_Pasta:13: error: ‘KeyReport’ does not name a type
Amiga_2000_QWERTY_Copy_Pasta.ino: In function ‘void setup()’:
Amiga_2000_QWERTY_Copy_Pasta:38: error: ‘DDRF’ was not declared in this scope
Amiga_2000_QWERTY_Copy_Pasta:39: error: ‘PORTF’ was not declared in this scope
Amiga_2000_QWERTY_Copy_Pasta.ino: In function ‘void loop()’:
Amiga_2000_QWERTY_Copy_Pasta:50: error: ‘HID_SendReport’ was not declared in this scope
Amiga_2000_QWERTY_Copy_Pasta:55: error: ‘PINF’ was not declared in this scope
Amiga_2000_QWERTY_Copy_Pasta:57: error: ‘HID_SendReport’ was not declared in this scope
Amiga_2000_QWERTY_Copy_Pasta.ino: In function ‘void keypress(uint8_t)’:
Amiga_2000_QWERTY_Copy_Pasta:146: error: ‘_keyReport’ was not declared in this scope
Amiga_2000_QWERTY_Copy_Pasta:149: error: ‘_keyReport’ was not declared in this scope
Amiga_2000_QWERTY_Copy_Pasta:155: error: ‘_keyReport’ was not declared in this scope
Amiga_2000_QWERTY_Copy_Pasta:155: error: ‘HID_SendReport’ was not declared in this scope
Amiga_2000_QWERTY_Copy_Pasta.ino: In function ‘void keyrelease(uint8_t)’:
Amiga_2000_QWERTY_Copy_Pasta:161: error: ‘_keyReport’ was not declared in this scope
Amiga_2000_QWERTY_Copy_Pasta:164: error: ‘_keyReport’ was not declared in this scope
Amiga_2000_QWERTY_Copy_Pasta:167: error: ‘_keyReport’ was not declared in this scope
Amiga_2000_QWERTY_Copy_Pasta:167: error: ‘HID_SendReport’ was not declared in this scope
Amiga_2000_QWERTY_Copy_Pasta.ino: In function ‘void keystroke(uint8_t, uint8_t)’:
Amiga_2000_QWERTY_Copy_Pasta:173: error: ‘_keyReport’ was not declared in this scope
Amiga_2000_QWERTY_Copy_Pasta:178: error: ‘HID_SendReport’ was not declared in this scope

Thank you,
Trevor

1 Answer

0
accepted

Trevor,

Looks like you don’t have the KeyReport library installed on your Arduino IDE. That is what the ‘KeyReport’ does not name a type error means in general. Here is more on the KeyReport class from Arduino http://playground.arduino.cc/Main/Keyboardgame

You should be able to find the KeyReport library on the Arduino site, but you may need to update to the latest IDE to get it working (since I believe it is a built in library specifically called for the Leonardo).

Let me know if that helps, and best of luck!

Respectfully,
Joseph Dattilo

Your Answer

One Response to “Arduino Leonardo trouble turning an Amiga 2000 keyboard into a PC compatible one”

  1. It sounds like you have a scope issue. Since there are so many, it seems like every function that you call is in a class that the main loop cannot see. So I think that you are most likely forgetting to include the header file for the class. Just a thought without seeing the code itself…

Leave a Reply