Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with display memory corruption? #4

Open
tsr-exec opened this issue Aug 1, 2017 · 0 comments
Open

Problem with display memory corruption? #4

tsr-exec opened this issue Aug 1, 2017 · 0 comments

Comments

@tsr-exec
Copy link

tsr-exec commented Aug 1, 2017

Hi, I'm using your library with eastrising ssd1322 256x64x4 oled. It works fine except if I try to fill whole screen using drawPixel. Using clearDisplay in between drawing pixels will work, but I don't want to do this.

This code works:

void noise() {
  uint8_t  x, y;

  while (1) {

    for (x = 0; x < 256; x++) {
      for (y = 0; y < 64; y++) {
        display.drawPixel(x, y, random(15));
      }
      display.display();
       delay(10);
      display.clearDisplay();
    }
  }
}

This will result in corrupt display after about 200 pixels.


void noise() {
  uint8_t  x, y;

  while (1) {

    for (x = 0; x < 256; x++) {
      for (y = 0; y < 64; y++) {
        display.drawPixel(x, y, random(15));
      }
      display.display();
      delay(10);
    }
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant