JBBoardに接続したモーター2つをRCBControllerでコントロールするテストです。

Dependencies:   FatFileSystem TB6612FNG2 mbed

Fork of JBB_BTLE_Test by Jksoft Blue mbed Board Developer

Revision:
0:1ed23ab1345f
diff -r 000000000000 -r 1ed23ab1345f uvc/uvcsub.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/uvc/uvcsub.cpp	Tue Jun 26 14:27:45 2012 +0000
@@ -0,0 +1,21 @@
+#include "mbed.h"
+#include "uvc.h"
+
+void uvc::wait(float s)
+{
+    Timer t;
+    t.start();
+    while(t.read() < s) {
+        poll();
+    }
+}
+
+void uvc::wait_ms(int ms)
+{
+    Timer t;
+    t.start();
+    while(t.read_ms() < ms) {
+        poll();
+    }
+}
+