Rabbit OP7100 User Manual Page 115

  • Download
  • Add to my manuals
  • Print
  • Page
    / 172
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 114
User’s Manual 109
Reads the current x,y coordinates of the touchscreen
PARAMETERS
xkey is a pointer to the x coordinate
ykey is a pointer to the y coordinate
mode is the mode of operation:
0 (RAW_MODE)—raw mode, returns touchscreen x, y coordinate's true raw data value
1 (CAL_MODE)—calibration mode, returns touchscreen x, y coordinates as normalized data values to
match the LCD display resolution
SEE ALSO
TsActive, TsScanState, TsXYBuffer, brdInit
This function returns the status of whether the touchscreen is being pressed or touched.
RETURN VALUE
0—touchscreen is not being pressed
1—touchscreen is being pressed
SEE ALSO
TsXYvector, TsScanState, TsXYBuffer, brdInit
This function processes the current state of the touchscreen. The results can then be read with the
TsXYBuffer function, which will return one of the following.
1. The current x,y location of where the touchscreen is being pressed
2. A value indicating that the touchscreen press has ended
3. A value of -1 to indicate no activity has occurred
NOTE: When this function is called, the information should be processed before calling
this function again to avoid losing the information.
SEE ALSO
TsXYvector, TsActive, TsXYBuffer, brdInit
void TsXYvector(int *xkey, int *ykey, int mode);
int TsActive(void);
void TsScanState(void);
Page view 114
1 2 ... 110 111 112 113 114 115 116 117 118 119 120 ... 171 172

Comments to this Manuals

No comments