I have a simple program which works fine, but I cannot find if it is acceptable to use in this manner after reading a lot of articles titled "XX ways to kill your arduino".
For simplicity sake, what I have done is set up an output pin (which defaults to LOW condition) and a input pin which has been set to pullup mode.
These two pins are now connected via a momentary switch. (No resistor)
Input pin is normally HIGH, due to the internal pull up resistor in the arduino.
When the switch is depressed the input pin is brought LOW by the output pin.
All references and guides that I have read say to either set output pin high, or hook up to a 5V supply and run a switch with a resistor, but the method I have used has been done to keep unnecessary current draw down to a minimum.
Obviously if i switched my output pin high it would short out between the two pins and destroy them, but are there any reasons why I shouldn't keep with the way I have done it?