Read the voltage on the AUX pin

Description

 Use the MCU internal A/D module to convert the voltage on AUX pin and send the result to serial port. More detail please refer to: TSC2046

For display equipt with touch panel only

Usage:

Direct:

"RDAUX"

Arduino:

int readAux(void)

C:

int  Digole_readAux(void)

Parameters:

none

Return:

integer value of converted voltage.

Example (Arduino):

int v=mydisp.readAux();  //read the voltage on AUX pin

Example(direct)

serial.writeString("RDAUX"); //start reading the AUX pin

int c = serial.read1(); //read 2 bytes and assemble to int
c <<= 8;
c += serial.read1();
 

Changelog

Version Description
   

See Also