setTextAlignment in esp8266-oled-sh1106-master library

Hi all,

im getting an error using the command "display.setTextAlignment(2);" :

sketch_mar11b:121: error: 'class Adafruit_SH1106' has no member named 'setTextAlignment'



exit status 1
'class Adafruit_SH1106' has no member named 'setTextAlignment'

I can't figure out what is wrong. The command should be included and there is a picture attached in the library showing a working command. I'm using the I2C display.

I would really appriciate any ideas on that...

Many thanks

It’s probably with a different library with an OLED SSD1306

Check the Adafruit source code and class tree - does not seem to be there