Skip to content

Commit ce81146

Browse files
committed
Disable pull up resistor when using input on the Due
1 parent a24ecb5 commit ce81146

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

avrpins.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -825,7 +825,7 @@ MAKE_PIN(P33, CORE_PIN33_PORTREG, CORE_PIN33_BIT, CORE_PIN33_CONFIG);
825825

826826
// SetDirRead:
827827
// Disable interrupts
828-
// Enable the pull up resistor
828+
// Disable the pull up resistor
829829
// Set to INPUT
830830
// Enable PIO
831831

@@ -846,7 +846,7 @@ public: \
846846
} \
847847
static void SetDirRead() { \
848848
baseReg->PIO_IDR = pinMask ; \
849-
baseReg->PIO_PUER = pinMask; \
849+
baseReg->PIO_PUDR = pinMask; \
850850
baseReg->PIO_ODR = pinMask; \
851851
baseReg->PIO_PER = pinMask; \
852852
} \

0 commit comments

Comments
 (0)