Reverting back to using own core. Need analogInputToDigitalPin().