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

OLED with RFID #46

Open
menox2 opened this issue Sep 7, 2018 · 1 comment
Open

OLED with RFID #46

menox2 opened this issue Sep 7, 2018 · 1 comment

Comments

@menox2
Copy link

menox2 commented Sep 7, 2018

Hi,
I am trying to combine an OLED display with a RFID reader. The OLED should give status informations about the user. I used the procedure described here (https://www.raspberrypi-spy.co.uk/2018/04/i2c-oled-display-module-with-raspberry-pi/) to run the display. In separate it works perfectly but when I try to combine both it does not work. The display library Adafruit_SSD1306 (SSD1306_128_32) is using GPIO.BCM. The pirc522 library is using GPIO.BOARD. According to the Readme it is possible to switch to BCM: “You may change BOARD pinout to BCM py passing pin_mode=RPi.GPIO.BCM.” I tried to change the values but it doesn’t work like this.
Could you please explain more in detail how to change from BOARD to BCM ?

Best regards
Norbert

@hyarionh
Copy link

hyarionh commented May 6, 2019

Probably too late to help Norbert, but if anyone else struggles:
You need to pass the BCM values for the pin numbers as well.

rdr = RFID(pin_rst=25, pin_irq=24, pin_mode=GPIO.BCM)

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