I have just started tinkering with DCS BIOS and Arduino. My first project is the gear panel for the F16C.
I have followed the instructions, but whenever I try to to program the gear handle with its built in LED I get the following message:
/* use '#define DCSBIOS_DEFAULT_SERIAL' instead if your Arduino board
* does not feature an ATMega328 or ATMega2650 controller.
*/
#define DCSBIOS_IRQ_SERIAL
#include "DcsBios.h"
DcsBios::LED lightGearL(0x4478, 0x0040, 8);
DcsBios::LED lightGearN(0x4478, 0x0020, 9);
DcsBios::LED lightGearR(0x4478, 0x0080, 10);
DcsBios::Switch2Pos gearHandle("GEAR_HANDLE", 3);
DcsBios::LED gearHandle(0x441c, 0x4000, 13);
void setup() {
DcsBios::setup();
}
void loop() {
DcsBios::loop();
}
-------------------------------------------------------
conflicting declaration "DcsBios::LED gearHandle
+++++++++++++++++++++++++++++++
I used the copy paste function from DCS Bios ... it seems like it does not like the gearHandle declaration. But it is the same for other aircraft types. Soo.. it must be pilot error.. or what?