PS2Keybord Ext using Teensy3.0

Hi everyone,
I'm trying to use one of the PS2 keyboard libraries with extended functionality on my teensy 3.0. I'm not having any problems running my code with the regular PS2Keyboard library however with the below libraries I am not able to compile or run the code. I posted the errors under each version below:

PS2KeyboardExt
http://playground.arduino.cc/Main/PS2KeyboardExt

When I follow the directions listed in the link and copy the file into my library (I believe this is located under documents/arduino/libraries/PS2Keboad) the code cannot compile. Even without adding the additional include code for the Ext file I receive an "error compiling" and am unable to compile.

PS2KeyboardExt2
http://playground.arduino.cc/Main/PS2KeyboardExt2

When I replace my .h and .cpp library with these Ext2 libraries my code errors out and pulls up a huge number of errors unit8_t.

If anyone has successfully made these libraries work with the Teensy I would greatly appreciate your input. If possible I would much prefer having the added functionality of the Ext2.

Please, post here what errors are you getting.

Here's the error code. I moved the library file to my program files folder. Any help or recommendations you have would be great.

Arduino: 1.6.5 (Windows 8.1), TD: 1.24, Board: "Teensy 3.0, Keyboard + Mouse + Joystick, 96 MHz (overclock), US English"

Build options changed, rebuilding all

In file included from C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/WProgram.h:15:0,
from C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/Arduino.h:1,
from test.ino:18:
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/wiring.h:132:14: error: conflicting declaration 'typedef bool boolean'
typedef bool boolean;
^
In file included from test.ino:1:0:
C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\PS2Keyboard/PS2Keyboard.h:58:17: error: 'boolean' has a previous declaration as 'typedef uint8_t boolean'
typedef uint8_t boolean;
^
Error compiling.

Edit: Above is now correct error code.

Open PS2Keyboard.h and delete those lines:

typedef uint8_t boolean;
typedef uint8_t byte;

And test it again!

giova014:
Open PS2Keyboard.h and delete those lines:

typedef uint8_t boolean;

typedef uint8_t byte;




And test it again!

Thanks for getting back to me! I tried this and got a few new error codes. Could there be any other reason this library doesn't seem to work as is for me? (FYI - I just removed the full file extension in the error since this is on a different PC than before and I didn't want to confuse anyone)

Here's the error:

Arduino: 1.6.5 (Windows 7), TD: 1.24, Board: "Teensy 3.1, Keyboard + Mouse + Joystick, 96 MHz optimized (overclock), US English"

In file included from TEST_KBEXT2.ino:1:0:
C:\\\PS2Keyboard/PS2Keyboard.h:74:5: error: 'byte' does not name a type
byte m_charBuffer;
^
C:\\\PS2Keyboard/PS2Keyboard.h:107:5: error: 'byte' does not name a type
byte read();
^
C:\\\PS2Keyboard/PS2Keyboard.h:118:5: error: 'byte' does not name a type
byte read_extra();
^
TEST_KBEXT2.ino: In function 'void loop()':
TEST_KBEXT2:34: error: 'class PS2Keyboard' has no member named 'read_extra'
TEST_KBEXT2:35: error: 'class PS2Keyboard' has no member named 'read'


'class PS2Keyboard' has no member named 'read'

Open the PS2Keyboard.h

and after this line (at the beginning of the file):

#define PS2Keyboard_h

add:

#include <Arduino.h>

I still think you'd be far better off asking a question related to the Teensy 3.0 in the PJRC Teensy Forum.

Pete

Thank you, I'll try posting this question over there.

I posted it at PJRC as well, but I'm wondering if anyone has had luck using this PS2KeyboardExt using a regular arduino such as the Uno? If so we're there any steps not mentioned on the website that had to be taken to make this library function?

Bump. Just wondering if anyone has had luck using this PS2KeyboardExt2 with a regular arduino board?