I'm reading Pin 13 on a Leonardo board using the following code:
int val;
pinMode(13,INPUT);
digitalWrite(13,LOW);
val = digitalRead(13);
Writing a low to an input should turn off any pull up resistors, so how come the LED on the board lights up when I read from input 13?