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);
___________________________________________________________________