그리고 원 소스에서는 핀 define이 잘못 되어있을겁니다. 저의경우 아래처럼 수정했습니다.
아마 어떤종류의 아두이노를 사용하느냐에 따라 달라지는것 같습니다.
#define PS2_MOUSE_CLOCK 2 /* Must connect to Pin 5 (clock) of PS/2 mouse */
#define PS2_MOUSE_DATA 5 /* Must connect to Pin 1 (data) of PS/2 mouse */
#define RTS_PROBE 3 /* Must connect to Pin 7 (RTS) of PC serial port */
/* (NOTE: must go through a 5v regulator and */
/* 200ohm resistor first or you'll blow the pin) */
그리고 원 소스에서는 핀 define이 잘못 되어있을겁니다. 저의경우 아래처럼 수정했습니다.
아마 어떤종류의 아두이노를 사용하느냐에 따라 달라지는것 같습니다.
#define PS2_MOUSE_CLOCK 2 /* Must connect to Pin 5 (clock) of PS/2 mouse */
#define PS2_MOUSE_DATA 5 /* Must connect to Pin 1 (data) of PS/2 mouse */
#define RTS_PROBE 3 /* Must connect to Pin 7 (RTS) of PC serial port */
/* (NOTE: must go through a 5v regulator and */
/* 200ohm resistor first or you'll blow the pin) */