And just for reference if you are using an older 2.x board with the newer 3.x firmware, you can achieve the display rotation with
  /** Puts the display in flipped landscape mode */
  ag.display.setRotation(2);
I did this in the beginning of the boardInit function right after the oledDisplay is set up.