I am trying to port an mbed cpp code ( FreetronicsLCDShield) to Zerynth or write a similar code here. In the example it says: "The class inherits from stream, therfore writing to the display is as easy as calling printf() to display text or putc() to display a custom character Example: <instanceName>.printf("Hello World");
See lines 54-59 here: http://https//os.mbed.com/teams/components/code/Freetronics_16x2_LCD/file/0e04b6c4abb8/freetronicsLCDShield.h/
Some more explanations here: http://https//os.mbed.com/forum/helloworld/topic/1472/?page=1#comment-16060
How can I implement the same in Zerynth with Python+C ? As far as I understand -if I am correct- mbed Cpp has an advantage of writing byte data
while we have to do it bitwise
here and therefore It seems to me that redirecting print() of text data to LCD display could be easily implemented like redirecting print() to a memory location or file etc. if we could have byte write possibility.
I will appreciate your valuable comments and advise on how to redirect stdout to elsewhere in general and in particular to a register of an LCD driver.