Skip to content

Instantly share code, notes, and snippets.

Avatar

Sindre Klavestad klavestad

View GitHub Profile
View gist:4fa7d469a180677e51bc093343a8e5a2
#!/usr/bin/env python
# -*- coding: utf8 -*-
import RPi.GPIO as GPIO
import MFRC522
import signal
continue_reading = True
# Capture SIGINT for cleanup when the script is aborted