Sat, 20 Oct 2018 13:23:15 +0200
Initial checkin brewboard
0 | 1 | /** |
2 | * @file calibration.h | |
3 | * @brief TFT screeen calibration | |
4 | */ | |
5 | #ifndef _CALIBRATION_H | |
6 | #define _CALIBRATION_H | |
7 | ||
8 | ||
9 | /** | |
10 | * @brief Set Touchscreen calibration values. | |
11 | * Values are for the default portrait mode, in this application | |
12 | * the screen is used in landscape mode. | |
13 | * @param xleft X left side (landscape bottom) | |
14 | * @param xright X right side (landscape top) | |
15 | * @param ytop Y top (landscape left) | |
16 | * @param ybottom Y botto (landscape right) | |
17 | */ | |
18 | int TS_set_calibration(int xleft, int xright, int ytop, int ybottom); | |
19 | ||
20 | /** | |
21 | * @brief Initialize for TFT calibration | |
22 | */ | |
23 | void Calibration_Init(void); | |
24 | ||
25 | /** | |
26 | * @brief Do the TFT calibration | |
27 | */ | |
28 | void Calibration_Loop(void); | |
29 | ||
30 | ||
31 | #endif |