I have made a portable fm device.But when I burnt the test program to avr.I found the direction of text showed by lcd is wrong.I used setRotation function,but it didn't work.
like this
xxxxxxxxx
?I can't type in wrong direction?
But i want my lcd show like this
hello,world
Seems no library can do this.Anybody can help me about this?
The picture might be misleading. U8glib will rotate everything including any text, lines, bitmaps, etc. Infact it has been one of the design goals of u8glib to provide easy 180 degree rotation.
Can you be more specific regarding "it works" and "I got error"?
Under which conditons does it work? Under which conditions do you get the error?
And: What is your environment (Arduino IDE)? What is your target system (Hardware board)?
If I compile your example with uncomment "U8GLIB_PCD8544" line.It works fine.But If I compile your example with adding "#define screenclk 8" and some library.It showed error
Finally,I solved the problem because I put rf24 library before u8glib.
But I found your library use too much program memory.How can I reduce the memory usage.I saw compilation detail.It compile other screen's c files.
Halry:
Finally,I solved the problem because I put rf24 library before u8glib.
But I found your library use too much program memory.How can I reduce the memory usage.I saw compilation detail.It compile other screen's c files.
U8glib contains a lot of files, but only code which is really used goes to PROGMEM area. In general, i would say that it should be comparable with the adafruit library.
Second answer is: There is a huge impact of the fonts that you use.
Have a look here: http://code.google.com/p/u8glib/wiki/fontgroupx11#5x7
Compare u8g_font_5x7 and u8g_font_5x7r. u8g_font_5x7 will use 1624 bytes (as you can see on the web page) but it will contain some none ANSI chars like german umlaut äÄ öÖ üÜ. If you do not need such chars, you can use u8g_font_5x7r which only requires 789 bytes. You can optimize your code size by selecting a suitable font.
Thank you.lol.That is useful.
And can you tell me how to set pcd8544 to powerdown mode.And make the screen clear.I can't find any reference about powerdown in the library.I am making portable device and need it very much.
The screen is cleared as soon as you start a new "picture" loop. U8glib is a little bit different to other graphics libs. You must always build the complete screen, so "clear screen" is not required. By doing so, U8glib does not require so much RAM.