analogSetRef()

Set the analog to digital conversion reference voltage.

Syntax


AnalogSetRef(unsigned char mode, unsigned long voltage);

mode
The analog reference mode:

  • 0 - Default
  • 1 - Internal
  • 2 - External

voltage
The desired analog reference voltage in micro volts.

Returns


int status