public example from Adafruit_BBIO.GPIO