Basic buggy functions with seven segment readout
Dependencies: SevenSegmentDisplay mbed
main.cpp
00001 /********************************************************* 00002 *Ren_Buggy_Basics * 00003 *Author: Elijah Orr & Dan Argust * 00004 * * 00005 *This program demonstates use of a library of functions * 00006 *(buggy_functions) to control the movement of the * 00007 *RenBuggy. * 00008 *********************************************************/ 00009 00010 #include "mbed.h" //"mbed.h" is a library that makes it easier to program microcontrollers 00011 00012 #include "buggy_functions.h" //"buggy_functions.h" contains the functions that we will use to move the buggy 00013 00014 /* The basic functions available are: 00015 * 00016 * forward(time); 00017 * left(time); 00018 * right(time); 00019 * hold(time); 00020 * 00021 * see buggy_functions.h for a full list. 00022 */ 00023 00024 00025 int main() //int main is run automatically. Place your program here 00026 { 00027 stop(); 00028 hold(5); 00029 forward(10); //move the buggy forward for 10 seconds 00030 }
Generated on Mon Jul 18 2022 19:57:55 by
1.7.2