daily_automated
This commit is contained in:
41
trunk/Arduino/libraries/PS2Mouse/PS2Mouse.h
Normal file
41
trunk/Arduino/libraries/PS2Mouse/PS2Mouse.h
Normal file
@@ -0,0 +1,41 @@
|
||||
#ifndef PS2Mouse_h
|
||||
|
||||
#define PS2Mouse_h
|
||||
#define REMOTE 1
|
||||
#define STREAM 2
|
||||
|
||||
class PS2Mouse
|
||||
{
|
||||
private:
|
||||
int _clock_pin;
|
||||
int _data_pin;
|
||||
int _mode;
|
||||
int _initialized;
|
||||
int _enabled;
|
||||
int _disabled;
|
||||
int8_t read_byte();
|
||||
int read_bit();
|
||||
int16_t read_movement_x(int);
|
||||
int16_t read_movement_y(int);
|
||||
void pull_high(int);
|
||||
void pull_low(int);
|
||||
void set_mode(int);
|
||||
public:
|
||||
PS2Mouse(int, int, int mode = REMOTE);
|
||||
void initialize();
|
||||
int clock_pin();
|
||||
int data_pin();
|
||||
int read();
|
||||
int16_t* report(int16_t data[]);
|
||||
void write(int);
|
||||
void enable_data_reporting();
|
||||
void disable_data_reporting();
|
||||
void set_remote_mode();
|
||||
void set_stream_mode();
|
||||
void set_resolution(int);
|
||||
void set_scaling_2_1();
|
||||
void set_scaling_1_1();
|
||||
void set_sample_rate(int);
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user