raptor909 Posted November 3, 2019 Posted November 3, 2019 (edited) I try to make this with Arduino compatible board (Elegoo) and I2C board but nothing appear on display (16x2). The sketch "Hello World" is ok. Where's the issue?. Trying to use DCSBIOS_IRQ_SERIAL give me this error: HardwareSerial0.cpp.o (symbol from plugin): In function `Serial': (.text+0x0): multiple definition of `__vector_18' C:\Users\...\AppData\Local\Temp\buildf609cf24e499ea4eca143c471bfeee27.tmp\sketch\i2c_dcsbios.ino.ino.ino.cpp.o (symbol from plugin).text+0x0): first defined here collect2.exe: error: ld returned 1 exit status I tried different speed baud rate (115k, 250k) but the issue remain I use an Arduino One not original but an Elegoo compatible and a I2C board. I tried with switch 2 or 3 pos and is ok, tried with servo and potentiometers and is ok. I try to upload a simple sketch like "Hello World" and appear correctly on display. Help me plz. Thanks. This is my code #define DCSBIOS_DEFAULT_SERIAL #include <Wire.h> #include <Servo.h> #include <LiquidCrystal_I2C.h> #include <DcsBios.h> #define LED_PIN 3 LiquidCrystal_I2C lcd(0x27, 16, 2); void onUhfFrequencyChange(char* newValue) { lcd.setCursor(0, 0); lcd.print(newValue); } DcsBios::StringBuffer<7> uhfFrequencyBuffer(0x1180, onUhfFrequencyChange); void onClockHhChange(char* newValue) { lcd.setCursor(0, 1); lcd.print(newValue); } DcsBios::StringBuffer<2> clockHhBuffer(0x10fe, onClockHhChange); void onClockMmChange(char* newValue) { lcd.setCursor(3, 1); lcd.print(newValue); } DcsBios::StringBuffer<2> clockMmBuffer(0x1100, onClockMmChange); void onClockSsChange(char* newValue) { lcd.setCursor(6, 1); lcd.print(newValue); } DcsBios::StringBuffer<2> clockSsBuffer(0x1102, onClockSsChange); void onClockEtcChange(char* newValue) { lcd.setCursor(9, 1); lcd.print(newValue); } DcsBios::StringBuffer<3> clockEtcBuffer(0x1104, onClockEtcChange); DcsBios:rotocolParser parser; void setup() { Serial.begin(500000); lcd.backlight(); pinMode(LED_PIN, OUTPUT); analogWrite(LED_PIN, 50); lcd.init(); lcd.clear(); // put your setup code here, to run once: } void loop() { // put your main code here, to run repeatedly: } ___________________________________________________________________ SOLVED !!! just delete line Serial.begin(500000); ___________________________________________________________________ Edited November 3, 2019 by raptor909 A-10C | A-10C II | F/A-18C | F16C | AV-8B | FW-190 A-8 | MB339 | A-4E | CA [sIGPIC][/sIGPIC] https://simitaliagames.com/dcs/
FSFIan Posted November 3, 2019 Posted November 3, 2019 The video you are referencing was made with the very first DCS-BIOS version in mind, so the code it shows is based on an outdated example sketch. As you already found out, you need to remove the "Serial.begin(500000);" line. You also need to add "DcsBios::setup()" to your setup() function and "DcsBios::loop()" to your loop() function. Refer to the IRQSerial sketch from the current Arduino library to see how it should look. DCS-BIOS | How to export CMSP, RWR, etc. through MonitorSetup.lua
raptor909 Posted November 3, 2019 Author Posted November 3, 2019 Yes. I also added "DcsBios::setup()" to your setup() function and "DcsBios::loop()" to your loop() function and work great. Thanks. A-10C | A-10C II | F/A-18C | F16C | AV-8B | FW-190 A-8 | MB339 | A-4E | CA [sIGPIC][/sIGPIC] https://simitaliagames.com/dcs/
raptor909 Posted December 2, 2019 Author Posted December 2, 2019 Ian;4096493']The video you are referencing was made with the very first DCS-BIOS version in mind, so the code it shows is based on an outdated example sketch. As you already found out, you need to remove the "Serial.begin(500000);" line. You also need to add "DcsBios::setup()" to your setup() function and "DcsBios::loop()" to your loop() function. Refer to the IRQSerial sketch from the current Arduino library to see how it should look. HI I need an help plz. I want to display the Fuel Flow Gauges or from other gauge of the A-10 on a 16x2 LCD Display like this old thread https://forums.eagle.ru/showthread.php?t=145515 but give me an error after compiling. Probably that's an old code. I'm able to display all display of A10 like clock, vhf radio, uhf radio, CDU Panel but nothing from gauges. Can you help me ? Maybe a sketch ? Thank you so much A-10C | A-10C II | F/A-18C | F16C | AV-8B | FW-190 A-8 | MB339 | A-4E | CA [sIGPIC][/sIGPIC] https://simitaliagames.com/dcs/
Recommended Posts