I have a micro limit switch on analog 0 pin which uses:
pinMode(A0, INPUT);
digitalWrite(A0, HIGH);
I'm wondering if instead of those 2 lines I should be using:
pinMode(A0, INPUT_PULLUP);
Is that the newer method to use which does the same thing basically?