First test programme for the RenBuggy
Dependencies: SevenSegmentDisplay mbed
Fork of Renbed_Buggy_Basics by
main.cpp
- Committer:
- MiskinPrj
- Date:
- 2016-04-21
- Revision:
- 0:23373ebd6d3a
- Child:
- 3:152595d33544
File content as of revision 0:23373ebd6d3a:
/********************************************************* *Ren_Buggy_Basics * *Author: Elijah Orr & Dan Argust * * * *This program demonstates use of a library of functions * *(buggy_functions) to control the movement of the * *RenBuggy. * *********************************************************/ #include "mbed.h" //"mbed.h" is a library that makes it easier to program microcontrollers #include "buggy_functions.h" //"buggy_functions.h" contains the functions that we will use to move the buggy /* The basic functions available are: * * forward(time); * left(time); * right(time); * hold(time); * * see buggy_functions.h for a full list. */ int main() //int main is run automatically. Place your program here { forward(5.5); //move the buggy forward for 5.5 seconds hold(5); //wait for 16 seconds }