Questions tagged [u8glib]

Refer to the graphics library U8glib with support for many different monochrome displays.

Additional information about the use of the library can be found in here.

24 questions
2
votes
0 answers

OLED screen goes blank on delay() - U8G2 library + Arduino Nano

Description I'm currently trying to get this SSD1306 0.91" OLED screen with an Arduino Nano with the U8G2 library (as per seller's guide), and in any code I run, as soon as a delay() is executed, the screen goes blank and doesn't show any further…
Markussen
  • 21
  • 4
2
votes
1 answer

ST7920 and u8g2 only using some of a 128x64 display

I am trying to use the u8g2 library and an Arduino Mega to control an LCD display. Adapting HelloWorld from the examples included in the library to use the SPI ports of the Mega (50-52), I have the code below. This gives a bit of a disappointing…
maker.li
  • 21
  • 4
2
votes
0 answers

Dual OLED displays showing the same image via SPI?

Is it possible to connect two oled displays via SPI to my Uno and send a single image to both displays, with each refreshing at an identical rate? I have gotten a single oled display (SSD1306) to work using the U8g2 library, however i am not sure…
1
vote
0 answers

U8glib+ 7-pin SSD1306 gives moving text without explicitly specifying in code

This is my code. #include U8GLIB_SSD1306_128X64 u8g(12, 11, 8, 9, 10); void clear_screen(); const int pageCount = 1; int p; void (*pages[pageCount])() = {clear_screen}; int duration [pageCount] = {2000}; void setup() { …
Shrie Sharma
  • 141
  • 5
1
vote
0 answers

Why is my text inverted while using U8glib?

I am displaying text using this code. #include U8GLIB_SSD1306_128X64 u8g(12, 11, 8, 9, 10); int Buffer[128];int Buffer2[128];int max=0; void pageEMG(); void recordEMG(); void pageECG(); void recordECG(); void pageBP(); void…
Shrie Sharma
  • 141
  • 5
1
vote
1 answer

Printing vairable with U8GLib

I have this code that takes temperature and humidity values from a DHT11 sensor and number of faces from an external python code and prints them on an OLED screen but instead of values of variables it keeps printing 0, how can I solve it? (Sorry…
vueenx
  • 19
  • 5
1
vote
1 answer

SSD1306 shows static when I try to display an XBM image

This is my circuit. This is the code. #include "U8glib.h" // include the universal graphcs library U8GLIB_SSD1306_128X64 u8g(12, 11, 10, 9, 8); // initialise a u8g display object const uint8_t flux_xbm[] PROGMEM = { …
Shrie Sharma
  • 141
  • 5
1
vote
1 answer

I am getting an error while trying to set up the U8g2 library

I am just trying to set up the U8g2 library to use an OLED. I read through the documentation and tried copying and pasting the code block example for the constructor, but switched out their information for my OLED's information. After trying to…
Kayla
  • 21
  • 3
1
vote
0 answers

Arduino menu coding problem by Keypad and 128*64 graphic LCD

I am trying to modify on the menu code to be able to use a keypad shield and arduino for scrolling between lines. after uploading and trying the code the following has happened: 1- I can not scroll more than 2 lines. 2- If I press D, I can scroll to…
romento
  • 21
  • 1
1
vote
0 answers

Can someone help me to change this code to u8g2

I would like to change this clock to u8g2. It works fine with the esp8266 and oled 128x64. I would start by including the u8g2 library with #include and all display. with u8g2. replace. What else should I consider.? Thanks Else This is my…
else
  • 11
  • 3
1
vote
0 answers

LCD (I2C) issues with pull up resistor

I'm close to finish my first DYI project. But a never seen issue on the breadboard has apprear as soon as assembled. The LCD is always / totally blank/black. When I remove the 4.7 K ohm pull-up resistor from my 2 temperature sensors 18b20 the LCD…
1
vote
1 answer

using special symbols from the U8glib library

I enter font symbols into the u8g.setFont() and I get a string of sympols. How do I grab just one of those symbols, for example an arrow?
Jim
  • 31
  • 2
  • 2
  • 9
1
vote
2 answers

Menu with switch case not behaving correctly

I hope this the right place to post this question :) I'm trying to display a menu on a SSD1351 OLED display, to which I communicate with U8glib. I'm trying to obtain an Init screen, then, with a long press on a button (Menu), get in to a menu with 3…
noospy
  • 11
  • 1
  • 5
1
vote
2 answers

How should I initialize a RepRap Discount 12864 on u8glib?

I was taking the advantage of an existing piece of hardware (RepRapDiscount Full Graphic Smart Controller) for my present project. Here is a link for the RepRap wiki about the controller #define LCD_PIN_SCLK A4 #define LCD_PIN_MOSI 6 #define…
user2513881
  • 159
  • 1
  • 4
1
vote
2 answers

Problems with Draw Loop using u8glib

I am using an Arduino Mega and a 12864ZW LCD with the u8glib library and the following code to draw to the LCD: U8GLIB_ST7920_128X64 Display(LCD_E_PIN, LCD_RW_PIN, LCD_RS_PIN, U8G_PIN_NONE); void loop(){ Draw(); } void Draw(){ …
Andy Braham
  • 468
  • 1
  • 8
  • 17
1
2