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.
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.
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.