ADC

Read()

Description

Reads the value from the selected channel among the 8 channels also specifies the mode to be 12 bit (MODE_12BIT) or 8 bit (MODE_8BIT)

Syntax

Analog.Read(channelNumber , MODE )

Parameters

channelNumber: the number of channel to retrieve data from we have 8 channels numbered from 0 to 7 (byte)

MODE: MODE_12BIT or MODE_8BIT

Returns

the ADC reading value depending on the mode 12 bit or 8 bit (uint16_t)

  

Share |