I was testing the digital pins on the Due by the digitalRead() function and realized that unless i pull the pin low by connecting it to ground it is considered HIGH. I analogRead() the digital pins and they are showing ~217 out of 1023. My test code is shown below.
I am concerned that this will affect the my readings of the digital pins causing some readings to be HIGH when they aught to be LOW. Should i pull the pins down or leave them?
But is it not a big inconvinience that the pins default to high?
If I use pinMode(pin, OUTPUT); I also have to use digitalWrite(pin, LOW);
And when programming all pins turns to High level outputs, and if the programming is interrupted or fails the pins remain in high state.
I might be wrong but it feels better if the outputs would default to LOW.