adc_setup()


Configuring designated ADC channel

Description

void adc_setup(int $adc_id, int $ch)

Parameters

Return Value

none

Example

<?php
include "/lib/sd_340.php";
adc_setup(0, 0);  // Setting ADC0 to channel 0
adc_setup(1, 5);  // Setting ADC1 to channel 5
?>

See also