aasong2001 / u8glib

Automatically exported from code.google.com/p/u8glib
Other
0 stars 0 forks source link

Confirmed working init string SSD1305 128x32 I2C #286

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
For future implementation, this modified file will successfully work with the 
SSD1305 and I2C.

Verified with Arduino Uno and 4.7k pullup resistors.

http://www.buydisplay.com/default/2-2-inch-128x32-oled-dot-matrix-display-module
-with-pcb-blue-on-black

I realize that modifying this particular file was probably not the proper 
solution, please forgive me for being a bit of a noob.

Hope this helps.

Original issue reported on code.google.com by sh...@xnote.com on 28 Sep 2014 at 1:02

Attachments:

GoogleCodeExporter commented 9 years ago
thanks, i will have a look at it.

Original comment by olikr...@gmail.com on 28 Sep 2014 at 4:41

GoogleCodeExporter commented 9 years ago
Maybe i should buy such kind of displays with a SSD1305 controller.

For example:
http://www.buydisplay.com/default/2-4-inch-oled-module-128x64-graphic-display-pr
ice-arduino-green-on-black

Original comment by olikr...@gmail.com on 13 Dec 2014 at 5:17

GoogleCodeExporter commented 9 years ago
I have also since added the contrast functionality on to this driver.  It works 
great!  I did remove the (>> 1) to allow for full 0-255 range.  What was the 
reasoning behind this being there?

Technically there is a "brightness" setting in the SSD1305 as well, but I have 
only had luck with adjustments to that during the first initialization, it 
doesn't seem to work well during operation.  I don't know why.

If you would like a patch, or files, let me know, I can send them.  Also, 
although the original init string I sent works great, I have made some more 
changes since.

Original comment by sh...@xnote.com on 13 Dec 2014 at 11:56

GoogleCodeExporter commented 9 years ago
I wanted the contrast function to be identical throughout all controllers. So 
the user contrast value is always from 0 .. 255. Maybe the SSD1306 only has 7 
bit for the contrast. 

It you could add the latest version of your modified c files, this would be 
nice.

Thanks!

Original comment by olikr...@gmail.com on 14 Dec 2014 at 8:20

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
The SSD1306 did not have contrast control enabled, although it appears that 
chip supports contrast. (Maybe this should be added!?)  I stole the contrast 
code from the SSD1325 files, removed the (>> 1), and added it to the SSD1305 
file I have created.  It works great!

There are a few other changes inside this file as well, but one line of 
importance is 202.  The SSD1305 native resolution is 132x32, and the line 202 
change was necessary for proper operation on a 128x32 display.

I am using this code very successful on a Raspberry Pi, with porting help from 
a good friend who has also been posting on issue 171.

Original comment by sh...@xnote.com on 14 Dec 2014 at 9:19

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks for the contribution.
I probably need to buy such a display for proper testing first.

Original comment by olikr...@gmail.com on 14 Dec 2014 at 10:21