1,3" OLED 128x64 lib for SH1106 chip for testing

Discussion about Z-Uno product. Visit http://z-uno.z-wave.me for more details.
Post Reply
michap
Posts: 437
Joined: 26 Mar 2013 10:35
Contact:

1,3" OLED 128x64 lib for SH1106 chip for testing

Post by michap »

Hi,

I have got a "wrong" sample of the 128x64 I2C OLED display with an other chip (SH1106 instead of SSD1306).
So I had to make a new lib for it - maybe somebody else can need it ;)

Major difference - this chip can not address the lines directly and will not receive all bytes for a line.
So the only way I found is to use a buffer ... :(

This buffer take 1024byte of RAM :!: - so please check before the free RAM in your project.
In my smaller projects it is working fine - so I think it can be used with Z-Uno sometimes.

Because of buffer usage - there is a difference in sketch, for showing the buffer must be used oled.display();
Check the sample code - I have modified and added something.

I have used and modified the original Z-Uno OLED lib, didn't want to merge it...

Please check and feel free to comment it.

Thanks,
Michael
Attachments
OLEDFontDemo_1106.zip
sh1106 OLED library and demo
(6.2 KiB) Downloaded 285 times
Post Reply