mirror of https://github.com/g4klx/MMDVM.git
Better LED management
This commit is contained in:
parent
419ab89ee9
commit
87feadd451
|
@ -160,15 +160,21 @@ void FancyLEDEffect()
|
||||||
{
|
{
|
||||||
int ledCount = 10;
|
int ledCount = 10;
|
||||||
|
|
||||||
bitband_t foo[] = {&BB_LED, &BB_COSLED, &BB_PTT, &BB_DMR, &BB_DSTAR, &BB_YSF, &BB_P25, NULL, NULL, NULL};
|
bitband_t foo[] = {&BB_LED, &BB_COSLED, &BB_PTT, &BB_DMR, &BB_DSTAR, &BB_YSF, &BB_P25,
|
||||||
#if !defined(USE_ALTERNATE_NXDN_LEDS)
|
#if defined(USE_ALTERNATE_NXDN_LEDS)
|
||||||
foo[7] = &BB_NXDN;
|
NULL,
|
||||||
|
#else
|
||||||
|
&BB_NXDN,
|
||||||
#endif
|
#endif
|
||||||
#if !defined(USE_ALTERNATE_POCSAG_LEDS)
|
#if defined(USE_ALTERNATE_POCSAG_LEDS)
|
||||||
foo[8] = &BB_POCSAG;
|
NULL,
|
||||||
|
#else
|
||||||
|
&BB_POCSAG,
|
||||||
#endif
|
#endif
|
||||||
#if !defined(USE_ALTERNATE_FM_LEDS)
|
#if defined(USE_ALTERNATE_FM_LEDS)
|
||||||
foo[9] = &BB_FM;
|
NULL};
|
||||||
|
#else
|
||||||
|
&BB_FM};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
for(int i=0; i<ledCount; i++){
|
for(int i=0; i<ledCount; i++){
|
||||||
|
|
Loading…
Reference in New Issue