Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: TPixy-Interface
Fork of MbedOS_Robot by
main.cpp
- Committer:
- asobhy
- Date:
- 2018-02-09
- Revision:
- 4:417e475239c7
- Parent:
- 1:3e9684e81312
- Child:
- 8:a0890fa79084
File content as of revision 4:417e475239c7:
// ECE4333
// Authors: Ahmed Sobhy & Brandon Kingman
// Project: Robot
#include "mbed.h"
#include "WatchdogThread.h"
#include "PiControlThread.h"
#include "ExternalInterruptThread.h"
#include "ui.h"
/******************************************************************************/
/*******************************************************************************
* ******** Main Thread ********
*******************************************************************************/
int main() // This thread executes first upon reset or power-on.
{
// displays msg on terminal
displayStartupMsg();
// Initialize and run the threads below:
WatchdogThreadInit();
PiControlThreadInit();
ExternalInterruptThreadInit();
while(1)
{
consoleUI();
Thread::wait(500); // Go to sleep for 500 ms
}
}
