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.
indicator.cpp
- Committer:
- YTvW
- Date:
- 2016-11-22
- Revision:
- 2:ff5abf6d887c
- Child:
- 3:11ab070a3edb
File content as of revision 2:ff5abf6d887c:
#include "mbed.h"
#include "indicator.h"
Indicator::Indicator(PinName pin) : _pin(pin) {
_pin = 0;
}
void indicator_thread()
{
while(1)
{
_pin= ledstatus;
}
}
void Indicator::SetSituation()
{
}
void Status(int situation,int ledstatus)
{
if(situation == 0)
{
ledstatus = 0;
}
else if(situation==1)
{
ledstatus = 1;
}
}
void Indicator::SlowFlash(int situation,int ledstatus)
{
}
void Indicator::FastFlash(int situation,int ledstatus)
{
}