public example from Adafruit_BBIO ADC