Questions tagged [ssd1306]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
1answer
87 views

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 ...
1
vote
1answer
39 views

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 ...
0
votes
1answer
28 views

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 <SPI.h> #include <Wire.h> #include <Adafruit_GFX.h> #include <Adafruit_SSD1306.h&...
0
votes
0answers
23 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
0answers
40 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
votes
1answer
33 views

SSD1306 unable to display Text and waveform cohesively.Why?

Here is my code I am collecting data using an ECG sensor and trying to enhance the incoming data by stretching it across the x axis. Which results in this. After this the screen eventually just goes ...
0
votes
1answer
97 views

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, ...
1
vote
1answer
67 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 ...
0
votes
0answers
32 views

7 -pin OLED not working with SSD1306.h, GFX.h, U8glib.h using in SPI

I have tried running the example code provided to get the OLED to work but to no avail. I have two OLED displays with me. They are not connected serially. I am using SPI interface. These are the ...
0
votes
1answer
54 views

File.read() always returns -1

I'm trying to print a txt file from an SD card to a SSD1306 using the u8x8 library. Here's the current code: #include <SD.h> #include <Arduino.h> #include <U8x8lib.h> #ifdef ...
1
vote
1answer
36 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
vote
0answers
388 views

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 <SPI.h> #include <Wire.h> #include <Adafruit_GFX.h> #include <...
0
votes
2answers
149 views

Finding address of OLED using I2C communication and Arduino

It is known that address of OLED SSD1306 is 3C. The frame format is as follows: The figure implies that the binary pattern should be 01111000 for the first frame (considering write mode and the ...
0
votes
1answer
1k views

Scroll one line of text while another line is static on a SSD1306 OLED

I have an SSD1306 OLED that I have connected to a Wemos D1 Mini. It works like a charm, but I was wondering if it was possible to have two lines of code, where one line is static, and the other one ...
0
votes
1answer
47 views

How does the ssd1306 handle different screen sizes?

I noticed that if I have two SSD1306 displays, the 128x32 display will lose every other row if written in x64 mode, and the 128x64 display will show blank horizontal lines if written in x32 mode. How ...
0
votes
0answers
606 views

Reducing the noise of an SSD1306 display by reducing pre-charge in Adafruit SSD1306 library

I have issues with electrical noise on my board (>300mV switching noise on top of 3.3V rail, its quite a lot), which is generated by my I2C SSD1306 OLED display. After some research I found that the ...
1
vote
0answers
601 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 ...
0
votes
2answers
1k views

“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. #...
0
votes
1answer
260 views

Same output on displays with different I2C-addresses (AdaFruit library, ESP32)

I've got two displays hooked up to a ESP32 via I2C and I'm using the AdaFruit library. All handling display output is packed in a own library. As I was testing I only had one display set up and ...
-1
votes
2answers
171 views

getting SPI SSD1307 to work on Arduino Mega

After some time off, I decided to get back into my project after some help from this topic I started earlier Difference in pinout (types?) Uno/Mega. Unfortunately, even tho I have read multiple times ...
0
votes
1answer
121 views

Difference in pinout (types?) Uno/Mega

As a hands-on guy, I've started my first ever Arduino project 5 hours ago with no prior knowledge about Arduinos (I have coding experience tho. included this in case I am missing something obvious to ...
1
vote
0answers
1k views

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 ...