Add new SRV LED options by Aleksander S56AL

This commit is contained in:
Andy CA6JAU 2018-07-15 19:12:09 -04:00
parent 12ec1b78e4
commit 5f7b628417
15 changed files with 68 additions and 15 deletions

14
IO.cpp
View file

@ -119,6 +119,20 @@ void CIO::process()
#if defined(CONSTANT_SRV_LED)
LED_pin(HIGH);
#elif defined(CONSTANT_SRV_LED_INVERTED)
LED_pin(LOW);
#elif defined(DISCREET_SRV_LED)
if (m_ledCount == 10000U) LED_pin(LOW);
if (m_ledCount >= 480000U) {
m_ledCount = 0U;
LED_pin(HIGH);
};
#elif defined(DISCREET_SRV_LED_INVERTED)
if (m_ledCount == 10000U) LED_pin(HIGH);
if (m_ledCount >= 480000U) {
m_ledCount = 0U;
LED_pin(LOW);
};
#else
if (m_ledCount >= 24000U) {
m_ledCount = 0U;