"Q: What is the Difference between GLCDPrint and GLCDDrawString?
A: GlcdPrint can print Variables, GLCDDrawString can print only Strings. You can minimize Code if you are only use one kind."
;
I think this is now confusing . How minimise code if only one type works??
GlcdPrint can print str(var)...where that fit in? Also is GlcdDrawChar better than GlcdDrawString if the string is only one char. just a thought
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hhm, Help forGlcdDrawChar says:"CharCode is the ASCII number of the character to display."
So it is different.
Yes I could ommit the advice for minimizing code. Its to special.
Of course it is the possibility to saving compiled code minimal.
Lets asume you do have a small program which display one 2 texts in Display in dependence of a sensor.
Like if temp < 0 then "Its frozen" else "not Frozen"
here you dont need GLCDPrint . Here is GLCDDrawString good enough and save a few byte,
because the Routine of GLCDDrawString don't have the code for displaying variables it is smaller.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Possible a naive question:
What is the difference between
using ssd1306
One handles number and strings. The other just strings.
ahh, thanx again, sorry for wrong forum.
So i take this to the FAQ:
Q: What is the Difference between GLCDPrint and GLCDDrawString?
A: GlcdPrint can print Variables, GLCDDrawString can print only Strings. You can minimize Code if you are only use one kind.
"Q: What is the Difference between GLCDPrint and GLCDDrawString?
A: GlcdPrint can print Variables, GLCDDrawString can print only Strings. You can minimize Code if you are only use one kind."
;
I think this is now confusing . How minimise code if only one type works??
GlcdPrint can print str(var)...where that fit in? Also is GlcdDrawChar better than GlcdDrawString if the string is only one char. just a thought
Hhm, Help forGlcdDrawChar says:"CharCode is the ASCII number of the character to display."
So it is different.
Yes I could ommit the advice for minimizing code. Its to special.
Of course it is the possibility to saving compiled code minimal.
Lets asume you do have a small program which display one 2 texts in Display in dependence of a sensor.
Like if temp < 0 then "Its frozen" else "not Frozen"
here you dont need GLCDPrint . Here is GLCDDrawString good enough and save a few byte,
because the Routine of GLCDDrawString don't have the code for displaying variables it is smaller.
I think speed is more important than memory.
Chips I use have plenty of memory but faster is always better.