.Num Property

Top  Previous  Next

Function:

Sets/returns the number of the currently selected ADC channel.

Type:

Enum (pl_adc_num, byte)

Value Range:

Platform-specific. See the list of pl_adc_num constants in the platform specifications.

See Also:

---

 


Details

ADC inputs are mapped to regular GPIO lines, and such mapping is platform-specific. For information see the pl_adc_num enum.

After changing the channel, discard the first result returned by adc.getdata.