mirror of https://github.com/markqvist/MMDVM.git
Changing LEDs sequence
parent
a244b86f36
commit
eb4cd221b2
48
IO.cpp
48
IO.cpp
|
@ -101,15 +101,8 @@ m_lockout(false)
|
|||
void CIO::selfTest()
|
||||
{
|
||||
bool ledValue = false;
|
||||
uint32_t ledCount = 0;
|
||||
uint32_t blinks = 0;
|
||||
|
||||
while(true) {
|
||||
ledCount++;
|
||||
delayInt(100);
|
||||
|
||||
if(ledCount >= 2U) {
|
||||
ledCount = 0U;
|
||||
for (uint8_t i = 0; i < 6; i++) {
|
||||
ledValue = !ledValue;
|
||||
|
||||
// We exclude PTT to avoid trigger the transmitter
|
||||
|
@ -120,12 +113,41 @@ void CIO::selfTest()
|
|||
setP25Int(ledValue);
|
||||
setCOSInt(ledValue);
|
||||
|
||||
blinks++;
|
||||
delayInt(250);
|
||||
}
|
||||
|
||||
if(blinks > 5)
|
||||
break;
|
||||
}
|
||||
}
|
||||
setDStarInt(true);
|
||||
setDMRInt(false);
|
||||
setYSFInt(false);
|
||||
setP25Int(false);
|
||||
|
||||
delayInt(500);
|
||||
|
||||
setDStarInt(false);
|
||||
setDMRInt(true);
|
||||
setYSFInt(false);
|
||||
setP25Int(false);
|
||||
|
||||
delayInt(500);
|
||||
|
||||
setDStarInt(false);
|
||||
setDMRInt(false);
|
||||
setYSFInt(true);
|
||||
setP25Int(false);
|
||||
|
||||
delayInt(500);
|
||||
|
||||
setDStarInt(false);
|
||||
setDMRInt(false);
|
||||
setYSFInt(false);
|
||||
setP25Int(true);
|
||||
|
||||
delayInt(500);
|
||||
|
||||
setDStarInt(false);
|
||||
setDMRInt(false);
|
||||
setYSFInt(false);
|
||||
setP25Int(false);
|
||||
}
|
||||
|
||||
void CIO::start()
|
||||
|
|
Loading…
Reference in New Issue