H753_CPP_SPI_Resistive_Touch_Screen_Controller 1.0
STM32H753 SPI resistive touchscreen (Adafruit 333 overlay + 5767 TSC2046 controller) driver and tutorial
Loading...
Searching...
No Matches
touchZones.h
Go to the documentation of this file.
1
13#ifndef INC_TOUCHZONES_H_
14#define INC_TOUCHZONES_H_
15
16#include <stdint.h>
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
23typedef enum {
24 TOUCH_ZONE_NONE = 0,
25 TOUCH_ZONE_LED1_OFF,
26 TOUCH_ZONE_LED1_ON,
27 TOUCH_ZONE_LED2_OFF,
28 TOUCH_ZONE_LED2_ON,
29 TOUCH_ZONE_LED3_OFF,
30 TOUCH_ZONE_LED3_ON,
31 TOUCH_ZONE_BEEP
33
41touchZone_t touchZoneFromPoint(int16_t x, int16_t y);
42
48const char *touchZoneName(touchZone_t zone);
49
50#ifdef __cplusplus
51}
52#endif
53
54#endif /* INC_TOUCHZONES_H_ */
touchZone_t
The button zones on the printed panel, or TOUCH_ZONE_NONE for a point outside them.
Definition touchZones.h:23
const char * touchZoneName(touchZone_t zone)
Gives a short printable name for a zone.
Definition touchZones.c:55
touchZone_t touchZoneFromPoint(int16_t x, int16_t y)
Classifies a raw touch position into a button zone.
Definition touchZones.c:35