Skip to content

Commit 40ada4f

Browse files
committed
Added an example for SwitchWithCover2Pos to OneOfEverything
1 parent 44535e6 commit 40ada4f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

examples/OneOfEverything/OneOfEverything.ino

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ DcsBios::Switch3Pos switch3PosExample("MSG_0", 1, 2);
2424
// A multiple position switch, often a rotary switch
2525
const byte multiPosPins[4] = {1,2,3,4};
2626
DcsBios::SwitchMultiPos switchMulitPosExample("MSG_0", multiPosPins, 4);
27+
// A switch that has a cover in DCS that must be opened before the switch itself can be activated
28+
DcsBios::SwitchWithCover2Pos pltLaunchbarAbort("PLT_LAUNCHBAR_ABORT", "PLT_LAUNCHBAR_ABORT_COVER", 6);
2729

2830
// Analogs
2931
///////////

0 commit comments

Comments
 (0)