adafruit/Adafruit-GFX-Library

setCursor call inside a loop seems to ignore coordinate X.

Sercurio opened this issue · 0 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;
  }
}