adafruit / Adafruit-GFX-Library

Adafruit GFX graphics core Arduino library, this is the 'core' class that all our other graphics libraries derive from

Home Page:https://learn.adafruit.com/adafruit-gfx-graphics-library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

setCursor call inside a loop seems to ignore coordinate X.

Sercurio opened this issue · comments

  • Arduino board: Arduino UNO

  • Arduino IDE version (found in Arduino -> About Arduino menu): 1.8.16

  • List the steps to reproduce the problem below (if possible attach a sketch or
    copy the sketch code in too):

U will need an oled siplay and call this function.

void testSetCursor(){
  int y = 8;
  for (int i = 0; i < 3; i++)
  {
    display.setCursor(16, y);
    display.print("test");
    y += 8;
  }
}