This is a test program to check keil download

Dependencies:   USBDevice mbed

main.cpp

Committer:
Terryn
Date:
2014-08-04
Revision:
0:f3d57cbb6b99

File content as of revision 0:f3d57cbb6b99:

#include "mbed.h"
#include "USBMouse.h"

USBMouse mouse;

int main()
{
    int16_t x = 0;
    int16_t y = 0;
    int32_t radius = 10;
    int32_t angle = 0;
    
    while(1)
    {
        x = cos((double)angle*3.14/180.0)*radius;
        y = sin((double)angle*3.14/180.0)*radius;    
        
        mouse.move(x, y);
        angle +=3;
        wait(.001);
    }   
}