Microchip® Advanced Software Framework

rtouch_calibrate.c File Reference
#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().

int calibstate
static

Referenced by APP_Recalibrate().