From: R. Steve McKown Date: Tue, 6 Dec 2011 16:30:47 +0000 (-0700) Subject: Use internal uc pull-ups for IO pins. X-Git-Tag: 1.0~58 X-Git-Url: https://oss.titaniummirror.com/gitweb?p=rgblamp.git;a=commitdiff_plain;h=f4747d8209ac624764b34f0f0197dd714dad5f9b Use internal uc pull-ups for IO pins. This allows removal of the three external pull-up resistors in the circuit. --- 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; \