mirror of
https://github.com/arduino/Arduino.git
synced 2025-01-18 07:52:14 +01:00
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.
This commit is contained in:
parent
a33c93b194
commit
9491c1f308
@ -54,7 +54,7 @@ extern void pinMode( uint32_t ulPin, uint32_t ulMode )
|
|||||||
case OUTPUT:
|
case OUTPUT:
|
||||||
PIO_Configure(
|
PIO_Configure(
|
||||||
g_APinDescription[ulPin].pPort,
|
g_APinDescription[ulPin].pPort,
|
||||||
PIO_OUTPUT_1,
|
PIO_OUTPUT_0,
|
||||||
g_APinDescription[ulPin].ulPin,
|
g_APinDescription[ulPin].ulPin,
|
||||||
g_APinDescription[ulPin].ulPinConfiguration ) ;
|
g_APinDescription[ulPin].ulPinConfiguration ) ;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user