Questions tagged [u8glib]
Refer to the graphics library U8glib with support for many different monochrome displays.
24
questions
-1
votes
1
answer
1k
views
I need help with creating a menu using u8g2 library
I want to make a project with a (Nokia 5110) display using u8g2 library.
Here I have the code for my program:
#include <Arduino.h>
#include <U8g2lib.h>
#include <TM1637Display.h>
#...
-1
votes
1
answer
190
views
How "fast" could GPS data be refreshed while moving and does it depend on the mcu?
I'm using Nano Every and SIM33EAU GPS module for my project and today I went riding shotgun to test how it works when moving on the road. I am using u8g2 library and one of the things that I have ...
2
votes
0
answers
871
views
OLED screen goes blank on delay() - U8G2 library + Arduino Nano [closed]
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, ...
1
vote
0
answers
76
views
U8glib+ 7-pin SSD1306 gives moving text without explicitly specifying in code
This is my code.
#include <U8glib.h>
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 [...
1
vote
0
answers
879
views
Why is my text inverted while using U8glib?
I am displaying text using this code.
#include <U8glib.h>
U8GLIB_SSD1306_128X64 u8g(12, 11, 8, 9, 10);
int Buffer[128];int Buffer2[128];int max=0;
void pageEMG();
void recordEMG();
void ...
1
vote
1
answer
1k
views
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 ...
0
votes
2
answers
1k
views
Cannot display a chr string using Wire.read() and u8g2.drawStr()
I'm still getting myself acquainted with C++, so I expect this is a very basic issue I'm facing. I've got an OLED screen connected to a Teensy LC and can display text on it just fine. The Teensy ...
1
vote
1
answer
439
views
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 ...
2
votes
1
answer
1k
views
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 ...
1
vote
1
answer
1k
views
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 ...
-1
votes
2
answers
915
views
How to properly put a u8g2 handle in a class
I'm trying to create a small battery powered alarm clock using an Arduino MKRZero and a generic SH1106-controlled, 128x64 pixel oled.
I started out just dumping all code into a single file named Clock....
1
vote
0
answers
172
views
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 ...
1
vote
0
answers
969
views
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 ...
1
vote
0
answers
917
views
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 ...
0
votes
1
answer
1k
views
Problem to display Ntp time on an oled using U8G2 lib
So I have this code to get ntp time and display it on serial port. But I want to display it on a 1.30 inch I2C oled with a SH1106 controller using the U8G2 library. The only problem is I don't know ...
1
vote
1
answer
11k
views
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?
0
votes
1
answer
12k
views
SSD1306 / U8glib display fonts and commands
I cannot seem to find any reference for the SSD 1306 or U8glib display font library or any command reference, like all the options for display() etc. For my fonts I been going into the utility folder ...
0
votes
2
answers
2k
views
U8glib funny problem
I have strange problem with u8glib library. I have code:
void void_Menu_draw_func_men()
{
if ( menu_redraw_required != 0 ) {
u8g.firstPage();
do {
Menu_draw_func_men();
} while( u8g....
1
vote
2
answers
3k
views
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 ...
2
votes
0
answers
416
views
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 ...
0
votes
1
answer
7k
views
How to wrap/scroll text with U8G2?
Does anyone know how to wrap and or text using the U8G2 Libary? I know there are other libraries that do this for you, but I'd like to use U8G2.
Thank you!
My code's here for reference. It's not clean,...
1
vote
2
answers
4k
views
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 ...
0
votes
1
answer
829
views
Comma between two values in a macro
I am working on a project involving an Aduino and screen.
As i was going through the u8glib (Arduino Monochrome Graphics Library for LCDs and OLEDs), something caught my attention:
#define ...
1
vote
2
answers
8k
views
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 ...