Guide by Michael; PiicoDev OLED Module SSD1306 - Raspberry Pi Guide

Hi team,

I have changed one of the examples to print how long it takes for the module to display plain text.
for the given code, it takes more than 2 sec. I am testing the module on Pi Zero. is this delay acceptable? Have I missed anything as the delay is even worst for other sample codes, e.g. Animation?

Thank you!

from PiicoDev_SSD1306 import *
display = create_PiicoDev_SSD1306()
import datetime

myString = "This is Farhad"
myNumber = 123.4567

start_time =  datetime.datetime.now()

display.text("Hello, World!", 0,0, 1) # literal string
display.text(myString, 0,15, 1) # string variable
display.text(str(myNumber), 0,30, 1) # print a variable
display.text("{:.2f}".format(myNumber), 0,45, 1) # use formatted-print
display.show()

print((datetime.datetime.now() - start_time).total_seconds())
2 Likes