Very slow LCD 128x64 ST7567S I2C with U8g2lib.h

HI everone.
I have to use this LCD module (link), I used the U8g2lib.h library
the problem is that it is very slow in displaying data on the screen.

I use an arduino nano.

The LCD module is in I2C, what interests me is the speed of displaying data on the screen, in graphic mode I don't care.

I also tried using the U8x8lib.h library which is supposed to be text only but it doesn't work with this module

Is there a library that doesn't use graphics mode and works only in text mode far have a faster transmission?

I attach my sketch that works but whose data transmission is slow

Thank you.

#include <U8g2lib.h>
#include <Wire.h>
int x = 0;
 
U8G2_ST7567_ENH_DG128064I_F_SW_I2C u8g2(U8G2_R0, SCL, SDA, U8X8_PIN_NONE);
 
void setup(void) 
     {
        u8g2.setI2CAddress(0x3F * 2);
        u8g2.setBusClock(400000);
        u8g2.begin();
        u8g2.clearBuffer();
        u8g2.setFont(u8g2_font_ncenB14_tr);
    }
        
        void loop(void)
    {
      for (x = 0; x < 99; x++) 
      {
          u8g2.clearBuffer();
          u8g2.setCursor(15,23);
          u8g2.print(x); 
          u8g2.sendBuffer(); 
      }
    }

You are using software i2c. Try hardware i2c!

1 Like

thank you very much! now it works much faster. when I load the schetck it warns me that it could work incorrectly because it uses a lot of memory, then instead it works fine. Thank you.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.