Display Xplained calibrate application. More...
#include <string.h>#include <progmem.h>#include <mainloop.h>#include <gfx/gfx.h>#include <gfx/win.h>#include <gfx/wtk.h>#include <gfx/sysfont.h>#include <touch/touch.h>#include "app_calibrate.h"Go to the source code of this file.
Data Structures | |
| struct | touch_calibrate_context |
| Application context. More... | |
Defines | |
| #define | abs(a) (((a) < 0) ? -(a) : (a)) |
| Convenience macro for getting absolute value of an integer. | |
Application configuration | |
| #define | CAL_OFFSET 50 |
| Offset from the display edges to calibration circles. | |
| #define | CAL_RADIUS 5 |
| Radius of calibration circles. | |
| #define | CAL_TRESHOLD 500 |
| Threshold for unintended touches on display. | |
| #define | CAL_BG_COLOR GFX_COLOR(0, 0, 255) |
| Background color for the application. | |
| #define | CAL_FG_COLOR GFX_COLOR(255, 255, 255) |
| Foreground color for the application. | |
Functions | |
| static | DEFINE_PROGMEM (char, calibrate_help_text[]) |
| Calibration guide text. | |
| static void | touch_calibrate_event_handler (const struct touch_event *event) |
| Touch event handler. | |
| static void | touch_calibrate_task_handler (struct workqueue_task *task) |
| Application task worker. | |
| void | app_touch_calibrate_setup (struct workqueue_task *completed_task) |
| Set up calibration. | |
Variables | |
| static struct touch_calibrate_context * | calibrate_context |
| Context pointer. | |
| static struct font | sysfont2x |
| Application font in use. | |
Display Xplained calibrate application.
Copyright (C) 2010 Atmel Corporation. All rights reserved.
Definition in file app_calibrate.c.
1.6.3