Added pinStatus function, and accompanying pin enum