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
# 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
# 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 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 | |
# 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
from iota import Iota | |
import random | |
import RPi.GPIO as GPIO | |
import MFRC522 | |
import signal | |
from textwrap import wrap | |
# Set seed to <blank> | |
seed="" |
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 datetime library | |
from datetime import datetime | |
# Import GPIO library | |
import RPi.GPIO as GPIO | |
# Import simplified version of the MFRC522 library | |
import SimpleMFRC522 | |
# Import the PyOTA 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
# Imports from the PyOTA library | |
from iota import Iota | |
from iota import Address | |
from iota import Transaction | |
from iota import TryteString | |
# Import json library | |
import json | |
# Import datetime libary |
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 requests library to send http request to coinbase.com | |
import requests | |
# Import json library for reading json data returned by the http request | |
import json | |
# Import the configparser library used for reading and writing to let_there_be_light.ini | |
import configparser | |
# Import some funtions from TkInter |
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
#define 9f6e8ef561174ca49d14dc1aef035896_width 128 | |
#define 9f6e8ef561174ca49d14dc1aef035896_height 128 | |
static char 9f6e8ef561174ca49d14dc1aef035896_bits[] = { | |
0x00, 0xFC, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, | |
0xFF, 0xFF, 0x3F, 0x00, 0x00, 0xFE, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, | |
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x7F, 0x00, 0x00, 0xFE, 0xFF, 0xFF, | |
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x7F, 0x00, | |
0x00, 0xFE, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, | |
0xFF, 0xFF, 0x7F, 0x00, 0x00, 0xFE, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, | |
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x7F, 0x00, 0x00, 0xFE, 0xFF, 0xFF, |