Skip to content

Commit 4916706

Browse files
committed
Added dual mode example
1 parent d5da51f commit 4916706

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#define DCSBIOS_DEFAULT_SERIAL
2+
#include <DcsBios.h>
3+
4+
// A dual mode button with a master switch which toggles the function of a physical pit button between two different DCS functions. Think multi-seat aircraft.
5+
DcsBios::DualModeButton myPinL2(23, 27, "PLT_MPD_L_L2", "CPG_MPD_L_L2");
6+
7+
void setup() {
8+
DcsBios::setup();
9+
}
10+
11+
void loop() {
12+
DcsBios::loop();
13+
}

0 commit comments

Comments
 (0)