Permalink
Browse files

Created ReadIMU example for async data

(NOTE: Still in progress)

Signed-off-by: Cruz Monrreal II <Cruz.Monrreal@gmail.com>
  • Loading branch information...
1 parent a8ba300 commit dfdc507714980f4a113999fa62af79d73963f505 @cmonr committed Aug 20, 2012
Showing with 25 additions and 0 deletions.
  1. +25 −0 examples/ReadIMU/ReadIMU.ino
View
25 examples/ReadIMU/ReadIMU.ino
@@ -0,0 +1,25 @@
+/************************************************
+ Written by Cruz Monrreal II
+ Created on 08-19-2012
+
+ Updates can be found here:
+ https://github.com/cmonr/Arduino-Bluetooth-Library
+************************************************/
+
+#include <Sphero.h>
+
+Sphero sphero;
+
+void setup() {
+ Serial.begin(115200);
+ delay(2000);
+ sphero.setStabilization(0);
+ sphero.setStreamingData(400, 1, 0x00040000);
+ delay(2000);
+}
+
+void loop() {
+ Serial.println("\n");
+
+ sphero.readAsyncPacket();
+}

0 comments on commit dfdc507

Please sign in to comment.