Little-Wire
Functions
ADC

Functions

unsigned int littleWire::analogRead (unsigned char channel)

Detailed Description

Analog to Digital Converter Function


Function Documentation

unsigned int littleWire::analogRead ( unsigned char  channel)

Read analog voltage. Analog voltage reading from ADC_PIN3 isn't advised (it is a bit noisy) but supported. Use it at your own risk.
For more about internal temperature sensor, look at the Attiny85 datasheet.

Parameters:
channelSource of ADC reading (ADC_PIN2 , ADC_PIN3 or ADC_TEMP_SENS)
Returns:
10 bit ADC result with reference to 5V
 All Classes Functions