00001 #include <sys/ioctl.h> 00002 #include <fcntl.h> 00003 #include <unistd.h> 00004 #include <stdlib.h> 00005 #include <stdio.h> 00006 #include <linux/joystick.h> 00007 #include <linux/i2c.h> 00008 #include <linux/i2c-dev.h> 00009 #include <errno.h> 00010 00011 extern int I2CRead(unsigned char, unsigned char*, unsigned char); 00012 extern int I2CWrite(unsigned char, unsigned char*, unsigned char); 00013 extern int I2CReadWord(unsigned char, unsigned char);