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

Committer:
thlu
Date:
2014-03-28
Revision:
2:3d012df30652
Parent:
1:03d0f8a4a2d7

File content as of revision 2:3d012df30652:

// Name: T.H. Lu
// Date: 03/27/2014
// Description:
//   Main function for accelestick.

#include "accelestick.h"

int main()
{
    if (init_accelestick() != 0) {
        return -1;
    }

    while (1) {
        run_accelestick();
    }
}