RenBuggyTimed with edited function and access to seven segment display

Dependencies:   SevenSegmentDisplay mbed

Fork of 1-RenBuggyTimed by Ren Buggy

Revision:
0:9870f526ddd1
Child:
1:91ca3ea0f578
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Fri Mar 11 10:36:38 2016 +0000
@@ -0,0 +1,40 @@
+/*********************************************************
+*RenBuggyTimed                                           *
+*Author: Elijah Orr                                      *
+*                                                        *  
+*This program demonstates use of a library of functions  *
+*(TimedMovement) to control the movement of the RenBuggy.*
+*                                                        *
+*********************************************************/
+
+/* mbed.h is a library made by mbed.org that contains 
+classes/functions designed to make programming mbed 
+microcontrollers easier */
+#include "mbed.h"
+/* #include tells the compiler to include TimedMovement.h
+and TimedMovement.cpp in the program */
+#include "TimedMovement.h" 
+
+/* the main function is where a program will begin to execute. */
+
+/****************************************************************
+* Function: main()                                              *
+*                                                               *
+* Controls the movement of the RenBuggy by varying the speed    *
+* of each motor                                                 *
+*                                                               *
+* Inputs: none                                                  *
+*                                                               *
+* Returns: none                                                 *
+****************************************************************/
+int main()
+{
+    /* here we can call the functions defined in TimedMovement.h
+    and TimedMovement.cpp, and specify the length of time we want
+    them to run for by passing a variable which represents a 
+    length of time in seconds */
+    forward(5);
+    left(2);
+    forward(5);
+    stop();
+}