Hello, I have the problem of switching an LED on the ground override switch so that it comes on when pressed once and goes off when pressed twice. When I switch, it only flashes once and then goes off again.
I would be really grateful for your help. Thanks in advance.
#define DCSBIOS_IRQ_SERIAL
#include "DcsBios.h"
/* paste code snippets from the reference documentation here */
DcsBios::LED pltGroundOverrideBtn(AH_64D_PLT_GROUND_OVERRIDE_BTN_AM, 4);
DcsBios::ActionButton pltGroundOverrideBtnToggle("PLT_GROUND_OVERRIDE_BTN", "TOGGLE", 6);
void setup() {
DcsBios::setup();
}
void loop() {
DcsBios::loop();
}