#include <stdint.h>
#include <stdlib.h>
#include "compiler.h"
#include "assert.h"
#include "rtouch.h"
#include "rtouch_calibrate.h"
#include "et024006dhu.h"
Macros | |
#define | RTOUCH_COLOR 0x0000 |
#define | tft_draw_filled_circle(x, y, radius, color, quadrant) et024006_DrawFilledCircle((x), (y), (radius), (color), (quadrant)) |
#define | tft_draw_pixel(x, y, color) et024006_DrawPixel((x), (y), (color)) |
#define | tft_print_string(x, y, string, color) et024006_PrintString((string), ((const unsigned char *)FONT8x8), (x), (y), (color), -1) |
Compile-time binding to main work queue. More... | |
#define | TFT_WHOLE 0xff |
Functions | |
bool | APP_Recalibrate (void) |
void | calibratehandler (rtouch_event_t const *event) |
bool | rtouch_calibrate (void) |
Start new calibration process, return false if finished. More... | |
Variables | |
static int | calibstate |
static rtouch_calibration_matrix_t | matrix |
static rtouch_calibration_points_t | points |
#define RTOUCH_COLOR 0x0000 |
Referenced by rtouch_calibrate().
#define tft_draw_filled_circle | ( | x, | |
y, | |||
radius, | |||
color, | |||
quadrant | |||
) | et024006_DrawFilledCircle((x), (y), (radius), (color), (quadrant)) |
Referenced by rtouch_calibrate().
#define tft_draw_pixel | ( | x, | |
y, | |||
color | |||
) | et024006_DrawPixel((x), (y), (color)) |
#define tft_print_string | ( | x, | |
y, | |||
string, | |||
color | |||
) | et024006_PrintString((string), ((const unsigned char *)FONT8x8), (x), (y), (color), -1) |
Compile-time binding to main work queue.
Referenced by rtouch_calibrate().
#define TFT_WHOLE 0xff |
Referenced by rtouch_calibrate().
bool APP_Recalibrate | ( | void | ) |
References calibstate.
void calibratehandler | ( | rtouch_event_t const * | event | ) |
Referenced by rtouch_calibrate().
bool rtouch_calibrate | ( | void | ) |
Start new calibration process, return false if finished.
References calibratehandler(), rtouch_calibration_point_struct::panelX, rtouch_calibration_point_struct::panelY, rtouch_calibration_points_struct::point1, rtouch_calibration_points_struct::point2, rtouch_calibration_points_struct::point3, rtouch_calibration_point_struct::rawX, rtouch_calibration_point_struct::rawY, RTOUCH_COLOR, rtouch_compute_calibration_matrix(), rtouch_get_event(), rtouch_get_event_handler(), rtouch_is_touched(), rtouch_set_calibration_matrix(), rtouch_set_event_handler(), state, tft_draw_filled_circle, tft_print_string, and TFT_WHOLE.
Referenced by main().
|
static |
Referenced by APP_Recalibrate().
|
static |
|
static |