Interface to the AD-converter of the ATmega32, which allows to query the potentiometer and the photosensor of the board.   More...
   Interface to the AD-converter of the ATmega32, which allows to query the potentiometer and the photosensor of the board. 
       Device ids of available periphery connected to ADC channels. 
  | Enumerator | 
|---|
| POTI  | the potentiometer (rotation towards LEDs yields higher numbers)    | 
 | PHOTO  | the photosensor (brighter ambience yields higher numbers)       | 
 
                                     | int16_t sb_adc_read  |            ( |            ADCDEV  |            dev | ) |             |          
       
    Perform a 10-bit A/D conversion for a specific channel/device. 
 - Parameters
 -    
     | dev | id of a device connected to the ADC | 
   
     
 - Return values
 -    
     | >=0 | 10-bit result of the conversion  | 
     | -1 | invalid device id  |