From 9491c1f30814fff57e66b2e6c150a9eb165a6617 Mon Sep 17 00:00:00 2001 From: Tayler Mulligan Date: Wed, 10 Jun 2015 21:49:19 -0700 Subject: [PATCH] Defaults output pins to LOW on Due When a pin is designated as an output on the Arduino Due, the pin is set to a HIGH logic level. Changing the default pin state to LOW makes the behaviour correspond with AVR. --- hardware/arduino/sam/cores/arduino/wiring_digital.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hardware/arduino/sam/cores/arduino/wiring_digital.c b/hardware/arduino/sam/cores/arduino/wiring_digital.c index 7c958de8a..56039d03e 100644 --- a/hardware/arduino/sam/cores/arduino/wiring_digital.c +++ b/hardware/arduino/sam/cores/arduino/wiring_digital.c @@ -54,7 +54,7 @@ extern void pinMode( uint32_t ulPin, uint32_t ulMode ) case OUTPUT: PIO_Configure( g_APinDescription[ulPin].pPort, - PIO_OUTPUT_1, + PIO_OUTPUT_0, g_APinDescription[ulPin].ulPin, g_APinDescription[ulPin].ulPinConfiguration ) ;