mirror of
https://github.com/juribeparada/MMDVM_HS.git
synced 2026-01-06 00:20:03 +01:00
Use DStar and DMR LEDs for POCSAG mode
until a separate POCSAG LED is available on newer boards
This commit is contained in:
parent
dc9b8c28f6
commit
602d773377
|
|
@ -318,7 +318,10 @@ void CIO::NXDN_pin(bool on)
|
||||||
|
|
||||||
void CIO::POCSAG_pin(bool on)
|
void CIO::POCSAG_pin(bool on)
|
||||||
{
|
{
|
||||||
// TODO: add a LED pin for POCSAG mode
|
// Use D-Star and DMR LED to indicate POCSAG mode
|
||||||
|
// TODO: add a separate LED pin for POCSAG mode
|
||||||
|
digitalWrite(PIN_DSTAR_LED, on ? HIGH : LOW);
|
||||||
|
digitalWrite(PIN_DMR_LED, on ? HIGH : LOW);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CIO::PTT_pin(bool on)
|
void CIO::PTT_pin(bool on)
|
||||||
|
|
|
||||||
|
|
@ -649,7 +649,10 @@ void CIO::NXDN_pin(bool on)
|
||||||
|
|
||||||
void CIO::POCSAG_pin(bool on)
|
void CIO::POCSAG_pin(bool on)
|
||||||
{
|
{
|
||||||
// TODO: add a LED pin for POCSAG mode
|
// Use D-Star and DMR LED to indicate POCSAG mode
|
||||||
|
// TODO: add a separate LED pin for POCSAG mode
|
||||||
|
GPIO_WriteBit(PORT_DSTAR_LED, PIN_DSTAR_LED, on ? Bit_SET : Bit_RESET);
|
||||||
|
GPIO_WriteBit(PORT_DMR_LED, PIN_DMR_LED, on ? Bit_SET : Bit_RESET);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CIO::PTT_pin(bool on)
|
void CIO::PTT_pin(bool on)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue