added runningAverage for pressure
[Arduino] / libraries / ps2dev / ps2dev.h
1 /*
2  * ps2dev.h - a library to interface with ps2 hosts. See comments in
3  * ps2.cpp.
4  * Written by Chris J. Kiick, January 2008.
5  * modified by Gene E. Scogin, August 2008.
6  * Release into public domain.
7  */
8
9 #ifndef ps2dev_h
10 #define ps2dev_h
11
12 #include "WConstants.h"
13
14 class PS2dev
15 {
16         public:
17                 PS2dev(int clk, int data);
18                 int write(unsigned char data);
19                 int read(unsigned char * data);
20         private:
21                 int _ps2clk;
22                 int _ps2data;
23                 void golo(int pin);
24                 void gohi(int pin);
25 };
26
27 #endif /* ps2dev_h */
28