36 lines
1.2 KiB
C
36 lines
1.2 KiB
C
// UTouchCD.h
|
|
// ----------
|
|
//
|
|
// Since there are slight deviations in all touch screens you should run a
|
|
// calibration on your display module. Run the UTouch_Calibration sketch
|
|
// that came with this library and follow the on-screen instructions to
|
|
// update this file.
|
|
//
|
|
// Remember that is you have multiple display modules they will probably
|
|
// require different calibration data so you should run the calibration
|
|
// every time you switch to another module.
|
|
// You can, of course, store calibration data for all your modules here
|
|
// and comment out the ones you dont need at the moment.
|
|
//
|
|
|
|
// These calibration settings works with my ITDB02-2.2.
|
|
// They MIGHT work on your display module, but you should run the
|
|
// calibration sketch anyway.
|
|
//#define CAL_X 0x039281CCUL
|
|
//#define CAL_Y 0x03A2C1DEUL
|
|
//#define CAL_S 0x000AF0DBUL
|
|
|
|
// for the 2.4in screen
|
|
#define CAL_X 0x03CBC0C4UL
|
|
#define CAL_Y 0x03D901BEUL
|
|
#define CAL_S 0x000EF13FUL
|
|
|
|
// for the 2.4in v2.1 screen
|
|
//#define CAL_X 0x00828201UL
|
|
//#define CAL_Y 0x00944162UL
|
|
//#define CAL_S 0x000EF13FUL
|
|
|
|
//#define CAL_X 0x00978201UL
|
|
//#define CAL_Y 0x00DC42E7UL
|
|
//#define CAL_S 0x000EF13FUL
|