Resistive Touch driver.
Copyright (c) 2011-2018 Microchip Technology Inc. and its subsidiaries.
#include "asf.h"
#include "rtouch.h"
#include "rtouch_calibrate.h"
#include "resistive_touch_board.h"
Macros | |
#define | POINTS_SIZE 4 |
Size in pixels of calibration points. More... | |
Functions | |
static void | clear_calibration_point (const rtouch_point_t *p_point) |
Clears a calibration point from the given buffer. More... | |
static void | draw_calibration_point (const rtouch_point_t *p_point) |
Display a calibration point on the given buffer. More... | |
uint32_t | rtouch_calibrate (void) |
Starts the calibration routines and displays user instructions on screen. More... | |
Variables | |
static rtouch_calibration_point_t | gs_calibration_points [] |
Calibration points. More... | |
#define POINTS_SIZE 4 |
Size in pixels of calibration points.
Referenced by clear_calibration_point(), and draw_calibration_point().
|
static |
Clears a calibration point from the given buffer.
p_point | Calibration point to clear. |
References POINTS_SIZE, rtouch_point_struct::x, and rtouch_point_struct::y.
Referenced by rtouch_calibrate().
|
static |
Display a calibration point on the given buffer.
p_point | Calibration point to display. |
References POINTS_SIZE, rtouch_point_struct::x, and rtouch_point_struct::y.
Referenced by rtouch_calibrate().
uint32_t rtouch_calibrate | ( | void | ) |
Starts the calibration routines and displays user instructions on screen.
References clear_calibration_point(), draw_calibration_point(), rtouch_calibration_point_struct::raw, rtouch_compute_calibration(), rtouch_get_raw_point, rtouch_wait_pressed(), rtouch_wait_released(), rtouch_point_struct::x, and rtouch_point_struct::y.
Referenced by main().
|
static |
Calibration points.