discoverpixy
screen_calibrate.h
Go to the documentation of this file.
1 /**************************************************************************************************************************************
2 * Project: discoverpixy
3 * Website: https://github.com/t-moe/discoverpixy
4 * Authors: Aaron Schmocker, Timo Lang
5 * Institution: BFH Bern University of Applied Sciences
6 * File: common/touch/screen_calibrate.h
7 *
8 * Version History:
9 * Date Autor Email SHA Changes
10 * 2015-06-01 timolang@gmail.com 06227da Added calibrate screen (WIP). fixed bug in emulator drawing.
11 * 2015-06-01 timolang@gmail.com eb573bc Finalized calibration. Fixed a bug in screen module.
12 *
13 **************************************************************************************************************************************/
14 
15 #include "screen.h"
16 
21 
22 
28 
29 
36 
39 
40 
41 //TODO: Move this define to a common accessible, but private header file (they are used by screen_calibrate.c and touch.c)
42 #define CCENTER 20 //Pixel Distance from Sides for Calibration Cross
43 #define CLENGTH 10 //Length of the Calibration Cross Lines
44 #define CBEGIN (CCENTER-CLENGTH/2)
45 #define CEND (CCENTER + CLENGTH/2)
46 #define DWIDTH 320 //TODO: move define to tft module or make a function out of it
47 #define DHEIGHT 240 //TODO: move define to tft module or make a function out of it
SCREEN_STRUCT * get_screen_calibrate()