Does pin 5 or pin 6 use more power if they're just being used as a signal to an external device?
pinMode(5, INPUT_PULLUP); pinMode(6, OUTPUT); digitalWrite(6, HIGH);
EDIT: Thanks to some links below, I hopped thru a series of threads until I found the website www.gammon.com.au/power which did tests with a 328 and found the following results with the pins disconnected (which is different than my question but seems relevant nonetheless):
- All pins as outputs, and LOW: 0.35 µA.
- All pins as outputs, and HIGH: 1.86 µA.
- All pins as inputs, and LOW (in other words, internal pull-ups disabled): 0.35 µA (same as before).
- All pins as inputs, and HIGH (in other words, internal pull-ups enabled): 1.25 µA.