LCDWIKI TOUCH Lib Manual
User Manual:
Open the PDF directly: View PDF .
Page Count: 6
Download | |
Open PDF In Browser | View PDF |
LCDWIKI TOUCH lib Manual 1.Introduction The LCDWIKI TOUCH lib is the hardware level lib of the touch screen modules ,it need be paired with the KBV lib and the GUI lib for each display modules. The LCDWIKI TOUCH lib use 4-wire spi to communicate. Run the touch screen calibration program and put the calibration parameter into the file of cali_para.h after the calibration has passed. 2.FUNCTIONS DECLARATION definiens LCDWIKI_TOUCH(int8_t tcs, int8_t tclk, int8_t tout, int8_t tdin, int8_t tirq) function The class constructor when using display modules which has touch screen parameters tcs : the touch screen chip selection pin in Development board tclk : the clock pin of spi bus in Development board tout : the read pin of spi bus in Development board tdin : the write pin of spi bus in Development board rd tirq : the interrupt pin of touch screen in Development board rd returned value None notes None definiens void TP_Init(uint8_t r,uint16_t w, uint16_t h) function Initialize the touch screen modules parameters r : the display rotation of LCD screen w : the width of LCD screen h : the height of LCD screen returned value None notes None definiens function parameters uint8_t TP_Scan(uint8_t mode) Scan the interrupt of touch screen m:0- scan screen coordinate 1- scan physical coordinates returned value notes The state of touch screen None definiens function parameters void TP_Write_Byte(uint8_t data) Write a byte data to the touch IC data:the data to be writen returned value None notes None definiens function parameters returned value notes uint16_t TP_Read_ADC(uint8_t cmd) Read the ADC value from the touch IC cmd:the command of read the ADC value the ADC value of read None definiens function uint16_t TP_Read_XY(uint8_t xy) Read the ADC value of x coordinate or y coordinate from the touch IC parameters returned value xy: the command of read the ADC value the ADC value of read notes definiens function None uint8_t TP_Read_Coordinate(uint16_t *x, uint16_t *y) Read the ADC value of x coordinate and y coordinate from the touch IC parameters x: the address of touch x coordinate y: the address of touch y coordinate returned value 1-read successfully 0-read failed notes definiens function None uint8_t TP_Read_Coordinate2(uint16_t *x, uint16_t *y) Read the ADC value of x coordinate and y coordinate from the touch IC for reducing error parameters x: the address of touch x coordinate y: the address of touch y coordinate returned value 1-read successfully 0-read failed notes None definiens function parameters void TP_Set_Rotation(uint8_t val) Set the rotation of touch screen val:the value of rotation returned value None notes None definiens function parameters returned value notes uint8_t TP_Get_Rotation(void) const get the rotation of touch screen None the value of rotation for reading None definiens void TP_Set_State(uint8_t val) function Set the state of touch screen parameters val: the state of touch screen returned value None notes None definiens function parameters returned value notes uint8_t TP_Get_State(void) const get the state of touch screen None the value of state for reading None
Source Exif Data:
File Type : PDF File Type Extension : pdf MIME Type : application/pdf PDF Version : 1.6 Linearized : Yes Encryption : Standard V4.4 (128-bit) User Access : Print, Annotate, Fill forms, Extract, Print high-res Author : pc Create Date : 2018:11:03 14:22:56+08:00 Modify Date : 2018:11:03 14:26:55+08:00 Language : zh-CN Tagged PDF : Yes XMP Toolkit : Adobe XMP Core 5.6-c015 81.157285, 2014/12/12-00:43:15 Format : application/pdf Creator : pc Creator Tool : Microsoft® Word 2010 Metadata Date : 2018:11:03 14:26:55+08:00 Producer : Microsoft® Word 2010 Document ID : uuid:be5c82a9-b688-4610-9b33-878379ad10c5 Instance ID : uuid:9160c136-a74d-4ece-8486-5a4237caba37 Page Count : 6EXIF Metadata provided by EXIF.tools