some convenience functions for IO pins