| Linduino 1.3.0 Linear Technology Arduino-Compatible Demonstration Board

SeeedTouchScreen.h
Go to the documentation of this file.
1 /*
2 SeeedTouchScreen.h - Library for 4-line resistance touch screen.
3 Modified by loovee Aug 12, 2012.
4 (c) ladyada / adafruit
5 Code under MIT License.
6 */
7 #define __PRESURE 10
8 class Point
9 {
10 public:
11 int x, y, z;
12
13 public:
14 Point(void);
15 Point(int x, int y, int z);
16 bool operator==(Point);
17 bool operator!=(Point);
18
19 };
20
21 class TouchScreen
22 {
23 private:
24 unsigned char _yp, _ym, _xm, _xp;
25
26 public:
27 TouchScreen(unsigned char xp, unsigned char yp, unsigned char xm, unsigned char ym);
28 bool isTouching(void);
29 Point getPoint();
30
31 };
Point::operator!=
bool operator!=(Point)
Definition: SeeedTouchScreen.cpp:41
Point::x
int x
Definition: SeeedTouchScreen.h:11
Point
Definition: SeeedTouchScreen.h:8
Point::z
int z
Definition: SeeedTouchScreen.h:11
Point::y
int y
Definition: SeeedTouchScreen.h:11
TouchScreen
Definition: SeeedTouchScreen.h:21
Point::Point
Point(void)
Definition: SeeedTouchScreen.cpp:24
Point::operator==
bool operator==(Point)
Definition: SeeedTouchScreen.cpp:36