Shop OBEX P1 Docs P2 Docs Learn Events
PS/2 Keyboard Input — Parallax Forums

PS/2 Keyboard Input

JonnyMacJonnyMac Posts: 9,215
edited 2008-08-12 23:39 in General Discussion
The Propeller-heads shouldn't be the only ones to have fun with PS/2 keyboards. Today one of Parallax's cut little PS/2 breadboard adapters arrived so I did a bit of a web search and came up with a simple SX/B test program for it. The emphasis here is on simple. The function, GET_KEY, kind of works like the inline SERIN... it blocks until a key is pressed (or released). The routine checks for extended and break codes and will set flags accordingly.

This is just a first go but, perhaps, it will inspire others to give it a try a come up with a cleaner, more sophisticated (e.g. parity check) version.

Comments

Sign In or Register to comment.