Skip to content

Instantly share code, notes, and snippets.

huggre

Block or report user

Report or block huggre

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View barcode.py
# 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 / upload_fingerprint.py
Last active Dec 15, 2018
Upload fingerprint
View upload_fingerprint.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Import the PyOTA library
import iota
# Import json
import json
# Import PyFingerprint library
@huggre
huggre / validate_fingerprint.py
Last active Dec 15, 2018
Validate fingerprint
View validate_fingerprint.py
#!/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
View I2C_LCD_driver.py
# -*- 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
View keypad.py
import RPi.GPIO as GPIO
import time
class keypad():
# CONSTANTS
KEYPAD = [
[1,2,3],
[4,5,6],
[7,8,9],
View iota_terminal.py
# 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
View iota_debit_card_pay_pin.py
# 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
View iota_debit_card_pin.py
# 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):
View iota_debit_card_pay.py
# 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
View iota_debit_card.py
from iota import Iota
import random
import RPi.GPIO as GPIO
import MFRC522
import signal
from textwrap import wrap
# Set seed to <blank>
seed=""
You can’t perform that action at this time.