Skip to content

Commit ede6dd2

Browse files
mtaylerfacchinm
authored andcommitted
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.
1 parent 0e1486d commit ede6dd2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/arduino/wiring_digital.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ extern void pinMode( uint32_t ulPin, uint32_t ulMode )
5454
case OUTPUT:
5555
PIO_Configure(
5656
g_APinDescription[ulPin].pPort,
57-
PIO_OUTPUT_1,
57+
PIO_OUTPUT_0,
5858
g_APinDescription[ulPin].ulPin,
5959
g_APinDescription[ulPin].ulPinConfiguration ) ;
6060

0 commit comments

Comments
 (0)