示例#1
0
def init():
	# Initialise everything
	RegA.init()
	RegB.init()
	RegADD.init()
	ALU.init()
	globals.init()
	nixie.init()
示例#2
0
# work[i][1] = {the valid A part}
# work[i][2] = {the valid operation part}
# work[i][3] = {the valid B part}
# work[i][4] = {is empty but will have xxxxx placed here to indicate the solution as a string}
# work[i][5] = {is empty but will have xxxxx placed here to indicate the solution as an int}
# 

import twy_twitter as twitter
import twitalu_globals as globals
import twitalu_init as init
import twitalu_OPCODE_display as OPCODE_display
import nixie
import time
if globals.no_hardware == True:
	import twitalu_Math_dev as tMath
	nixie.init()
else:
	import twitalu_Math as tMath
	init.init()

while(1):
	nixie.tumble_display()
	OPCODE_display.display_twit_check()
	time.sleep(4)
	
	tweets = twitter.get_tweets()
	
	[tweet_queue, work] = twitter.input_scrub(tweets)
	
	try:
		print()