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.
Fork of ELEC351 by
LED_LOGGING.cpp
- Committer:
- thomasmorris
- Date:
- 2018-08-15
- Revision:
- 57:aba1296e51b1
- Parent:
- 52:99915f5240b2
File content as of revision 57:aba1296e51b1:
#include "LED_LOGGING.hpp"
volatile int Log_Value = 0; //Make the default Logging mode to off
void Log_Leds()
{
if(Log_Value == 0) //No Logging enabled
{
Thread::wait(3000);
}
else if(Log_Value == 1) //Log LCD
{
Yellow_led.flash(200);
Thread::wait(2800);
}
else if(Log_Value == 2) //Log Networking
{
Yellow_led.flash(200);
Thread::wait(200);
Yellow_led.flash(200);
Thread::wait(2400);
}
else if(Log_Value == 3) //Log Sampling
{
Yellow_led.flash(200);
Thread::wait(200);
Yellow_led.flash(200);
Thread::wait(200);
Yellow_led.flash(200);
Thread::wait(2000);
}
else if(Log_Value == 4) //Log Serial Commands
{
Yellow_led.flash(200);
Thread::wait(200);
Yellow_led.flash(200);
Thread::wait(200);
Yellow_led.flash(200);
Thread::wait(200);
Yellow_led.flash(200);
Thread::wait(1600);
}
else if(Log_Value == 5) //Log SD Card
{
Yellow_led.flash(200);
Thread::wait(200);
Yellow_led.flash(200);
Thread::wait(200);
Yellow_led.flash(200);
Thread::wait(200);
Yellow_led.flash(200);
Thread::wait(200);
Yellow_led.flash(200);
Thread::wait(1200);
}
else
{
Log_Value = 0; //Set dont Log
}
}
