Hab probiert es zu entfernen, ging bei der alten DCS-BIOS Version von mir nicht. Hab deshalb auf 0.5.0 und Lib 0.2.3. gewechselt.
Leider zeigt das Dispaly immer noch nichts an :(
Hier mein Code (ich nutze ein Uno):
#include <SevenSeg.h>
/*
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 */
SevenSeg disp(11, 10, 9, 8, 7, 6, 5);
const int numOfDigits = 2;
int digitPins[numOfDigits] = {4, 3};
void onUhfPresetChange(char* newValue) {
disp.write(newValue);
}
DcsBios::StringBuffer<2> uhfPresetBuffer(0x1188, onUhfPresetChange);
void setup() {
DcsBios::setup();
disp.setDigitPins(numOfDigits, digitPins);
disp.setCommonCathode();
disp.setTimer(2);
disp.startTimer();
}
void loop() {
DcsBios::loop();
}
ISR(TIMER2_COMPA_vect){
disp.interruptAction();
}