adc_setup()


指定ADC的频道设定

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