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

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

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 }