Show Posts
Pages: [1]
1  Products / Arduino Due / Re: pinMode sets OUTPUT pins high by default? on: August 29, 2013, 03:56:08 pm
Thanks, this was truly helpful smiley
2  Products / Arduino Due / Re: pinMode sets OUTPUT pins high by default? on: March 28, 2013, 01:22:17 am
My bad, resistance was 1k; I confused this with the value of the internal (100k) pull-up.
3  Products / Arduino Due / Re: pinMode sets OUTPUT pins high by default? on: March 28, 2013, 12:15:42 am
Any word?

Too bad this isn't consistent with the AVR-based Arduino environment, but maybe there's an easy way to get the Due to set pins to LOW instead of HIGH on init?

Thanks!
4  Products / Arduino Due / pinMode sets OUTPUT pins high by default? on: March 17, 2013, 07:52:59 pm
I apologize if there's a straightforward explanation/workaround for this (I searched but couldn't find any).

On the Due + Arduino 1.5.1, if I designate any digital pin as OUTPUT, that pin will also be set HIGH.

ex.

void setup() {
  // put your setup code here, to run once:
  pinMode(25, OUTPUT); 
}

On 2 separate Dues, I set an LED + 100k resistor to pin 25, which lit up on initialize. When commenting out the above, the LED remained dark.

I also ran the same code on a Mega and Duo and saw the opposite result, i.e. the pin was kept LOW after the pinMode call and the LED remained dark.

Is there any documentation where this is explained that I missed?
Is there a way to set the default on initialize for Due OUTPUT pins to LOW??

Thanks!

Pages: [1]