convert U8glib st7920 to U8glib ks0108

Hi Guys..

I'm sitting after many days of head scratching and learning heaps and heaps about Arduino I'm in a need of help, lots and lots of help to be honest.

I have downloaded a project, and most of it, I guess is easy. but on the Arduino side, I'm scratching my head.

Firstly the Sketch is U8glib, and I have a U8glib compatible display the KS0108, and yes.. ( before you ask ) I'm currently building basic sketches and and have some basic sketches with openGLCD thats working 100%

under the examples I noticed.

#include "U8glib.h"
//U8GLIB_ST7920_128X64_4X u8g(8, 9, 10, 11, 4, 5, 6, 7, 18, 17, 16);
8GLIB_KS0108_128 u8g(8, 9, 10, 11, 4, 5, 6, 7, 18, 14, 15, 17, 16);

is all I need to make the KS0108 to work and not the ST7920

but this is not the case for the downloaded code that was made for the ST7920..
http://fpvlab.com/forums/attachment.php?attachmentid=63973&d=1435911592

all I want to do it change the display from the ST7920 to KS0108..

If I upload the sketch and even with no output to the display, the functions work.. meaning everything works just fine, and is 100% usable, its just no display.

Hi

Changing the constructor probably is not enough. You have to update the pin number.
Best would be to start with a simple hello world example for U8glib for the KS0108. Once you know the correct arguments for the U8glib constructor, you can go ahead with porting the code.

Oliver