This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import RPi.GPIO as GPIO | |
import time | |
class keypad(): | |
# CONSTANTS | |
KEYPAD = [ | |
[1,2,3], | |
[4,5,6], | |
[7,8,9], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# Import the PyOTA library | |
import iota | |
# Import json | |
import json | |
# Import PyFingerprint library |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |