/*
Tell DCS-BIOS to use a serial connection and use interrupt-driven
communication. The main program will be interrupted to prioritize
processing incoming data.
This should work on any Arduino that has an ATMega328 controller
(Uno, Pro Mini, many others).
*/
#define DCSBIOS_IRQ_SERIAL
#include "DcsBios.h"
/* paste code snippets from the reference documentation here */
DcsBios::Switch2Pos pvi0("PVI_0", 3,2);
DcsBios::Switch2Pos pvi1("PVI_1", 4,2);
DcsBios::Switch2Pos pvi2("PVI_2", 5,2);
DcsBios::Switch2Pos pvi3("PVI_3", 6,2);
DcsBios::Switch2Pos pvi4("PVI_4", 7,2);
DcsBios::Switch2Pos pvi5("PVI_5", 3,8);
DcsBios::Switch2Pos pvi6("PVI_6", 4,8);
DcsBios::Switch2Pos pvi7("PVI_7", 5,8);
DcsBios::Switch2Pos pvi8("PVI_8", 6,8);
DcsBios::Switch2Pos pvi9("PVI_9", 7,8);
void setup() {
DcsBios::setup();
}
void loop() {
DcsBios::loop();
}