I'm reading the tutorial for using shift registers 74HC595.
The first code sample I understood without any issue, but i'm struggling to understand the second code sample.
One of the instructions is bugging me!
I'm not able to understand what bitWrite does (and the comment on the program is not helping me...)
// turn on the next highest bit in bitsToSend:
bitWrite(bitsToSend, whichPin, whichState);
I've already looked at the arduino reference (http://arduino.cc/en/Reference/BitWrite) but that didn't make it either...
Can anyone explain me in more detail?
Thanks!