On two of my Arduino Due, when connecting the pin 3.3V
to any digital inputs (37
,36
,35
,34
), no serial message nor LED_BUILTIN
is thrown as output, only the Test
message.
Digital Pins are set as INPUT
by default. Blink
works.
I have never connected any other thing on those pins, even 5V.
What I am missing?
void setup() {
Serial.begin(115200);
while(!Serial);
pinMode(LED_BUILTIN,OUTPUT);
Serial.print("Test");
}
void loop() {
if (digitalRead(37))
Serial.print("37");
if (digitalRead(36))
Serial.print("36");
if (digitalRead(35))
Serial.print("35");
if (digitalRead(34))
Serial.print("34");
digitalWrite(LED_BUILTIN,digitalRead(37));
}
INPUT
s by default (??).