Introduction - If you have any usage issues, please Google them yourself
USB: Keyboard
This code implements a USB keyboard, which you can use to control almost any PC or Mac software.
Example Application
The example program configures all Port B and Port D pins as inputs with pullup resistors. When any of these 16 pins is shorted to ground, 2 keystrokes are sent to the PC naming that pin.
An idle timeout is also implemented which send a spacebar keystroke after 8 seconds of inactivity.