main/calibration.h

Wed, 01 May 2019 21:27:28 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Wed, 01 May 2019 21:27:28 +0200
changeset 34
5c92103c5e72
parent 1
ad2c8b13eb88
permissions
-rw-r--r--

Version 0.2.10. Fixed spelling error in websocket component. Updated esp-idf to v4.0-dev-459-gba1ff1692 and adjusted several sources for changed headers. Finalized keeping the AP running at all times. Increased websocket server stack depth from 6000 to 7000.

/**
 * @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)
 * @return 1 if error, 0 if success.
 */
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

mercurial