oldcity1985 / u8glib

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

SSD1306 I2C possibility to change reset pin #250

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
This is not really a problem, but I can't see anywhere the possibility of 
changing the set pin number.
My current project has reset pin at D2 and can't use the default D4.
If it's possible is not documented, if not I think should be a nice feature as 
all the other libraries for this chipset support it.
This is far the most versatile library and with more features so I prefer using 
this one if I can do that.

Thanks.

Original issue reported on code.google.com by baltasa...@gmail.com on 1 Apr 2014 at 6:38

GoogleCodeExporter commented 8 years ago
AVR, Arduino or ARM? Which setup do you use? Your problem is also not so clear 
to me, because with I2C the reset pin is not used at all.

Original comment by olikr...@gmail.com on 1 Apr 2014 at 7:14

GoogleCodeExporter commented 8 years ago
Well all I2C SSD1306 libraries I see use a reset pin, I can put this one 
working if I connect pin 4 to the reset LCD pin, without I have no image, this 
happens in any of the library examples, but for my project I have pin 4 already 
used so I need to move to another on as the D4 I can't change.
I'm testing in Arduino Uno and 2009.

Original comment by baltasa...@gmail.com on 1 Apr 2014 at 8:04

GoogleCodeExporter commented 8 years ago
Humm... I'm thinking now, could it be just a signal thing from the LCD 
hardware, if I put GND or 5+ at the RST LCD pin that will work?
I'll investigate and report later...

Original comment by baltasa...@gmail.com on 1 Apr 2014 at 8:07

GoogleCodeExporter commented 8 years ago
Many GLCD/OLEDs work by applying 3.3V to the reset input of the controller. You 
could also use any other pin and simulate a reset pulse with output low, delay 
and then output high. 

Original comment by olikr...@gmail.com on 1 Apr 2014 at 8:55

GoogleCodeExporter commented 8 years ago
Ok solved, looks like by default Arduino pin 4 is always high that's why it 
works when LCD reset pin is connected there, I just put a   digitalWrite(2, 
HIGH); and now is working since I have the LCD reset pin connected there.
I think the admin can close this.
Thanks.

Original comment by baltasa...@gmail.com on 1 Apr 2014 at 11:30

GoogleCodeExporter commented 8 years ago
Good, I will close this ticket.

Original comment by olikr...@gmail.com on 2 Apr 2014 at 4:47