U8glib: Graphics Lib for LCDs and OLEDs

I have uploaded a beta release 1.10pre1. Could you please check this version also. I think i also added some delays to the strobe signal.

Thanks,
Oliver

Perfect! That's it. Though looks slower now (fps).
Does anyone have a fps benchmark sketch with this library?
Thanks Oliver.

U8glib is not fast. This has been discussed some weeks ago in this thread.
But there is a pending issue, to improve speed for your controller.

Oliver

I read that discussion, and understand why. What I meant is that from the garbage displaying 1.09 to the working 1.10pre1, the garbage looked like it was drawn faster.
Would be great if at some point you could implement the low level functions that take advantage of the "read" capabilities of 8bit parallel conection, while maintaining the flexibilities it has now for the rest.
Great library!

Hello All

A new release of U8glib is available for download (v1.10).

  • Support for SSD1309 and NHD-C12832
  • Bugfixes for parallel-mode (reset pin) and ST7920 controller

@DukeR
Except for checking the "busy" flag, adding read capabilities to U8glib would require a huge rework of the lib. I currently do not have the time to do this.

Oliver

http://code.google.com/p/u8glib/

I've got a problem in my mind,needing for help:how to control LCD12864,by only using SPI .Can you give me some picture about it? Thank's a lot. I am learnning to display the data play in the 12864 using mega 2560.Thanks!!!!! :slight_smile: :slight_smile:

Hi

Can you provide a link to the display? This would help a lot.

In general displays with SPI interface are usually connected like this:

Oliver

I have finished release v1.11:

  • Support for T6963
  • Support for Arduino Due
  • Sleep Mode
  • 4x mode for ST7920
  • New C++ interface for ST7920

http://code.google.com/p/u8glib/

Oliver

I got a specific ST7565 board to work on the DUE, but i did not know this thread yet,
it is posted here : U8glib works with some effort on GLCD - Arduino Due - Arduino Forum

including details on wiring it up (and a few tweaks).

Hi

U8glib Version v1.13 is available for download:

Updates include:

  • Support for SSD1351 (true color OLED) and HT1632 (LED Matrix)
  • Performance improvements for the ST7920
  • Double buffer option for ST7565 controller
  • HW SPI support for Arduino Due

Oliver

Hi everyone !

I am new to the arduino.

and i have an GLCD type of wdg0151-tmi and i dont know to wire it and also how to program it with arduino mega .

please please help and thank you and sorry for my bad language :slight_smile:

Hi

It seems to be this display: http://www.mikroe.com/download/eng/documents/development-tools/components/glcd_128x64_spec.pdf
It is a KS0108 based display. With U8glib, you can use

U8GLIB_KS0108_128(d0, d1, d2, d3, d4, d5, d6, d7, en, cs1, cs2, di, rw [, reset])

but Bill's GLCDv3 will also work: GLCD library version 3 (end of life - no longer supported) - Displays - Arduino Forum

Oliver

Thank you very much :*

but still need more information please :blush:

I think it is best to use GLCDv3 first. It has a very good user manual.

Oliver

C:\Users\Mohamed\Documents\Arduino\libraries\ks0108\ks0108.cpp: In member function 'void ks0108::Init(boolean)':
C:\Users\Mohamed\Documents\Arduino\libraries\ks0108\ks0108.cpp:505: error: 'OUTPUT' was not declared in this scope
C:\Users\Mohamed\Documents\Arduino\libraries\ks0108\ks0108.cpp:505: error: 'pinMode' was not declared in this scope
C:\Users\Mohamed\Documents\Arduino\libraries\ks0108\ks0108.cpp:511: error: 'delay' was not declared in this scope

would you please tell me what is that error , and thank you :~

Did you download glcd-v3-20111205.zip from Google Code Archive - Long-term storage for Google Code Project Hosting.?
Which IDE are you using?

I am not an expert on glcd-v3. Better to ask here: GLCD library version 3 (end of life - no longer supported) - Displays - Arduino Forum

In the case you decide to use U8glib, then you are welcome to ask questions in this thread here.

Oliver

Thank you for your care :slight_smile:

but can you tell me please ? =(

how to use the the wdg0151-tmi and how to wire it to arduino mega

and please give me an example to learn from it .
and thank you Oliver

Hi

Examples are here: Google Code Archive - Long-term storage for Google Code Project Hosting.

You could also follow this list of steps:

  1. Download u8glib
  2. install u8glib in the libraries folder (unzip there)
  3. start arduino IDE
  4. You should see the u8glib submenu in the Examples section
  5. locate "HelloWorld"
  6. open "HelloWorld" example
  7. Find this line in the example:
//U8GLIB_KS0108_128 u8g(8, 9, 10, 11, 4, 5, 6, 7, 18, 14, 15, 17, 16); 		// 8Bit Com: D0..D7: 8,9,10,11,4,5,6,7 en=18, cs1=14, cs2=15,di=17,rw=16

8 ) Uncomment this line:

U8GLIB_KS0108_128 u8g(8, 9, 10, 11, 4, 5, 6, 7, 18, 14, 15, 17, 16); 		// 8Bit Com: D0..D7: 8,9,10,11,4,5,6,7 en=18, cs1=14, cs2=15,di=17,rw=16
  1. Ensure that the arduino board is not connected to any power or usb
  2. Connect your display as described in the comment: // 8Bit Com: D0..D7: 8,9,10,11,4,5,6,7 en=18, cs1=14, cs2=15,di=17,rw=16
    10a) Connect Data lines from D0 to D7 to pins 8,9,10,11,4,5,6,7
    10b) Connect the chip enable signals to pin 14 and 15, which are labled as A0 and A1 on the Uno
    10c) Connect the di display pin to pin 17, which is labled as A3 on the Uno
    10d) Connect wr to pin 16, which is A2
  3. The variable potentiometer (see datasheet)

Oliver

Thank you very much Oliver :*

but i have a question
why connecting cs1 , cs2 , di and wr to analog pins :relaxed:

and Thank you

and another question please

it does not work with my wdg0151 lcd

it just works and nothing appears on the screen

please i need your help.

and to connect it to arduino mega if there is something wrong with connection