This is a slightly modified version of the keyboard driver included with the Propeller Tool Rather than being passed the pin numbers of the clock and data pins the 1st even pin number of the group of pins used is passed see the comments in the source