Page 1 of 1

include keyboard.h file

Posted: Thu Sep 22, 2016 1:32 pm
by Tok_Tok
Hello,

I'm trying to upload the controller file for the teensy to an Arduino Pro mini because I had one laying around. But I can't seem to get past this error:

Code: Select all

Game_Boy_Zero:38: error: 'Keyboard' not found. Does your sketch include the line '#include <Keyboard.h>'?
   Keyboard.begin();
How can I solve this? I already tried to include the suggested code in the sketch: #include <Keyboard.h> but that didn't work.

Re: include keyboard.h file

Posted: Thu Sep 22, 2016 2:37 pm
by myPiZero
You can't use an Arduino pro mini. The pro mini has a Atmega328 micro-controller, and the pro micro and teensy have Atmega32u4, which can be used as a USB HID (i.e. keyboard).

Re: include keyboard.h file

Posted: Fri Sep 23, 2016 12:32 am
by Tok_Tok
Ah oke thank you! I was breaking my head over this..

I will get a teensy then :)

Re: include keyboard.h file

Posted: Fri Sep 23, 2016 12:49 am
by myPiZero
You can buy an Arduino pro micro, it is cheaper.
I made a sketch for it, here.

Re: include keyboard.h file

Posted: Fri Sep 23, 2016 1:02 am
by Tok_Tok
Thanks that saves some money. I think the arduino hardware is pretty expensive.. Looking at the Raspberry Pi Zero only costing 4 dollars which can run an entire OS.