Skip to content

Commit 4835813

Browse files
committed
add cleanup method
1 parent 52d5a69 commit 4835813

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

mfrc522/SimpleMFRC522.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,3 +88,7 @@ def uid_to_num(self, uid):
8888
for i in range(0, 5):
8989
n = n * 256 + uid[i]
9090
return n
91+
92+
@staticmethod
93+
def cleanup():
94+
GPIO.cleanup()

0 commit comments

Comments
 (0)