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.
Diff: main_mouse.cpp
- Revision:
- 1:eea17a20509b
- Parent:
- 0:3395699bd0df
- Child:
- 2:c0c2a61188a9
--- a/main_mouse.cpp	Fri Jun 12 09:30:07 2015 +0000
+++ b/main_mouse.cpp	Sat Jun 20 02:02:03 2015 +0000
@@ -1,11 +1,11 @@
 #if 0
+// https://developer.mbed.org/handbook/USBMouse
 #include "mbed.h"
 #include "USBMouse.h"
+#include "STM32_USB48MHz.h"
 
-extern void L152RE_USBclock_setup();
-     
 int main() {
-    L152RE_USBclock_setup();
+    STM32_HSI_USB48MHz(); // HSI,USB48MHz,SYSCLK32MHz
     
     USBMouse mouse;
 
@@ -20,7 +20,7 @@
         
         mouse.move(x, y);
         angle += 3;
-        wait(0.001);
+        wait(0.005);
     }
 }