Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working on Raspberry Pi 2 model B #10

Closed
Pant opened this issue Jan 25, 2016 · 12 comments
Closed

Not working on Raspberry Pi 2 model B #10

Pant opened this issue Jan 25, 2016 · 12 comments

Comments

@Pant
Copy link

Pant commented Jan 25, 2016

I am trying to figure out why it is not working on me. Installation was fine but when I run any of the examples nothing happens.
Any help is appreciated!

@MaartenB3
Copy link

Try changing the contrast, worked for me.

@rm-hull
Copy link
Owner

rm-hull commented Jan 25, 2016

Yes it is probably the same root cause as #6: some devices contrast are calibrated differently, so try setting the contrast when initialising.

The text examples work, but depending on the version of pillow installed the graphics demos may not. At the moment the ETA fix for that is unknown.

@Pant
Copy link
Author

Pant commented Jan 25, 2016

Sorry for my noob question but how am I supposed to change the contrast?
Thank you for your answers!

@rm-hull
Copy link
Owner

rm-hull commented Jan 25, 2016

When you call init, call it with:

lcd.init(contrast=67)

Permitted values 0..255.

You could also call the following anytime after initialising.

lcd.set_contrast(183)

@Pant
Copy link
Author

Pant commented Jan 25, 2016

I tryed the alphabet_text.py with the following ways:

if __name__ == "__main__":
lcd.init(contrast=67)

and

if __name__ == "__main__":
lcd.init()
lcd.set_contrast(183)

But neither works. Am i missing something? I Have triple-checked the wiring and i have used 2 lcds and non of them works.

@rm-hull
Copy link
Owner

rm-hull commented Jan 25, 2016

Can you drag/drop a closeup photo of your lcd module to this issue? There are a few different designs where the pinouts are different.

Also, does the backlight switch on when you power up?

@Pant
Copy link
Author

Pant commented Jan 25, 2016

front
rear
The led lights on when i run the alphabet_text.py. It does not lights off until next reboot!

@Pant
Copy link
Author

Pant commented Jan 26, 2016

Is there anything else i could try?

@rm-hull
Copy link
Owner

rm-hull commented Jan 26, 2016

Ok, looking at your board, the pins are

  • RST
  • CE
  • DC
  • DIN
  • CLK
  • VCC
  • LIGHT
  • GND

This looks to be the same as mine :)

Can you annotate this list with the Raspberry Pi pins that you are connecting to?
Presumably there are no dry solder joints or shorts?

There is some debugging output we can set - I'll dig out how to do this and paste it here.

@Pant
Copy link
Author

Pant commented Jan 26, 2016

Guys sorry for the trouble but i figured out that the problem was that I used an external cord with 40 pins. Connecting directly to the pins solved the problem. Thank you for your assistance!

@Pant Pant closed this as completed Jan 26, 2016
@rm-hull
Copy link
Owner

rm-hull commented Jan 27, 2016

Ah, good - so you have it working properly now then?

@Pant
Copy link
Author

Pant commented Feb 4, 2016

Yes everything works fine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants