Link to home
Start Free TrialLog in
Avatar of sidwelle
sidwelleFlag for United States of America

asked on

Arduino keyboard event

Can I read each keyboard key as it is pressed ?

I find that Serial.read() waits for a carriage return before Serial.available() is > 0


Is there another command that will allow the code to read each key as it is entered ?


Avatar of Dr. Klahn
Dr. Klahn

Serial.read inherits from the Stream library, so you might try Stream.read or Stream.peek.

Also have a look at .readBytes in both libraries.
ASKER CERTIFIED SOLUTION
Avatar of mccarl
mccarl
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of sidwelle

ASKER

mccarl, starting think your right.

Can you suggest an emulator that is comes with a windows box, or do I need to go out and download one.
Either way, can you suggest something light and free ?

Thanks

No, I don't think Windows comes with anything "out of the box". You will have to find and download something. I would start with Putty. I haven't really done a lot of "serial" stuff for a while, but I remember using Putty for some stuff that I've done in the past. (As well as using it everywhere for SSH terminal access)
I did finally think of the Terminal Emulation that we used at my previous job, it was 'HyperTerminal' by HillGrave.
I did find a copy to download and it does work, but needs some config and the trial runs out in 30 days.

Downloaded Putty from its site and installed. Looks a lot better.
I need to do some more work on it, but it may be the way to go.

Wow, HyperTerminal! That brings back some long forgotten memories ๐Ÿ˜…

Great news, it sounds like you are making progress. Let us know if you need anything else.
FYI,ย  the write up on 'HyperTerminal' stated that it was distributed with windows up until Win'7
Then they went to the more improved product 'HyperAccess' ย <-- Even more expensive !