ThingPulse / esp8266-oled-ssd1306

Driver for the SSD1306 and SH1106 based 128x64, 128x32, 64x48 pixel OLED display running on ESP8266/ESP32
https://thingpulse.com
Other
2k stars 638 forks source link

Typo or not documented function in SSD1306SimpleDemo "ipsum\n" #224

Closed Nobuo1 closed 4 years ago

Nobuo1 commented 5 years ago

In SSD1306SimpleDemo

display.setFont(ArialMT_Plain_10);
display.setTextAlignment(TEXT_ALIGN_LEFT);
display.drawStringMaxWidth(0, 0, 128,
  "Lorem ipsum\n dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore." );

I wonder if "\n" is documented anywhere which other similar functions

tuxBurner commented 5 years ago

Hmmm why document this. This is in general LF (Line Feed) in most string handling.

Or do you mean that the display can handle those ?

Joennuh commented 5 years ago

Maybe the documentation could say the functions do support line feed but actually it is a generally known character combination.

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.