You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I already saw this issue on here but nothing came around so I figured I'd bump it again.
So basically I'm using the following code:
fromRPiimportGPIOfrommfrc522importSimpleMFRC522GPIO.setmode(GPIO.BOARD)
reader=SimpleMFRC522()
try:
print('Hold your tag near the reader')
id, text=reader.read()
print('ID:', id)
print('Value:', text)
exceptKeyboardInterrupt:
GPIO.cleanup()
raisefinally:
GPIO.cleanup()
This gets to the reader.read() call but then just never continues, even though I hold my tag near the reader.
The reader's LED is also blinking so it is doing something (hopefully reading) but I never get to the print statement.
Using:
Raspberry Pi 5 (RPi.GPIO is from rpi-lgpio for compatibility with Pi 5)
Python 3.11.2
The text was updated successfully, but these errors were encountered:
I already saw this issue on here but nothing came around so I figured I'd bump it again.
So basically I'm using the following code:
This gets to the
reader.read()
call but then just never continues, even though I hold my tag near the reader.The reader's LED is also blinking so it is doing something (hopefully reading) but I never get to the
print
statement.Using:
RPi.GPIO
is fromrpi-lgpio
for compatibility with Pi 5)The text was updated successfully, but these errors were encountered: