according the datasheet, the contrast is set with &H81 followed by the value. the table you post has wrong remarks : .db &H81, &HCF ; SETDISPLAYOFFSET , 00 i think the CF is what you want to change.
Dear all, I recieved some SH1106 few days ago, and I would like to dim it a little bit, but it doesn´t work. I tried to adjust the settings in the .lib file, as I did successfully in a .lib file for SSD1306, but brightness is always on the maximum level. I have a .lib file from bascomforum.de, it works properly except of brightness settings.
; slave address, CO|DC|ctrl, data ;CO-continuation bit, if 0 next data will be normal data ;ctrl-if 0, data is a command, if 1 data is normal data stored in GDRAM
I adjusted the contrast value to different levels like 50, 10 (written in hex), but brightness is always the maximum. As said, it works in the .lib file for SSD1306 and SSD1306 displays. The library for SSD1306 is embedded in my bascom 22.214.171.124, but, as library for SH1106 is not in, I transfered it manually into lib folder. Does somebody have an idea? Thanks in advance