Am I correct to think that when I use the digitalWrite function to set a pin to LOW I can use that pin the same as I would use one of the Ground pins?
I have a NC limit switch connected to pins 3 and 4. If I set 3 to INPUT_PULLUP and 4 to OUTPUT. Then digitalWrite (4, LOW). This would be a correct use of pins 3 & 4 for a NC limit swtich?