Use Accelerometer and Joystick to mimic a mouse. This is for a class project. It is done for educational purpose. It is not practical to real world use.
Dependencies: C12832_lcd MMA7660 USBDevice mbed
main.cpp
00001 // Name: T.H. Lu 00002 // Date: 03/27/2014 00003 // Description: 00004 // Main function for accelestick. 00005 00006 #include "accelestick.h" 00007 00008 int main() 00009 { 00010 if (init_accelestick() != 0) { 00011 return -1; 00012 } 00013 00014 while (1) { 00015 run_accelestick(); 00016 } 00017 }
Generated on Mon Jul 25 2022 03:58:30 by 1.7.2