PaulStoffregen / PS2Keyboard

PS/2 Keyboard Library for Arduino
http://www.pjrc.com/teensy/td_libs_PS2Keyboard.html
147 stars 57 forks source link

Adding 'send' capability along with ability to determine send/receive state. #13

Open Fran-B opened 6 years ago

Fran-B commented 6 years ago

I added a public method to send a byte of information to the keyboard and wait for the response byte returned. The logic includes timeout protection and response status relative to said timeouts. While debugging things I ran into a problem and found it useful to be able to get the state of the keyboard I/O logic so I allowed the method I created to remain for future use.

Fran-B commented 6 years ago

I forgot to mention my thanks to Peter Hanlon pphanlon@bigpond.net.au for his June 2016 implementation that I used as the starting point for this implementation.