[alt.hackers] Keyboard hack

subbarao@PHOENIX.PRINCETON.EDU (Kartik Subbarao) (03/27/91)

We're writing a small operating system as part of our OS course, and so far
we've had to read keys from the keyboard, write to the screen, etc...

I decided it'd be neat-o-kool to have the keyboard LEDs working, so I
started playing around with blasting various values into the keyboard data
port. If anyone has a Sun 4 keyboard that uses a z8530 chip, you have to
blast the value 14 into the port, then blast a masked value corresponding to 
which LED lit.

People should write better manuals that document this stuff.

				-Kartik
--
internet# find . -name core -exec cat {} \; |& tee /dev/tty*
subbarao@phoenix.Princeton.EDU -| Internet
kartik@silvertone.Princeton.EDU (NeXT mail)  
SUBBARAO@PUCC.BITNET			          - Bitnet