mirror of
https://github.com/juribeparada/MMDVM_HS.git
synced 2026-04-05 22:35:26 +00:00
Add new SRV LED options by Aleksander S56AL
This commit is contained in:
parent
12ec1b78e4
commit
5f7b628417
15 changed files with 68 additions and 15 deletions
14
IO.cpp
14
IO.cpp
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue