gpio stub helper to stay DRY on tests.