• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Scroll function in SSD1306 with oled does not work

Q&A Forum › Scroll function in SSD1306 with oled does not work
0 Vote Up Vote Down
Jay Jarrett asked 1 year ago

Using SSD1306_128x64_I2C.ino from adafruit and everything works fine except the scroll functions.

3 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 1 year ago

Hi.
What do you mean?
Can you provide more details?
Regards,
Sara

0 Vote Up Vote Down
Jay Jarrett answered 1 year ago

The SSD1306_128x64_I2C.ino is from the SSD1306 library examples, and it provides various examples of graphics and text for the user.  All of the examples in the ino work except the examples for scrolling.  The word scroll appears as called, but the commands to do scrolling, do nothing.
Here is the part that does not work:
void testscrolltext(void) {
display.clearDisplay();
display.setTextSize(2); // Draw 2X-scale text
display.setTextColor(SSD1306_WHITE);
display.setCursor(10, 0);
display.println(F(“scroll”));
display.display(); // Show initial text
delay(100);
// Scroll in various directions, pausing in-between:
display.startscrollright(0x00, 0x0F);
delay(2000);
display.stopscroll();
delay(1000);
display.startscrollleft(0x00, 0x0F);
delay(2000);
display.stopscroll();
delay(1000);
display.startscrolldiagright(0x00, 0x07);
delay(2000);
display.startscrolldiagleft(0x00, 0x07);
delay(2000);
display.stopscroll();
delay(1000);
}
 

0 Vote Up Vote Down
Sara Santos Staff answered 1 year ago

Hi.
I’m sorry. But, it’s very difficult to find out what might be wrong.
I found someone with the same issue: https://forums.adafruit.com/viewtopic.php?f=47&t=162586
But there were no answers.
 
I also searched on the library github page and I couldn’t find any clue.
 
We’re currently out of the office and at the moment, we don’t have hardware with us to try it out.
 
Regards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.