From f4747d8209ac624764b34f0f0197dd714dad5f9b Mon Sep 17 00:00:00 2001 From: "R. Steve McKown" Date: Tue, 6 Dec 2011 09:30:47 -0700 Subject: [PATCH] Use internal uc pull-ups for IO pins. This allows removal of the three external pull-up resistors in the circuit. --- buttons.h | 1 + 1 file changed, 1 insertion(+) diff --git a/buttons.h b/buttons.h index 3138ecc..39b96e1 100644 --- a/buttons.h +++ b/buttons.h @@ -19,6 +19,7 @@ * rocker switch positions. */ #define buttons_init() do { \ + nWPUEN = 0; /* enable weak pull-ups on PortB */ \ IOCBN4 = 1; \ IOCBN5 = 1; \ TRISB |= IN_MASK; \ -- 2.39.2