OLED with RFID
menox2 opened this issue · 1 comments
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
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)