Added pull up/down functions to use the internal resistors

Uses resistors internal to the MCU.