Apologies if this is obvious but as a newbie I am struggling.
I am making a project to read a series of temperatures and display whether they are above or below target by the on/off state of a series of LED’s. To reduce the number of output I plan to use a 74HC595.
The simple test is as follows
// series of decisions on which LEDs to light
else if (tempState1<23.00)
//Repeat for eight sensor incrementing from 0 to 7
//The ShftOut11 example then hasthe following
// shift out the bits:
shiftOut(dataPin, clockPin, MSBFIRST, numberToDisplay);
//take the latch pin high so the LEDs will light up:
Should I use ‘bitSet’ rather than ‘bitWrite’ and what does ‘numberToDisplay’ represent.
Any help gratefully received.