BEGV643A User Manual Ver.0
2
-
79
-
4-3-3-5 Touch function
Header file : touch.h, a2d.h
object file : touch.o, a2d.o
touchInit Function:
Initial Touch panel.
Syntax
void touchInit(
);
Parameters
None.
Return value
None.
touchGet Function:
to read touch data from touch panel
Syntax
uint8_t touchGet(
int *
pX,
int *
pY
);
Parameters
pX
to read X Coordinate from touch data
pY
to read Y Coordinate from touch data
Return value
TRUE
data of pX and pY is true
FALSE
data of pX and pY is false
touchDrawCalPoint Function:
to draw Calibration cross Coordinate on LCD
Syntax
uint8_t touchDrawCalPoint (
POINT* ptCal,
int
n
);
Parameters
ptCal
Calibration Coordinate.
n
Calibration
Coordinate
No.
Return value
None.
setCalibrationMatrix Function:
to set Calibration calculation matrix
Syntax
void setCalibrationMatrix(
POINT * ptDisplay,
POINT * ptTouch,
int
n
);
Parameters
ptDisplay
LCD reference Coordinate for calibration.
ptTouch
Touch Coordinate for calibration
n
Coordinate No. for calibration
Return value
None.
getDisplayPoint Function:
to change Touch Coordinate into LCD
Syntax
void getDisplayPoint(
int x,
int y,
int * pX,
int * pY
);
Parameters
x
Touch X Coordinate.
y
Touch Y Coordinate.
pX
LCD X Coordinate changed from Touch X Coordinate
pY
LCD Y Coordinate changed from Touch Y Coordinate
Return value
None.
Summary of Contents for BEGV643A Series
Page 20: ...BEGV643A User Manual Ver 01 20 3 1 MCU Pin Configuration Drawing 3 1 ATmega644p MCU...
Page 25: ...BEGV643A User Manual Ver 02 25...
Page 26: ...BEGV643A User Manual Ver 02 26 Accept terms to continue...
Page 27: ...BEGV643A User Manual Ver 02 27 Select folder to install and continue...
Page 28: ...BEGV643A User Manual Ver 02 28 Select features to install and continue...
Page 29: ...BEGV643A User Manual Ver 02 29 Click install to begin installation...
Page 30: ...BEGV643A User Manual Ver 02 30 Wait for seconds for installation...
Page 31: ...BEGV643A User Manual Ver 02 31 Click finish to exit the installation...
Page 33: ...BEGV643A User Manual Ver 02 33 Click I agree to continue Choose folder to continue...
Page 34: ...BEGV643A User Manual Ver 02 34 Choose components to install Wait for seconds for installation...
Page 42: ...BEGV643A User Manual Ver 02 42 2 Program editing window...
Page 43: ...BEGV643A User Manual Ver 02 43 3 I O view window 4 Message window 5 Toolbars...
Page 48: ...BEGV643A User Manual Ver 02 48 Good job Software burning is done...
Page 60: ...BEGV643A User Manual Ver 02 60 H line Half Cross dot Character Picture1 Picture2...
Page 64: ...BEGV643A User Manual Ver 02 64 Choose Include as File Search Path to continue...
Page 66: ...BEGV643A User Manual Ver 02 66...
Page 67: ...BEGV643A User Manual Ver 02 67 Note Adding into Obj...
Page 68: ...BEGV643A User Manual Ver 02 68...
Page 69: ...BEGV643A User Manual Ver 02 69 Note choose Linker Options...
Page 70: ...BEGV643A User Manual Ver 02 70 Note key in Wl u vfprintf and then Add...
Page 86: ...BEGV643A User Manual Ver 02 86 END of BEGV643A User Manual...