example uses local TouchScreen_kbv library

This commit is contained in:
prenticedavid
2017-09-18 00:00:37 +01:00
parent 30297c20db
commit d33163397d
3 changed files with 47 additions and 29 deletions

View File

@@ -7,13 +7,13 @@
#define _TOUCHSCREEN_KBV_H_
#include <stdint.h>
class TSPoint {
class TSPoint_kbv {
public:
TSPoint(void);
TSPoint(int16_t x, int16_t y, int16_t z);
TSPoint_kbv(void);
TSPoint_kbv(int16_t x, int16_t y, int16_t z);
bool operator==(TSPoint);
bool operator!=(TSPoint);
bool operator==(TSPoint_kbv);
bool operator!=(TSPoint_kbv);
int16_t x, y, z;
};
@@ -27,7 +27,7 @@ class TouchScreen_kbv {
uint16_t pressure(void);
int readTouchY();
int readTouchX();
TSPoint getPoint();
TSPoint_kbv getPoint();
int16_t pressureThreshhold;
private: