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_Group_T by
LED_LOGGING.cpp
00001 #include "LED_LOGGING.hpp" 00002 volatile int Log_Value = 0; //Make the default Logging mode to off 00003 void Log_Leds() 00004 { 00005 if(Log_Value == 0) //No Logging enabled 00006 { 00007 Thread::wait(3000); 00008 } 00009 else if(Log_Value == 1) //Log LCD 00010 { 00011 Yellow_led.flash(200); 00012 Thread::wait(2800); 00013 } 00014 else if(Log_Value == 2) //Log Networking 00015 { 00016 Yellow_led.flash(200); 00017 Thread::wait(200); 00018 Yellow_led.flash(200); 00019 Thread::wait(2400); 00020 } 00021 else if(Log_Value == 3) //Log Sampling 00022 { 00023 Yellow_led.flash(200); 00024 Thread::wait(200); 00025 Yellow_led.flash(200); 00026 Thread::wait(200); 00027 Yellow_led.flash(200); 00028 Thread::wait(2000); 00029 } 00030 else if(Log_Value == 4) //Log Serial Commands 00031 { 00032 Yellow_led.flash(200); 00033 Thread::wait(200); 00034 Yellow_led.flash(200); 00035 Thread::wait(200); 00036 Yellow_led.flash(200); 00037 Thread::wait(200); 00038 Yellow_led.flash(200); 00039 Thread::wait(1600); 00040 } 00041 else if(Log_Value == 5) //Log SD Card 00042 { 00043 Yellow_led.flash(200); 00044 Thread::wait(200); 00045 Yellow_led.flash(200); 00046 Thread::wait(200); 00047 Yellow_led.flash(200); 00048 Thread::wait(200); 00049 Yellow_led.flash(200); 00050 Thread::wait(200); 00051 Yellow_led.flash(200); 00052 Thread::wait(1200); 00053 } 00054 else 00055 { 00056 Log_Value = 0; //Set dont Log 00057 } 00058 }
Generated on Tue Jul 12 2022 22:52:51 by
