This file defines the aio interface for libmraa
#include "mraa.hpp"
int main ()
{
    uint16_t adc_value;
    if (a0 == NULL) {
    }
    for(;;) {
        fprintf(stdout, "ADC A0 read %X - %d\n", adc_value, adc_value);
    }
}
 
Aio Constructor, takes a pin number which will map directly to the board number
- Parameters
 - 
  
    | pin | channel number to read ADC inputs  | 
  
   
 
 
Read a value from the AIO pin. By default mraa will shift the raw value up or down to a 10 bit value.
- Returns
 - The current input voltage. By default, a 10bit value 
 
 
 
Set the bit value which mraa will shift the raw reading from the ADC to. I.e. 10bits 
- Parameters
 - 
  
    | bits | the bits the return from read should be i.e 10  | 
  
   
- Returns
 - mraa result type 
 
 
 
Gets the bit value mraa is shifting the analog read to.
- Returns
 - bit value mraa is set return from the read function 
 
 
 
The documentation for this class was generated from the following file:
- /var/lib/jenkins/workspace/mraa-doc-stable/api/mraa/aio.hpp