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 
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 };
bool operator!=(Point)
bool operator==(Point)