Allow specifying pullup or pulldown when opening a pin