Hi all,

after reading a lot about Display here i have a question , may be useful for many users.
is there a "How to" guide for adding u8glib supported displays to the Firmware?

in other posts i found something like "adding driver at the end of u8glib.h" but i only find u8glib_ex.h
and idont what to add and how to configure the pins.
I want to use a KS0108 display which works well with original u8glib  but i need help to transfer to Repetier firmware.

Thanks a lot in advance



  • Latest version has now 3 drivers already included and in uiconfig.h you can select which one to use. Which driver do you need for KS0108? I can then add it if you show me how you initalizes it in your tests. Just to be sure I use the right one.
  • U8GLIB_KS0108_128 u8g(8, 9, 10, 11, 4, 5, 6, 7, 18, 14, 15, 17, 16,19);       
     // 8Bit Com: D0..D7: 8,9,10,11,4,5,6,7 en=18, cs1=14, cs2=15,di=17,rw=16,Reset=19

    that´s the way i initialise the Display with original u8glib.

    unfortunately for me the 3 included drivers are serial...
  • P.S.
    regarding Pins i´m absolutely flexible.In the moment it´s not more than Arduino Mega2560 on a Breadboard...
  • Ok, have added it in the github version. See uiconfig.h about parameter:
    // For the 8 bit ks0108 display you need to set these pins
    //#define U8GLIB_KS0108
    #define U8GLIB_KS0108_FAST

    All I can say is that it compiles with these drivers. I have also modified u8g to compile and use the correct pins if choosing the fast mode (which I guess is much faster so it should be preferred)

  • Thanks a lot,
    but one "stupid" Question, asi dont´t find it in Github...
    can you please tell me wher to find it?
  • sorry, i have to practice patience.....found
  • tested now,  just compiles, nothingelse happens...defined the pins as you instructed

     writing original u8glib testfile to exactly the same setup ,the display works.

  • changed pins now from U8glib original :

    #define UI_DISPLAY_RS_PIN        -1       

    #define UI_DISPLAY_DI                 17
    #define UI_DISPLAY_RW_PIN         16
    #define UI_DISPLAY_ENABLE_PIN  18   
    #define UI_DISPLAY_D0_PIN          8    
    #define UI_DISPLAY_D1_PIN          9       
    #define UI_DISPLAY_D2_PIN        10       
    #define UI_DISPLAY_D3_PIN        11       
    #define UI_DISPLAY_D4_PIN          4       
    #define UI_DISPLAY_D5_PIN          5       
    #define UI_DISPLAY_D6_PIN          6        
    #define UI_DISPLAY_D7_PIN          7       
    #define UI_DISPLAY_CS1               14
    #define UI_DISPLAY_CS2               15
    #define UI_DISPLAY_RESET_PIN    19

    To own definition:

    #define UI_DISPLAY_RS_PIN        -1       

    #define UI_DISPLAY_DI                   36
    #define UI_DISPLAY_RW_PIN               37
    #define UI_DISPLAY_ENABLE_PIN            38   
    #define UI_DISPLAY_D0_PIN        39       
    #define UI_DISPLAY_D1_PIN        40       
    #define UI_DISPLAY_D2_PIN        41       
    #define UI_DISPLAY_D3_PIN        42       
    #define UI_DISPLAY_D4_PIN        43       
    #define UI_DISPLAY_D5_PIN        44       
    #define UI_DISPLAY_D6_PIN        45       
    #define UI_DISPLAY_D7_PIN        46       
    #define UI_DISPLAY_CS1             47
    #define UI_DISPLAY_CS2             48
    #define UI_DISPLAY_RESET_PIN  49

    Display works now ..absolutely correct!!  tried 3 displays from different manufacturers--> OK

    Do you have an idea why i had to change the pins?  doesn´t uiconfig setting  override configuration.h?

    anyway thanks a lot for supporting...i´ll send my thanks via donate ;-)
  • No, to use uiconfig.h you have to set FEATURE_CONTROLLER 1 in Configuration.h. In all other cases it is ignored which is probably what your problem was.
  • FEATURE_CONTROLLER 1 was set and Pins for Display were set in uiconfig.h in the way i wrote in the above that´s why i could not understand
  • These variables come 2 times first for i2c and then for 4/8 bit connection. Maybe wrong case but hard to say without the code. I know it uses uiconfig - I  got errors from unresolved variables while implementing. But without having a display for testing I can not say which pins were choosen so could still be some define overwriting mine in u8g_ext.
Sign In or Register to comment.