DCS Bios Flaps working code
/* use '#define DCSBIOS_DEFAULT_SERIAL' instead if your Arduino board
* does not feature an ATMega328 or ATMega2650 controller.
*/
#define DCSBIOS_IRQ_SERIAL
#include <Servo.h>
#include "DcsBios.h"
/* Declare a Master Caution Reset button on pin 10 */
DcsBios::Switch2Pos masterCautionBtn("UFC_MASTER_CAUTION", 10);
/* Make the LED connected to pin 13 into a Master Caution Light */
DcsBios::LED mcLed(0x1012, 0x0800, 13);
DcsBios::ServoOutput flapPos(0x10a0, 9, 1060, 150);
void setup() {
DcsBios::setup();
}
void loop() {
DcsBios::loop();
}
Latest DCS Bios software
Arduino Mega R3
Servo: Tower Pro micro servo 9g SG90