diff -r 000000000000 -r b74b0e4902c3 main/calibration.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main/calibration.h Sat Oct 20 13:23:15 2018 +0200 @@ -0,0 +1,31 @@ +/** + * @file calibration.h + * @brief TFT screeen calibration + */ +#ifndef _CALIBRATION_H +#define _CALIBRATION_H + + +/** + * @brief Set Touchscreen calibration values. + * Values are for the default portrait mode, in this application + * the screen is used in landscape mode. + * @param xleft X left side (landscape bottom) + * @param xright X right side (landscape top) + * @param ytop Y top (landscape left) + * @param ybottom Y botto (landscape right) + */ +int TS_set_calibration(int xleft, int xright, int ytop, int ybottom); + +/** + * @brief Initialize for TFT calibration + */ +void Calibration_Init(void); + +/** + * @brief Do the TFT calibration + */ +void Calibration_Loop(void); + + +#endif