File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
hardware/arduino/sam/variants/arduino_due_x Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -348,8 +348,8 @@ void init( void )
348
348
// Initialize C library
349
349
__libc_init_array ();
350
350
351
- // Disable pull-up on every pin except RX0
352
- for (int i = 1 ; i < PINS_COUNT; i++)
351
+ // Disable pull-up on every pin
352
+ for (int i = 0 ; i < PINS_COUNT; i++)
353
353
digitalWrite (i, LOW);
354
354
355
355
// Initialize Serial port U(S)ART pins
@@ -358,6 +358,7 @@ void init( void )
358
358
g_APinDescription[PINS_UART].ulPinType ,
359
359
g_APinDescription[PINS_UART].ulPin ,
360
360
g_APinDescription[PINS_UART].ulPinConfiguration );
361
+ digitalWrite (0 , HIGH); // Enable pullup for RX0
361
362
PIO_Configure (
362
363
g_APinDescription[PINS_USART0].pPort ,
363
364
g_APinDescription[PINS_USART0].ulPinType ,
You can’t perform that action at this time.
0 commit comments