示例#1
0
def init():
	# Initialise everything
	RegA.init()
	RegB.init()
	RegADD.init()
	ALU.init()
	globals.init()
	nixie.init()
示例#2
0
#					7[|_________|]7 A7

# Includes
import sys
import time
# appends to PYTHONPATH the location of the example codes
sys.path.append(r'/home/pi/git/quick2wire-python-api/')
import twitalu_RegA as RegA
import twitalu_RegB as RegB
import twitalu_ALU as ALU
import twitalu_RegADD as RegADD

RegA.init()
RegB.init()
ALU.init()
RegADD.init()

delayTime = 0

def write_register(numA, numB):
	# Write Inputs
	RegA.write_register(numA)
	RegB.write_register(numB)

def input_test():
	# Get input numbers
	numA = int(input("Enter number A: "))
	numB = int(input("Enter number B: "))
	write_register(numA, numB)
	
def counter_test():