Not sure if this will work on the Pi Pico, but I thought I’d share anyway.
from PiicoDev_SSD1306 import *
import textwrap
display = create_PiicoDev_SSD1306()
def display_text(text):
this_text = textwrap.wrap(text, width=15)
for i in range(0, len(this_text)):
display.text(this_text[i], 0, (i * 15), 1)
display.show()
display_text('Hello, this is some text. Can you see it is word wrapped?')
This is great! We’ll look at building it in - I’m unsure about compatibility across different devices, but it’s too good to ignore if available.
Nice work @Steven