Basic RenBuggy program - Start here with RenBuggy

Dependencies:   SevenSegmentDisplay mbed

Fork of Renbed_Buggy_Basics by Miskin Project

main.cpp

Committer:
MiskinPrj
Date:
2016-04-21
Revision:
3:152595d33544
Parent:
0:23373ebd6d3a

File content as of revision 3:152595d33544:

/*********************************************************
*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
{
    stop();
    hold(5);
    forward(10); //move the buggy forward for 10 seconds
}