Gerardo Carmona
/
14_USBMouse_Basic
USB mouse basic example
Fork of USBMouse_HelloWorld by
Revision 5:f2e423f20e8e, committed 2013-11-07
- Comitter:
- gcarmonar
- Date:
- Thu Nov 07 14:17:57 2013 +0000
- Parent:
- 4:26ecbbc27530
- Commit message:
- USB mouse basic example
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 26ecbbc27530 -r f2e423f20e8e main.cpp --- a/main.cpp Fri Mar 01 13:26:13 2013 +0000 +++ b/main.cpp Thu Nov 07 14:17:57 2013 +0000 @@ -4,10 +4,10 @@ USBMouse mouse; int main() { - int16_t x = 0; - int16_t y = 0; - int32_t radius = 10; - int32_t angle = 0; + int x = 0; + int y = 0; + int radius = 10; + int angle = 0; while (1) { x = cos((double)angle*3.14/180.0)*radius;