Possible two screens ST7920 with only one Arduino?

I have two LCD type ST7920

Use U8glib library I want to use these two screens with Arduino. Constructor this;

#include <U8glib.h>

U8GLIB_ST7920_128X64 u8g(12, 11, 10, U8G_PIN_NONE);  // Display One
U8GLIB_ST7920_128X64 u8g2(9, 8, 7, U8G_PIN_NONE);  // Display Two

And not running, only one lcd (One or Two). As I can run two screens with one Arduino? Thanks for your answers.

Looking at an old example:

//U8GLIB_ST7920_128X64_1X u8g(18, 16, 17);	// SPI Com: SCK = en = 18, MOSI = rw = 16, CS = di = 17

Why not use:

U8GLIB_ST7920_128X64 u8g(12, 11, 10);  // Display One
U8GLIB_ST7920_128X64 u8g2(12, 11, 7);  // Display Two

I have never used two ST7920 displays. I would guess that u8glib can cope with multiple objects.

David.

Thanks, David. Finally solved with its builder;

U8GLIB_ST7920_128X64 u8g(12, 11, 10);  // Display One
U8GLIB_ST7920_128X64 u8g2(12, 11, 7);  // Display Two

Now run the two screens at once with a single Arduino. Regards :slight_smile: