Prusa MINI Firmware overview
XPT2046 Class Reference

#include <xpt2046.h>

Public Member Functions

bool getTouchPoint (uint16_t &x, uint16_t &y)
 
void waitForRelease ()
 
void waitForTouch (uint16_t &x, uint16_t &y)
 

Static Public Member Functions

static void init ()
 
static uint8_t read_buttons ()
 
static bool isTouched ()
 

Member Function Documentation

◆ init()

static void XPT2046::init ( )
static
Here is the caller graph for this function:

◆ read_buttons()

static uint8_t XPT2046::read_buttons ( )
static

◆ getTouchPoint()

bool XPT2046::getTouchPoint ( uint16_t &  x,
uint16_t &  y 
)
Here is the caller graph for this function:

◆ isTouched()

static bool XPT2046::isTouched ( )
static
Here is the caller graph for this function:

◆ waitForRelease()

void XPT2046::waitForRelease ( )
47 { while (isTouched()) { /* nada */ } }
Here is the call graph for this function:

◆ waitForTouch()

void XPT2046::waitForTouch ( uint16_t &  x,
uint16_t &  y 
)
48 { while (!getTouchPoint(x, y)) { /* nada */ } }
Here is the call graph for this function:
XPT2046::isTouched
static bool isTouched()
XPT2046::getTouchPoint
bool getTouchPoint(uint16_t &x, uint16_t &y)