Introduction - If you have any usage issues, please Google them yourself
The program used to switch the amount of input, and display associated with the LED on port D, S1 ~ S8 are controlled Q1 ~ Q8, switching capacity 74HC165 input by using SPI mode, the debugger must pull out of the 8-bit code switch pulling to the appropriate position, that is eight LED port on the receiving PORTD