Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define DCSBIOS_IRQ_SERIAL
- #include "DcsBios.h"
- #include <TM1637TinyDisplay.h>
- DcsBios::RotaryEncoder tacan10("TACAN_10", "DEC", "INC", 5, 4);
- DcsBios::RotaryEncoder tacan1("TACAN_1", "DEC", "INC", 7, 6);
- DcsBios::Switch2Pos tacanXy("TACAN_XY", A1);
- const byte tacanModePins[5] = {8, 9, 10, 11, 12};
- DcsBios::SwitchMultiPos tacanMode("TACAN_MODE", tacanModePins, 5);
- DcsBios::Switch2Pos tacanTestBtn("TACAN_TEST_BTN", 13);
- DcsBios::Potentiometer tacanVol("TACAN_VOL", A0);
- TM1637TinyDisplay tm1637(2,3); //CLK,DIO This creates an instance of a single controller named "tm1637" for the UHF Channel
- void onTacanChannelChange(char* newValue) {
- tm1637.showString(newValue);}
- DcsBios::StringBuffer<4> tacanChannelBuffer(0x1162, onTacanChannelChange);
- void setup(){
- DcsBios::setup();
- tm1637.setBrightness(0x0f);
- tm1637.clear();
- }
- void loop()
- {
- DcsBios::loop();
- }
Advertisement
Add Comment
Please, Sign In to add comment