first of all: thanks a lot for the great U8GLIB to all contributors. It is a pleasure using it.
I habe successfully used it for a while with an ST7920 based display, conected to an Arduino UNO. Now I would like to add a Nokia 5110 display as a second display, but this interferes with my first display. I did not connect the seconds display yet, just started with the additional code.
These are the defintions (I am using constants for the pins, but have resolved this here, so no complaints about this code, please ;-) ):
U8GLIB_ST7920_128X64_1X u8g (4, 2, 3);
U8GLIB_PCD8544 u8g_nok(4, 2, 12, 13, 5 ) ;
So I am sharing sck and mosi. Thought, this would be ok.
I have added a second (still empty) picture loop:
// draw primary lcd
} while( u8g.nextPage() );
// draw secondary lcd
} while( u8g_nok.nextPage() );
But as soon as the second loop is active (in addition to the unchanged loop for the first display) it draws a horizontal line with some (random?) dots on my ST7920 display.
What can I do to change this behaviour?