olikraus / u8glib

Arduino Monochrom Graphics Library for LCDs and OLEDs
https://github.com/olikraus/u8glib/wiki
Other
1.26k stars 316 forks source link

OLED SSD1306 I2C AVRStudio 4.18 Atmega328p #336

Open olikraus opened 9 years ago

olikraus commented 9 years ago

Originally reported on Google Code with ID 337

What steps will reproduce the problem?
1.I read all issues dealing with SSD1306 OLED display, but I cannot run it

What is the expected output? What do you see instead?
Something on the display :(
Please upload the working example code for u8glib 1.17

What version of the product are you using? On what operating system?
u8glib 1.17  - AVRStudio 4.18 -Windows 7

Please provide any additional information below.
I checked the display address and it is 0x3C, so the connection is right

Reported by pedro35.android on 2015-04-19 08:59:51

olikraus commented 9 years ago
many problems could be there. Is your HW correct? How does your code look like. Are
all pin/ports assigned correctly?

Reported by olikraus on 2015-04-19 10:47:55

olikraus commented 9 years ago
Dear,
thank you very much for your prompt response. I have checked the display by Arduino
I2C scanner and got reply of address 0x3c . But I prefer to work with AVRStudio.
To get you information about my setting please find enclosed the MSWord file.
Thank you for your time and efford.
Best regards
Peter

Reported by pedro35.android on 2015-04-19 13:17:15


olikraus commented 9 years ago
i have a linux system. i can not read .docx

Reported by olikraus on 2015-04-19 17:39:53

olikraus commented 9 years ago
Ups, so here is the PDF

Reported by pedro35.android on 2015-04-19 19:17:03


olikraus commented 9 years ago
hmmm... i have not checked the c code for a whole. The port setting is not required,
maybe you can comment out the u8g_SetPin command.

Everything else looks fine. Can you measure activity on the I2C pins?

Oliver

Reported by olikraus on 2015-04-21 18:21:47

olikraus commented 9 years ago
Dear Oliver,
please find enclosed the signals on the pins.

Reported by pedro35.android on 2015-04-22 16:51:13


olikraus commented 9 years ago
Finally it works, I bought a new one and run it on 3.3V. 
Thank you for help and excellent library.

Reported by pedro35.android on 2015-04-29 16:24:06

olikraus commented 9 years ago
Good to read this. Thanks for the feedback.

Reported by olikraus on 2015-05-01 07:16:05