00001 00002 #ifndef ACCELEROMETER_H 00003 #define ACCELEROMETER_H 00004 00005 #include "coridium.h" 00006 #include "cor_hwlib.h" 00007 #include "cor_wrflash.h" 00008 00009 #include "string.h" 00010 #include "printf.h" 00011 00012 00013 //accelerometer functions 00014 void initializeAccelerometer(int x_axis_pin, int y_axis_pin, int z_axis_pin); 00015 //get the voltages of the XY and Z axis 00016 int getAccelerometerX(); 00017 int getAccelerometerY(); 00018 int getAccelerometerZ(); 00019 00020 #endif