Hi! I have an Arduino Due for a few days and I think its inputs malfunctioning.
When I was testing this simple code WITHOUT ANY INPUT CONNECTED:
void setup() {
** pinMode(42,INPUT);**
** Serial.begin(9600);**
** }**
** void loop() {**
** Serial.print(digitalRead(42));**
** delay(1000);**
** }**
This is the result (on the input 42 in this example, but I tested it on other inputs analogs and digitals and I had the same result)
111111111000000111111000111111111111100000000000111111.......
It is because my Arduino Due have a malfunctioning? I have not got any connection on this pin, and I tested it with a little button not preessed and I had the same result, why is it? is it normal?