Combining Analog and digital type input for AnalogPin