Is it possible to check the state of an output pin without using an additional variable? ie. getState(outputPin);
Thanks for any help,
Is it possible to check the state of an output pin without using an additional variable? ie. getState(outputPin);
Thanks for any help,
I guess you would have to look at the registers inside the cpu.
Just do a digitalRead(pin),
even though the pin is set to be an output it will read the value in the latch register.