I am writting a keyboard emulator for the pic microcontroller. Unfortunately, after watching it on the oscilliscope, it is not transmitting the right data. The clock signal on B1 is working correctly, however, the actual data part is not. I've included this short snipet, and the entire program, so anyone can peruse my work. Thanks for any and all help.
for (i = 0; i