void initTSC2046(void)
Constructs the TSC2046 driver. Must be called after MX_SPI1_Init() (and therefore after HAL_Init()/Sy...
bool tsc2046ReadBatteryVoltage(float *volts)
Reads the voltage on the VBAT pin.
void tsc2046SetVRef(float vref)
Sets the voltage connected to the TSC2046's VRef pin, if any.
bool tsc2046IsReady(void)
Reports whether initTSC2046() has run. Every other tsc2046* function below returns false without touc...
void tsc2046SetTouchedThreshold(float touchedThresholdOhms)
Sets the pressure threshold used by tsc2046IsTouched().
bool tsc2046GetPoint(int16_t *x, int16_t *y, float *pressure)
Reads the current touch position and pressure.
bool tsc2046ReadAuxiliaryVoltage(float *volts)
Reads the voltage on the AUX pin.
bool tsc2046ReadTemperatureC(float *celsius)
Reads the current temperature.
bool tsc2046IsTouched(void)
Determines if the touchscreen is currently being touched.
void tsc2046EnableInterrupts(bool enable)
Enables or disables the TSC2046's own touch interrupt (IRQ pin pulled low on touch)....
: Header for main.c file. This file contains the common defines of the application.