Hello! Where having a problem in varying the output in serial monitor without closing it. We want to have single output coming from the Arduino, we tried to put the function on how to avoid the loop and to have a single output, but using this we can't vary the value in the monitor. How can we change the output without the serial monitor repeating it and display it once?
Here's the code
//Pulse the latch pin: //set it to 1 to collect parallel data digitalWrite(latchPin, 1);
//set it to 1 to collect parallel data, wait delayMicroseconds(20);
//set it to 0 to transmit data serially digitalWrite(latchPin, 0);
//while the shift register is in serial mode //collect each shift register into a byte //the register attached to the chip comes in first
switchVar1 = shiftIn(dataPin, clockPin);
//Print out the results. //leading 0's at the top of the byte //(7, 6, 5, etc) will be dropped before //the first pin that has a high input //reading
//delay so all these print satements can keep up.