Basically I cannot get the values to change when using INPUT_PULLUP even when I connect a wire to a pin that carries the 5v directly to it. So Pin 4 will print 1 for being off and 1 for being "on".
Second. If I use my analog pins, all pins will read roughly the same input on all the pins at the same time.
I made a simple test program:
int prevHighMilli = 0;
void setup() {
delay( 3000 ); // power-up safety delay
Serial.begin(9600); // This defines baud of serial connection
Serial.println("--- Start Serial Monitor SEND_RCVE ---");
pinMode(2, INPUT);
pinMode(4, INPUT_PULLUP);
pinMode(A0, INPUT);
pinMode(A4, INPUT);
}
void loop() {
unsigned long currentMillis = millis(); // grab current time
//if((unsigned long)(currentMillis - prevHighMilli) >= 1500) {
Serial.print("A0: ");
Serial.println(analogRead(A0));
Serial.print("A4: ");
Serial.println(analogRead(A4));
int sensorValue = digitalRead(2);
Serial.println(sensorValue);
int sensorValue4 = digitalRead(4);
Serial.println(sensorValue4);
Serial.println("\n");
prevHighMilli = millis();
//}
}