Jump to content

raptor909

Members
  • Posts

    35
  • Joined

  • Last visited

Everything posted by raptor909

  1. 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
  2. Yes. I also added "DcsBios::setup()" to your setup() function and "DcsBios::loop()" to your loop() function and work great. Thanks.
  3. 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); ___________________________________________________________________
  4. Code ok but ... First of all Hi and thanks for your patience. So with DCSBIOS_DEFAULT_SERIAL mode before #include <DcsBios.h>" line, the sketch is ok and uploaded correctly to board but appears nothing on display :(:(:( - see image attached. With DCSBIOS_IRQ_SERIAL mode 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. I have big problem with display. Can you help me again plz. Thanks a lot ___________________________________________ SOLVED !!! Just delete line Serial.begin(500000); ___________________________________________
  5. Can you share code please ?? Hi I have the same issue but after adding missing definition for DCSBIOS_DEFAULT_SERIAL the issue remain. I try to make this but the Arduino IDE give me always error after compiling. Can you help me plz? This is my code #include <Wire.h> #include <Servo.h> #include <LiquidCrystal_I2C.h> #include <DcsBios.h> #define LED_PIN 3 #define DCSBIOS_DEFAULT_SERIAL 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::ProtocolParser 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: }
  6. Hi. Selecting the Maverick E, the WIDE / NARROW function of the TGP no longer works with the dedicated throttle button but only with the corresponding OSB button. Can you confirm?. Thank you Inviato dal mio HUAWEI VNS-L31 utilizzando Tapatalk
×
×
  • Create New...