Skip to content

Instantly share code, notes, and snippets.

# Imports some required libraries
import iota
from iota import Address
import RPi.GPIO as GPIO
import MFRC522
import signal
import time
# Setup O/I PIN's
LEDPIN=12
# Imports some required libraries
import RPi.GPIO as GPIO
import MFRC522
import signal
import regex
continue_reading = True
# Capture SIGINT for cleanup when the script is aborted
def end_read(signal,frame):
# Imports some required libraries
import iota
from iota import Address
import RPi.GPIO as GPIO
import MFRC522
import signal
import time
import regex
# Setup O/I PIN's
# Imports some required libraries
import iota
from iota import Address
import RPi.GPIO as GPIO
import MFRC522
import signal
import time
import regex
# Import library for LCD1602 display
import RPi.GPIO as GPIO
import time
class keypad():
# CONSTANTS
KEYPAD = [
[1,2,3],
[4,5,6],
[7,8,9],
# -*- coding: utf-8 -*-
# Original code found at:
# https://gist.github.com/DenisFromHR/cc863375a6e19dce359d
"""
Compiled, mashed and generally mutilated 2014-2015 by Denis Pleic
Made available under GNU GENERAL PUBLIC LICENSE
# Modified Python I2C library for Raspberry Pi
# as found on http://www.recantha.co.uk/blog/?p=4849
@huggre
huggre / validate_fingerprint.py
Last active December 15, 2018 10:07
Validate fingerprint
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Imports from the PyOTA library
from iota import Iota
from iota import Address
from iota import Transaction
from iota import TryteString
# Import json library
@huggre
huggre / upload_fingerprint.py
Last active January 28, 2024 14:05
Upload fingerprint
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Import the PyOTA library
import iota
# Import json
import json
# Import PyFingerprint library
@huggre
huggre / barcode.py
Last active December 15, 2018 16:16
# Import the PyOTA library
import iota
from iota import Address
from iota import Transaction
from iota import TryteString
from iota.crypto.kerl import Kerl
# Import datetime libary
import datetime
@huggre
huggre / zmq_cube.py
Last active November 11, 2019 23:00
# Import some standard Python libraries
import time
import random
# Import the Raspberry PI GPIO library
import RPi.GPIO as GPIO
# Import the PyZMQ library
import zmq