RenBuggyTimed with edited function and access to seven segment display
Dependencies: SevenSegmentDisplay mbed
Fork of 1-RenBuggyTimed by
main.cpp
- Committer:
- RenBuggy
- Date:
- 2016-03-11
- Revision:
- 0:9870f526ddd1
- Child:
- 1:91ca3ea0f578
File content as of revision 0:9870f526ddd1:
/********************************************************* *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(); }