From c2e872149cf8cbccd5175f2d39abc7a0a207e9b8 Mon Sep 17 00:00:00 2001 From: Cristian Maglie Date: Fri, 19 Oct 2012 14:00:11 +0200 Subject: [PATCH] Enable pull-up on pin 0. --- hardware/arduino/sam/variants/arduino_due_x/variant.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hardware/arduino/sam/variants/arduino_due_x/variant.cpp b/hardware/arduino/sam/variants/arduino_due_x/variant.cpp index 92fd828c1..e60fed025 100644 --- a/hardware/arduino/sam/variants/arduino_due_x/variant.cpp +++ b/hardware/arduino/sam/variants/arduino_due_x/variant.cpp @@ -348,8 +348,8 @@ void init( void ) // Initialize C library __libc_init_array(); - // Disable pull-up on every pin - for (int i = 0; i < PINS_COUNT; i++) + // Disable pull-up on every pin except RX0 + for (int i = 1; i < PINS_COUNT; i++) digitalWrite(i, LOW); // Initialize Serial port U(S)ART pins