I've tried what Melanie mentioned, but could never get it to work properly when changing
Vref with another I/O-pin.