-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathURTouchCD.h
28 lines (27 loc) · 1.13 KB
/
URTouchCD.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// URTouchCD.h
// ----------
//
// Since there are slight deviations in all touch screens you should run a
// calibration on your display module. Run the URTouch_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-3.2S.
// They MIGHT work on your 320x240 display module, but you should run the
// calibration sketch anyway. If you are using a display with any other
// resolution you MUST calibrate it as these settings WILL NOT work.
#define CAL_X 0x00378F66UL
#define CAL_Y 0x03C34155UL
#define CAL_S 0x000EF13FUL
// ulong calx = 0x0204081DUL;
// ulong caly = 0x01E6879FUL;
// ulong cals = 0x0013F0EFUL;
//#define CAL_X 0x0204081DUL
//#define CAL_Y 0x01E6879FUL
//#define CAL_S 0x0013F0EFUL