39 {0, LED_R_FIRE}, {1, LED_R_FIRE}, {2, LED_R_FIRE}, {3, LED_R_FIRE}, {4, LED_APU_FIRE},
40 {5, LED_APU_FIRE}, {6, LED_APU_FIRE}, {7, LED_APU_FIRE}, {8, LED_DISP}, {9, LED_DISP},
41 {10, LED_RCDRON}, {11, LED_RCDRON}, {12, LED_SPARE1}, {13, LED_SPARE1}, {14, LED_SPARE2},
42 {15, LED_SPARE2}, {16, LED_SPARE3}, {17, LED_SPARE3}, {18, LED_SPARE4}, {19, LED_SPARE4},
43 {20, LED_SPARE5}, {21, LED_SPARE5}, {22, LED_SAM}, {23, LED_SAM}, {24, LED_AAA},
44 {25, LED_AAA}, {26, LED_AI}, {27, LED_AI}, {28, LED_CW}, {29, LED_CW}
69 instance =
new REwiPanel(startIndex, ledStrip);
81 REwiPanel(
int startIndex, CRGB* ledStrip) {
82 panelStartIndex = startIndex;
83 this->ledStrip = ledStrip;
84 ledCount = R_EWI_LED_COUNT;
85 ledTable = rEwiLedTable;
93 static void onFireRightLtChange(
unsigned int newValue) {
94 if (instance) instance->
setIndicatorColor(LED_R_FIRE, newValue ? NVIS_RED : NVIS_BLACK);
96 DcsBios::IntegerBuffer fireRightLtBuffer{FA_18C_hornet_FIRE_RIGHT_LT, onFireRightLtChange};
98 static void onFireApuLtChange(
unsigned int newValue) {
99 if (instance) instance->
setIndicatorColor(LED_APU_FIRE, newValue ? NVIS_RED : NVIS_BLACK);
101 DcsBios::IntegerBuffer fireApuLtBuffer{FA_18C_hornet_FIRE_APU_LT, onFireApuLtChange};
103 static void onRhAdvAaaChange(
unsigned int newValue) {
104 if (instance) instance->
setIndicatorColor(LED_AAA, newValue ? NVIS_GREEN_A : NVIS_BLACK);
106 DcsBios::IntegerBuffer rhAdvAaaBuffer{FA_18C_hornet_RH_ADV_AAA, onRhAdvAaaChange};
108 static void onRhAdvAiChange(
unsigned int newValue) {
109 if (instance) instance->
setIndicatorColor(LED_AI, newValue ? NVIS_GREEN_A : NVIS_BLACK);
111 DcsBios::IntegerBuffer rhAdvAiBuffer{FA_18C_hornet_RH_ADV_AI, onRhAdvAiChange};
113 static void onRhAdvCwChange(
unsigned int newValue) {
114 if (instance) instance->
setIndicatorColor(LED_CW, newValue ? NVIS_GREEN_A : NVIS_BLACK);
116 DcsBios::IntegerBuffer rhAdvCwBuffer{FA_18C_hornet_RH_ADV_CW, onRhAdvCwChange};
118 static void onRhAdvDispChange(
unsigned int newValue) {
119 if (instance) instance->
setIndicatorColor(LED_DISP, newValue ? NVIS_GREEN_A : NVIS_BLACK);
121 DcsBios::IntegerBuffer rhAdvDispBuffer{FA_18C_hornet_RH_ADV_DISP, onRhAdvDispChange};
123 static void onRhAdvRcdrOnChange(
unsigned int newValue) {
124 if (instance) instance->
setIndicatorColor(LED_RCDRON, newValue ? NVIS_GREEN_A : NVIS_BLACK);
126 DcsBios::IntegerBuffer rhAdvRcdrOnBuffer{FA_18C_hornet_RH_ADV_RCDR_ON, onRhAdvRcdrOnChange};
128 static void onRhAdvSamChange(
unsigned int newValue) {
129 if (instance) instance->
setIndicatorColor(LED_SAM, newValue ? NVIS_GREEN_A : NVIS_BLACK);
131 DcsBios::IntegerBuffer rhAdvSamBuffer{FA_18C_hornet_RH_ADV_SAM, onRhAdvSamChange};
133 static void onRhAdvSpareRh1Change(
unsigned int newValue) {
134 if (instance) instance->
setIndicatorColor(LED_SPARE1, newValue ? NVIS_GREEN_A : NVIS_BLACK);
136 DcsBios::IntegerBuffer rhAdvSpareRh1Buffer{FA_18C_hornet_RH_ADV_SPARE_RH1, onRhAdvSpareRh1Change};
138 static void onRhAdvSpareRh2Change(
unsigned int newValue) {
139 if (instance) instance->
setIndicatorColor(LED_SPARE2, newValue ? NVIS_GREEN_A : NVIS_BLACK);
141 DcsBios::IntegerBuffer rhAdvSpareRh2Buffer{FA_18C_hornet_RH_ADV_SPARE_RH2, onRhAdvSpareRh2Change};
143 static void onRhAdvSpareRh3Change(
unsigned int newValue) {
144 if (instance) instance->
setIndicatorColor(LED_SPARE3, newValue ? NVIS_GREEN_A : NVIS_BLACK);
146 DcsBios::IntegerBuffer rhAdvSpareRh3Buffer{FA_18C_hornet_RH_ADV_SPARE_RH3, onRhAdvSpareRh3Change};
148 static void onRhAdvSpareRh4Change(
unsigned int newValue) {
149 if (instance) instance->
setIndicatorColor(LED_SPARE4, newValue ? NVIS_GREEN_A : NVIS_BLACK);
151 DcsBios::IntegerBuffer rhAdvSpareRh4Buffer{FA_18C_hornet_RH_ADV_SPARE_RH4, onRhAdvSpareRh4Change};
153 static void onRhAdvSpareRh5Change(
unsigned int newValue) {
154 if (instance) instance->
setIndicatorColor(LED_SPARE5, newValue ? NVIS_GREEN_A : NVIS_BLACK);
156 DcsBios::IntegerBuffer rhAdvSpareRh5Buffer{FA_18C_hornet_RH_ADV_SPARE_RH5, onRhAdvSpareRh5Change};