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
|
Direct: |
"RDAUX" |
|
Arduino: |
int readAux(void)
|
|
C: |
int Digole_readAux(void) |
none
integer value of converted voltage.
Example (Arduino):
int v=mydisp.readAux(); //read the voltage on AUX pin
serial.writeString("RDAUX"); //start reading the AUX pin
int c = serial.read1(); //read 2 bytes and assemble to int
c <<= 8;
c += serial.read1();
| Version | Description |
|---|---|