Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
main.cpp
00001 #include "mbed.h" 00002 #include "USBMouse.h" 00003 00004 USBMouse mouse; 00005 00006 int main() { 00007 int16_t x = 0; 00008 int16_t y = 0; 00009 int32_t radius = 10; 00010 int32_t angle = 0; 00011 00012 while (1) { 00013 x = cos((double)angle*3.14/180.0)*radius; 00014 y = sin((double)angle*3.14/180.0)*radius; 00015 mouse.move(x, y); 00016 angle += 3; 00017 wait(0.001); 00018 } 00019 }
Generated on Wed Jul 13 2022 22:48:59 by
