Show Posts
Pages: 1 [2]
16  General Category / General Discussion / Parallax "PS/2 Mini-Keyboard" on: April 03, 2011, 08:17:20 am
Hello,     Has anyone else tried interfacing this keyboard with Arduino? If so I'd like to hear about their experience.
I could read the key codes it puts out "right out of the box", but there are some serious problems with them. Most serious is that there are eight pairs of keys that give the same code e.g. both the '[' key and the 'T' key output a 0x74 . None of the keys send a Break code, and the codes sent do not follow PS/2 protocol.
  Parallax has a disclaimer in their description of the product saying that it is "designed for use with the Parallax Propeller Chip" but I can't see how any host could distinguish between keys that send the same key code. What am I missing here?
17  Using Arduino / Programming Questions / Re: Passing String objects as parameters to a function on: March 31, 2011, 03:47:28 pm
Thanks a bunch. That works.
Your reply has got to be the all-time briefest successful reply to a query... one character long! No one can beat that. It is an atom of language.
Gives new meaning to,  "Let me give you a "bit" of advice. smiley-grin
18  Using Arduino / Programming Questions / Passing String objects as parameters to a function on: March 31, 2011, 01:37:03 pm
Hello All,
         I am a newbie to C. All I know about it has come from working with Arduino. This is my current hang-up, on which I have worked for hours.
I want to be able to pass alphanumeric strings in the form of String objects to a function which does some formatting on it and passes it back in the formatted state. I want to be able to call this function from various points in the sketch with Stings of various names.  I'm sure this can be done but I can't figure out the syntax.  Basically it would look like this....

Code:
String MyString = "some alphanumeric text";

void loop(){
    format_string(MyString);
}

void format_string (String anyString){
   //do some formatting
}

I'd appreciate any help.
19  Using Arduino / Programming Questions / Re: Problem <include>ing PS2Keyboard library on: March 29, 2011, 06:14:12 am
Hoo-ray !!!! I found the solution to the problem.   The .h and .cpp files were inside a folder named PS2Keyboard in the PS2Keyboards library. When I took them out all was well.  Thanks for replying.
20  Using Arduino / Programming Questions / Re: Problem <include>ing PS2Keyboard library on: March 29, 2011, 05:50:46 am
After reinstalling the IDE, which includes the PS2Keyboard library, I immediately tried including it in a blank sketch with no effect. For me that ruled out the possibility that I had corrupted the files. Has no one else had this problem?
21  Using Arduino / Programming Questions / Re: Problem <include>ing PS2Keyboard library on: March 29, 2011, 05:18:47 am
I am using Arduino 0022 and Windows XP. The PS2Keyboard files are in Program Files/arduino-0022/libraries/PS2Keyboard
22  Using Arduino / Programming Questions / Problem <include>ing PS2Keyboard library on: March 29, 2011, 04:38:23 am
I've tried everything I can think of to include the PS2Keyboard library in a sketch, even to reinstalling the IDE. When I select Sketch/Import Library/PS2Keyboard, nothing happens, unlike the other libraries.  If I type "#include <PS2Keyboard.h>" at the head of my sketch I will get a
" 'PS2Keyboard' does not name a type"  compile error. The PS2Keyboard files in the library directory all seem to be present and in order. I've read everything I can find on the subject and tried the latest PS2Keyboard.h and PS2Keyboard.cpp files from the Playground without effect.
As you can tell I'm a "babe in the woods" here. Can you help me??
Pages: 1 [2]