Questions tagged [ssd1306]

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
  • 3
2
votes
1 answer

Can't Turn Off Internal I2C Pull-Ups on ESP32

I've designed a custom ESP32 board around the WROVER-IE module. To keep power low, I'm using a GPIO-controlled high-side FET to turn off unused peripherals when in deep sleep mode. The issue: I've pulled up an SSD1306 I2C OLED to this AUX rail. It…
1
vote
0 answers

Help to set vertical Scroll on SSD1306

I am trying to set the text to scroll vertically. I have a big chunk of text (example in the code below) to be set to scroll vertically. What I want is to display the complete text on the screen. Presently it scrolls the complete chunk of text. any…
Ram Kumar
  • 31
  • 4
1
vote
1 answer

Drawing a line at a given angle

Im attempting a device that measures lean angle. I have an ESP8266 + MPU6050 + SSD1306 setup, and I've managed to build a shaky but somewhat functioning device. What Id like to do is use the Adafruit_SSD1306 library to call the display.drawLine(x,…
ar6rider
  • 13
  • 2
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() { …
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…
1
vote
2 answers

Arduino, problem with interrupt and SSD1306 OLED

I'm not that good at this. Calculates RPM through Peripheral Speed and Interrupt. Everything works fine when I show this in the IDE with Serial.print without OLED. When I connect an SSD1306 OLED I2C, the interrupt stops working. No serial.print. If…
Ola A
  • 11
  • 2
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 = { …
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
  • 2
1
vote
0 answers

STM32F103 (Blue Pill) with stm32duino + BME280 + SSD1306 strange behavior

I'm going crazy trying to understand some strange reads from BME280 sensor. With this code: #include #include #include #include #include #include #define…
GinoC
  • 111
  • 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
  • 2
1
vote
2 answers

"SSD1306 allocation failed" when #include SD.h

I'm using the ssd1306_128x64_i2c example file from the 1306's library. It works perfectly until I add the #include SD.h line, after which it gives the allocation failed error. Please advise. #include #include #include…
cds333
  • 141
  • 4
1
vote
0 answers

SSD1306 - Is there a way to scroll a certain number of pixels only?

For a hobby project, I am trying to make some sort of little game with an ATtiny85 and an SSD1306 OLED display, mostly to see how much I can do with the least hardware possible. Something like Captain Rectangle rescues the Circle Princess from the…
jyoungdev
  • 111
  • 3
0
votes
0 answers

Adafruit_SSD1306.cpp fatal error: pgmspace.h: No such file or directory using SSD1306 on Arduino Nano RP2040

I am currently trying to get a SBC-OLED01 display to run under my Arduino Nano RP2040. I use the official example from Adafruit, attached is the code. /************************************************************************** This is an example…
JohnDizzle
  • 111
  • 4
0
votes
1 answer

Error Compiling for board Arduino Nano while using Adafruit GFX

Whys is this happening to me?? I have to meet a deadline please help!! Here is my code. #include #include #include #include #define SCREEN_WIDTH 128 // OLED display width, in pixels #define…
1
2