I am trying to use the liquidCrystal i2c and also the standard one in a project.I use Eclipse to write for arduino.
The library works fine at arduino IDE, but when i try to call the constructor on the Eclipse project by writing:
i get an error that the lcd object has to implement the pure virtual method Print::write.
LiquidCrystal class is a subclass of LCD class and LCD class is a sub of Print.LCD has a write method that does not overide the pure virtual method of Print class and also iboth of them LCD and Print are abstract class cause of write function in Print class and send function in LCD class.
What should i do in order to make this work.I tried to make a function in LiquidCrystal library like this:
size_t write(uint8_t value);
but this declaration was overiding the function LCD:write and basically was shadowing.This also brings problems to other function inside liquidCrystal lib that call the LCD::write function.
Of course the LCD::write has inside the private pure virtual method send that can not be called outside lcd class.SO i can not implement the liquidCrystal::write as the LCD::write cause i can not call send funtion.