prototyping code to show pin status