Why don't you download the 74HC165 Example code from the same psge where you ordered them? (down at the bottom of the page)