Hi,
I have an Arduino UNO and this sample sketch:
void setup(){
pinMode(4, INPUT);
pinMode(13, OUTPUT);
Serial.begin(9600);
}
void loop(){
if(digitalRead(4)==HIGH){
digitalWrite(13, HIGH);
}else{
digitalWrite(13, LOW);
}
Serial.println(digitalRead(4));
delay(100);
}
Is it normal that the UNO reads high input value on input 4 as soon as I connect a wire to the input? The wire is floating, not connected to anything!
Did I break the atmega??? :-[