Terryn Fredrickson
/
Mouse_Test
This is a test program to check keil download
Revision 0:f3d57cbb6b99, committed 2014-08-04
- Comitter:
- Terryn
- Date:
- Mon Aug 04 19:52:22 2014 +0000
- Commit message:
- test program for keil download
Changed in this revision
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/USBDevice.lib Mon Aug 04 19:52:22 2014 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/USBDevice/#0c6524151939
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Mon Aug 04 19:52:22 2014 +0000 @@ -0,0 +1,22 @@ +#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); + } +} \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Mon Aug 04 19:52:22 2014 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/6213f644d804 \ No newline at end of file