Created an example programme that uses the RenBuggy_Servo library. RenBuggy Figure Of Eight

Dependencies:   RenBuggy_Timed

Files at this revision

API Documentation at this revision

Comitter:
Markatron
Date:
Mon Mar 31 10:19:41 2014 +0000
Child:
1:da2f06538364
Commit message:
Created a library for use with the RenBuggy with 2 wheels that travels for an amount of time specified by the user.

Changed in this revision

RenBuggy_Timed.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/RenBuggy_Timed.lib	Mon Mar 31 10:19:41 2014 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/teams/Renishaw/code/RenBuggy_Timed/#a413eedb9896
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon Mar 31 10:19:41 2014 +0000
@@ -0,0 +1,20 @@
+/*******************************************************************************
+* This programme demonstrates how to use the RenBuggy_Timed library.
+* 
+* Mark Jones 
+* V1.0 31/03/2014
+*******************************************************************************/
+
+#include "RenBuggyTimed.h"
+
+RenBuggy myBuggy(p5, p6, p8, p7);
+
+int main() {
+    
+    myBuggy.forward(4);
+    myBuggy.left(3);
+    myBuggy.forward(4);
+    myBuggy.right(3);
+    
+    return 0;
+}
\ No newline at end of file