| 
    
    
    Command | 
    
    SETUP(ADC) | 
   
  
    | 
    
      | 
    
  | 
   
  
    | 
    Description | 
    
    Setup the protocol for the 
    Analogue to Digital Convertors | 
       
    
    | 
    
      | 
    
  | 
   
  
    | 
    
    Syntax/Parameters | 
    
    setup( adc ){...} | 
   
  
    | 
    
      | 
    
  | 
     
  
    | 
    Options | 
       active=num;             //set none, ADC1, ADC2 or both 
   calib1=num;            //set value to use for calibration/scaling of ADC1 
   calib2=num;            //set value to use for calibration/scaling of ADC2 
   avg1=num;              //number of samples read and then averaged for ADC1 
   avg2=num;               //number of samples read and then averaged for ADC2 | 
   
  
    | 
    
      | 
    
  | 
   
  
    | 
    Example | 
    setup( adc ) 
    { 
    active=12;             //set none, ADC1, ADC2 or both 
    calib1=0.4;            //set value to use for calibration/scaling of ADC1 
    calib2=0.2;            //set value to use for calibration/scaling of ADC2 
    avg1=16;              //number of samples read and then averaged for ADC1 
    avg2=16;               //number of samples read and then averaged for ADC2 
    } | 
   
  
    | 
    
      | 
    
  | 
   
   
 |