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

Error when changing to GPIO.BCM mode using the example #61

Closed
4QStudios opened this issue May 18, 2017 · 4 comments
Closed

Error when changing to GPIO.BCM mode using the example #61

4QStudios opened this issue May 18, 2017 · 4 comments

Comments

@4QStudios
Copy link

hi, every time i want to initialize the lcd in BCM mode for the pins it fails, is this hardcoded to work only in BOARD mode?
the file is gpio.py

@ageir
Copy link
Contributor

ageir commented May 18, 2017

I got it working in BCM mode. What does your code look like?

@4QStudios
Copy link
Author

this is the output when i set the BCM mode
screen shot 2017-05-18 at 2 01 04 pm

Here you can see the code
screen shot 2017-05-18 at 2 01 23 pm

@ageir
Copy link
Contributor

ageir commented May 18, 2017

You have the wrong data pins. pins_data needs to be the BCM numbering on the Pi. For example 0 does not exist. Edit: It does, my bad. Check this site for BCM numbering. https://pinout.xyz/

@4QStudios
Copy link
Author

im a retard, i was using the wPi number scheme instead of the BCM, im closing this

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

2 participants