Hi everybody,
I don't have all kinds of LC-displays handy. But an Arduino Mega 2560 which has mutliple serial interfaces.
So maybe it is possible to use a "simulate LCD on serial funcionality through a second serial connection.
This simulation should include the basic commands like
lcd.init(colums, rows)
lcd.clear,
lcd.setcursor
lcd.print
For LCDs like one fontsize character dotmatrix 16x2, 20x2, 20x4 40x4 LCDs.
including all kinds of graphical screens with hundreds of pixel rows and columms and differentsizes would be too much.
I have coded such a functionality with separate functions that contain the lcd.xxx-commands and the SIM_LCD-commands. For a 20x4-LCD.
Now my question is: is how can I add this functionality to a derived "class" or a modified library in the most effective way.
Ideal would be to just change the name of the library from original to "with-SIM-LCD" compile and run
program. And every single output in the LCD is done in parallel to the serial interface.
For "updating" the shown content just spit out 10 Linefeeds new serial output showing the updated content of the LCD.
I'm pretty experienced about programming in general but I'm a novice about how to create libraries with *.h and *.cpp-files, what classes, and "heritageing" is. So if the described way needs classes, etc. please include links to introducing tutorials about that or at least keywords with which I can search myself.
best regards Stefan