Im fairly new to this and im trying to use a 74HC165 and a 74HC595 to be able to control leds and relays over very few wires. i finally got it working using a example. The example code has a "tick" command im not familiar with. The code works but i was wanting to only make 1-4 turn off after i release the button on the 165 and add debounce to 5-8.
there has to be some simpler way to shiftIN and shiftOUT, this sketch isnt working. Im trying to have it when input is HIGH output is HIGH and when input is LOW output is LOW. This sketch is acting liking a switch, i have to bring it HIGH again to bring the output to LOW